#include <WindowLayout.h>
Inherits MemoryPoolObject.
Public Member Functions | |
| WindowLayout (void) | |
| AsciiString | getFilename (void) |
| return source window filename | |
| Bool | load (AsciiString filename) |
| create windows and load from .wnd file | |
| void | hide (Bool hide) |
| hide/unhide all windows on this screen | |
| Bool | isHidden (void) |
| return visible state of screen | |
| void | bringForward (void) |
| bring all windows in this screen forward | |
| void | addWindow (GameWindow *window) |
| add window to screen | |
| void | removeWindow (GameWindow *window) |
| remove window from screen | |
| void | destroyWindows (void) |
| destroy all windows in this screen | |
| GameWindow * | getFirstWindow (void) |
| get first window in list for screen | |
| void | runInit (void *userData=NULL) |
| run the init method if available | |
| void | runUpdate (void *userData=NULL) |
| run the update method if available | |
| void | runShutdown (void *userData=NULL) |
| run the shutdown method if available | |
| void | setInit (WindowLayoutInitFunc init) |
| set the init callback | |
| void | setUpdate (WindowLayoutUpdateFunc update) |
| set the update callback | |
| void | setShutdown (WindowLayoutShutdownFunc shutdown) |
| set the shutdown callback | |
Public Member Functions inherited from MemoryPoolObject | |
| void | deleteInstance () |
Protected Member Functions | |
| GameWindow * | findWindow (GameWindow *window) |
| find window in this layout | |
Protected Member Functions inherited from MemoryPoolObject | |
| virtual | ~MemoryPoolObject () |
| void * | operator new (size_t s) |
| void | operator delete (void *p) |
| virtual MemoryPool * | getObjectMemoryPool ()=0 |
Protected Attributes | |
| AsciiString | m_filenameString |
| layout filename | |
| GameWindow * | m_windowList |
| list of windows in this layout | |
| GameWindow * | m_windowTail |
| end of m_windowList | |
| Int | m_windowCount |
| how man windows are in the list | |
| Bool | m_hidden |
| visible state of this screen | |
| WindowLayoutInitFunc | m_init |
| init callback | |
| WindowLayoutUpdateFunc | m_update |
| update callback | |
| WindowLayoutShutdownFunc | m_shutdown |
| shutdown callback | |
The representation of a screen layout loaded from a .wnd layout script file
Definition at line 53 of file WindowLayout.h.
| WindowLayout::WindowLayout | ( | void | ) |
Definition at line 46 of file WindowLayout.cpp.
| void WindowLayout::addWindow | ( | GameWindow * | window | ) |
| void WindowLayout::bringForward | ( | void | ) |
bring all windows in this screen forward
Bring all windows in this layout forward
Definition at line 267 of file WindowLayout.cpp.
| void WindowLayout::destroyWindows | ( | void | ) |
destroy all windows in this screen
Destroy all the windows in a layout
Definition at line 174 of file WindowLayout.cpp.
|
protected |
find window in this layout
Find window within this layout
Definition at line 298 of file WindowLayout.cpp.
|
inline |
return source window filename
Definition at line 113 of file WindowLayout.h.
|
inline |
get first window in list for screen
Definition at line 114 of file WindowLayout.h.
| void WindowLayout::hide | ( | Bool | hide | ) |
hide/unhide all windows on this screen
Set the hidden/visible status of all the windows in this layout
Definition at line 80 of file WindowLayout.cpp.
|
inline |
return visible state of screen
Definition at line 115 of file WindowLayout.h.
| Bool WindowLayout::load | ( | AsciiString | filename | ) |
create windows and load from .wnd file
Create the windows using the .wnd file script and load all windows into this layout
Definition at line 199 of file WindowLayout.cpp.
| void WindowLayout::removeWindow | ( | GameWindow * | window | ) |
remove window from screen
Remove window from this layout
Definition at line 136 of file WindowLayout.cpp.
|
inline |
run the init method if available
Definition at line 117 of file WindowLayout.h.
|
inline |
run the shutdown method if available
Definition at line 119 of file WindowLayout.h.
|
inline |
run the update method if available
Definition at line 118 of file WindowLayout.h.
|
inline |
set the init callback
Definition at line 121 of file WindowLayout.h.
|
inline |
set the shutdown callback
Definition at line 123 of file WindowLayout.h.
|
inline |
set the update callback
Definition at line 122 of file WindowLayout.h.
|
protected |
layout filename
Definition at line 94 of file WindowLayout.h.
|
protected |
visible state of this screen
Definition at line 98 of file WindowLayout.h.
|
protected |
init callback
Definition at line 106 of file WindowLayout.h.
|
protected |
shutdown callback
Definition at line 108 of file WindowLayout.h.
|
protected |
update callback
Definition at line 107 of file WindowLayout.h.
|
protected |
how man windows are in the list
Definition at line 97 of file WindowLayout.h.
|
protected |
list of windows in this layout
Definition at line 95 of file WindowLayout.h.
|
protected |
end of m_windowList
Definition at line 96 of file WindowLayout.h.