class XGAppCore

Declared in <XApplication.h>
Declared from XGFocus

This encapsulates the core event code for the YAAF application. Your application class would be declared as a descendant of the XGAppSingleWindow or XGAppMultiWindow classes instead of this one.


Status Information

XGAppCore::GetApplication

Event Processing

XGAppCore::Exit
XGAppCore::IsModalWindow
XGAppCore::Run
XGAppCore::RunOnce
XGAppCore::WaitCheck
XGAppCore::WaitCheck

Construction/Destruction

XGAppCore::XGAppCore
XGAppCore::~XGAppCore


Status Information

XGAppCore::GetApplication

Usage: static XGAppCore*GetApplication()

Returns a pointer to the currently created application object.

Event Processing

XGAppCore::Exit

Usage: void XGAppCore::Exit()

Handle exit. This simply sets the 'quit' flag

XGAppCore::IsModalWindow

Usage: bool IsModalWindow()

Returns true if the event loop is currently executing in behalf of modal window dialog processing.

XGAppCore::Run

Usage: void XGAppCore::Run()

Run the application event loop. Basically this calls 'RunOnce' until quit

XGAppCore::RunOnce

Usage: void XGAppCore::RunOnce(XGWindow*w)

Run the event loop once. Simply defer to the 'DoEvent' routine, along with the appropriate pre/post events

XGAppCore::WaitCheck

Usage: static short GetLastModifiers()

Returns the modifier flags associated with the last keyboard or mouse event processed.

XGAppCore::WaitCheck

Usage: static bool WaitCheck()

Static method for running the event loop once. Returns 'true' if the cancel key was selected.

Construction/Destruction

XGAppCore::XGAppCore

Usage: XGAppCore::XGAppCore()

Construct the application core object. This initializes me

XGAppCore::~XGAppCore

Usage: XGAppCore::~XGAppCore()

Shut me down.