Public Member Functions | |
Window () | |
virtual | ~Window () |
void | addOwnedWindow (Window *window) |
void | removeOwnedWindow (Window *window) |
void | removeOwnedWindows () |
const WindowList & | getOwnedWindows () const |
void | setContentPane (Container *pane) |
Container * | getContentPane () const |
void | add (Component *comp, int constraints=-1) |
void | remove (Component *comp) |
void | show () |
void | hide () |
void | pack () |
void | updateComponent (float deltaTime) |
virtual bool | isRootContainer () const |
void | addWindowListener (event::WindowListener *listener) |
void | removeWindowListener (event::WindowListener *listener) |
void | removeWindowListeners () |
const event::WindowListenerList | getWindowListeners () const |
void | processWindowEvent (const event::WindowEvent &e) |
void | setTitleBar (TitleBar *titleBar) |
TitleBar * | getTitleBar () const |
void | setActiveWindow (Window *window) |
Window * | getActiveWindow () const |
Protected Member Functions | |
void | paintChildren (Graphics &g) |
|
Creates a Window with default values. |
|
Frees memory used by this class. |
|
Add a window to this Window. This makes this Window the parent of the added window.
|
|
Removes a registered window from this window.
|
|
Removes all registered windows from this window. |
|
Returns the owned Windows. |
|
Sets the content pane for this Frame.
|
|
Returns the current content Pane. A content pane is a Container which is the parent of all Components that are added to Window.
|
|
Add a Component to the Window.
Reimplemented from ui::CompoundComponent. |
|
Removes a Component from this Window.
Reimplemented from ui::CompoundComponent. |
|
Shows the Window. Initially, all windows are invisible. Issuing show() on them, makes them display.
|
|
Hides the Window. Hides the window if it's current visible. Otherwise this command is ignored.
|
|
Issues a recalculation of preferred sizes. Pack recalculates all the dimensions of the Components inside the window, and tries to give each their preferred size. |
|
Updates the Window with the frame time. This function is used internally to update the components framerate independent. It's best not to call this method directly.
Reimplemented from ui::Container. |
|
Returns wether this Container is a top level Container. Reimplemented from ui::Container. |
|
Adds a window listener to this Window.
|
|
Removes a window listener from this Window.
|
|
Removes all window listeners from this Window. |
|
Returns all registered Window listeners.
|
|
Forwards the event to the registered listeners and appropriate methods.
|
|
Paints the Window and it's children.
Reimplemented from ui::Container. |