DOSBox-X
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Public Member Functions
GUI::ToplevelWindow_Callback Struct Reference

Callbacks for window events. More...

#include <gui_tk.h>

Inheritance diagram for GUI::ToplevelWindow_Callback:
GUI::TransientWindow GUI::Menu

List of all members.

Public Member Functions

virtual bool windowClosing (ToplevelWindow *win)=0
 The window has been asked to be closed.
virtual void windowClosed (ToplevelWindow *win)=0
 The window will been closed.

Detailed Description

Callbacks for window events.

Definition at line 1738 of file gui_tk.h.


Member Function Documentation

virtual void GUI::ToplevelWindow_Callback::windowClosed ( ToplevelWindow win) [pure virtual]

The window will been closed.

Now it is safe to deallocate all external resources that applications may have associated with this window, like registering this window with external callbacks.

Implemented in GUI::TransientWindow.

Referenced by GUI::ToplevelWindow::~ToplevelWindow().

virtual bool GUI::ToplevelWindow_Callback::windowClosing ( ToplevelWindow win) [pure virtual]

The window has been asked to be closed.

Return false in order to block the requested action. Do not do any deallocation here, as other callbacks may abort the close process.

Implemented in GUI::TransientWindow.

Referenced by GUI::ToplevelWindow::close().


The documentation for this struct was generated from the following file: