Window controller base class. More...
#include <UTWindow.h>
Public Member Functions | |
WindowController_t () | |
virtual | ~WindowController_t () |
virtual quit_response_t | WindowCloseRequested (Window_t *window, bool app_quit_requested)=0 |
void | DeferredCloseDenied (Window_t *window_which_was_not_closed) |
Non-core library: UTgui
Window controller base class. This can be the controller for more than one window. Any number of message receivers can be added by an application-defined subclass. The only mandatory role for this class is to handle window close requests.
Definition at line 301 of file UTWindow.h.
WindowController_t::WindowController_t | ( | ) |
Constructor.
virtual WindowController_t::~WindowController_t | ( | ) | [virtual] |
Destructor.
virtual quit_response_t WindowController_t::WindowCloseRequested | ( | Window_t * | window, | |
bool | app_quit_requested | |||
) | [pure virtual] |
Handles a request to close the window. If this function returns eQUIT_allowed, the window must already have been closed. If this function returns eQUIT_deferred, it must later call either DeferredCloseDenied or delete the window.
void WindowController_t::DeferredCloseDenied | ( | Window_t * | window_which_was_not_closed | ) |
Indicates that a deferred close request has been resolved, and the window will not be closed. If a close all windows operation is in progress but stalled due to the deferral, it will be cancelled. This includes application quit requests.