Declared in <XEvent.h>
This is the universal receiver; this is the thing which receives all messages that are broadcast, sent or dispatched through the current focus
Construction/Destruction
Initialization Support
XGDispatch::GetCTorDispatch
XGDispatch::SetCTorDispatch
XGDispatch::SetDispatchParent
XGDispatch::SetFocusDispatch
Focus Manipulation
XGDispatch::CanGainFocus
XGDispatch::CanLoseFocus
XGDispatch::GainFocus
XGDispatch::HasFocus
XGDispatch::LoseFocus
XGDispatch::SetFocus
Message dispatch
Construction/Destruction
Usage: XGDispatch::XGDispatch(bool root)
Construct me. This constructs my dispatch object by constructing me with the last constructed object as my parent.
Usage: XGDispatch::~XGDispatch()
If I have the focus, clear it
Initialization Support
Usage: static XGDispatch*GetCTorDispatch()
This returns the current dispatch object that will be used as the parent for the next constructed XGDispatch object.
Usage: static void SetCTorDispatch(XGDispatch*d)
This sets the dispatch object that will be used as the parent for the next constructed XGDispatch object.
Usage: void SetDispatchParent(XGDispatch*p)
This sets the parent of this dispatch object ot the parent object provided..
Usage: void SetFocusDispatch(XGFocus*f)
This sets the current focus object which owns this dispatch object.
Focus Manipulation
Usage: bool XGDispatch::CanGainFocus()
Can I gain focus? Default true
Usage: bool XGDispatch::CanLoseFocus()
Can i lose focus? Default true
Usage: void XGDispatch::GainFocus()
Called right after I gain focus. Default does nothing
Usage: bool XGDispatch::HasFocus()
Do I have focus?
Usage: void XGDispatch::LoseFocus()
Called right before I lose focus. Default does nothing
Usage: bool XGDispatch::SetFocus()
Set the current focus
Message dispatch
Usage: long XGDispatch::DoDispatch(long msg,long arg,void*parg,bool par)
Do dispatch of message. This scans the various dispatch tables to determine what's going on