#include <gfx_gui.hh>
Public Member Functions | |
| GuiScreen (GuiBase &gui) | |
| ~GuiScreen () | |
| void | Draw (void) |
| void | SetVisi (bool f) |
| bool | IfVisi (void) |
| void | ToggleVisi (void) |
| void | SetSens (bool f) |
| void | ToggleSens (void) |
| bool | IfSens (void) |
| void | SetVisiSens (bool f) |
| void | Print (const char *text, uint textLen, fp x, fp y, eFontMode fontMode) |
| void | Print (const char *text, uint textLen, fp x, fp y, eFontMode fontMode, const RGBA rgba) |
| void | PrintTimer (Seconds seconds, const PrintDesc &desc) |
| uint | PrintTimerPopulation (void) |
| bool | IfPrintTimerDuplicate (const char *str) |
| void | SetPrintColor (const RGBA rgba) |
| void | PushPrint (eScreenFontType type, eScreenFontSize size) |
| void | PushPrint (eScreenFontType type, eScreenFontSize size, const RGBA rgba) |
| void | PopPrint (void) |
| GuiButton * | NewButton (fp x, fp y, eFontMode fontMode, fnMouseButtonCallback callback) |
| void | DeleteButton (GuiButton *button) |
Private Member Functions | |
| void | PushFont (Gfont &gfont, eScreenFontType type, eScreenFontSize size, const RGBA rgba) |
| void | PopFont (Gfont &gfont) |
| void | LinkObject (GuiObject *obj) |
| void | UnlinkObject (GuiObject *obj) |
Private Attributes | |
| GuiBase & | mGui |
| bool | mVisible |
| bool | mSensitive |
| Dlink< GuiScreen > * | mLinkScreen |
| uint | mPrintTimerCnt |
| Gfont | mGfont |
| Dlist< GuiObject > | mObjectDlist |
| stack< Gfont > | mGfontStack |
Friends | |
| class | GuiBase |
| class | GuiObject |
Users should call Gui::NewScreen().
| gfx::GuiScreen::GuiScreen | ( | GuiBase & | gui | ) | [explicit] |
ctor/dtor.
| gfx::GuiScreen::~GuiScreen | ( | ) |
| void gfx::GuiScreen::Draw | ( | void | ) |
Draw all objects in the screen.
| void gfx::GuiScreen::SetVisi | ( | bool | f | ) | [inline] |
| bool gfx::GuiScreen::IfVisi | ( | void | ) | [inline] |
| void gfx::GuiScreen::ToggleVisi | ( | void | ) | [inline] |
| void gfx::GuiScreen::SetSens | ( | bool | f | ) | [inline] |
| void gfx::GuiScreen::ToggleSens | ( | void | ) | [inline] |
| bool gfx::GuiScreen::IfSens | ( | void | ) | [inline] |
| void gfx::GuiScreen::SetVisiSens | ( | bool | f | ) | [inline] |
Font::Print() wrapper. See gfx_font.hh. Unlike PrintTimer(), the application must repetively call Print() on every frame.
| void gfx::GuiScreen::Print | ( | const char * | text, | |
| uint | textLen, | |||
| fp | x, | |||
| fp | y, | |||
| eFontMode | fontMode, | |||
| const RGBA | rgba | |||
| ) |
| uint gfx::GuiScreen::PrintTimerPopulation | ( | void | ) | [inline] |
| bool gfx::GuiScreen::IfPrintTimerDuplicate | ( | const char * | str | ) |
Return true if any GuiPrint object with an outstanding timer matches the passed string. Used to avoid printing duplicate messages.
| void gfx::GuiScreen::PushPrint | ( | eScreenFontType | type, | |
| eScreenFontSize | size | |||
| ) |
Interface to change and restore fonts. PushPrint() does push-then-change operations.
| void gfx::GuiScreen::PushPrint | ( | eScreenFontType | type, | |
| eScreenFontSize | size, | |||
| const RGBA | rgba | |||
| ) |
| void gfx::GuiScreen::PopPrint | ( | void | ) |
| void gfx::GuiScreen::PushFont | ( | Gfont & | gfont, | |
| eScreenFontType | type, | |||
| eScreenFontSize | size, | |||
| const RGBA | rgba | |||
| ) | [private] |
Push/pop fonts in this screen.
| void gfx::GuiScreen::PopFont | ( | Gfont & | gfont | ) | [private] |
| GuiButton * gfx::GuiScreen::NewButton | ( | fp | x, | |
| fp | y, | |||
| eFontMode | fontMode, | |||
| fnMouseButtonCallback | callback | |||
| ) |
Button wrapper.
| void gfx::GuiScreen::DeleteButton | ( | GuiButton * | button | ) |
| void gfx::GuiScreen::LinkObject | ( | GuiObject * | obj | ) | [private] |
Manage list of objects in screen.
| void gfx::GuiScreen::UnlinkObject | ( | GuiObject * | obj | ) | [private] |
friend class GuiBase [friend] |
friend class GuiObject [friend] |
GuiBase& gfx::GuiScreen::mGui [private] |
bool gfx::GuiScreen::mVisible [private] |
bool gfx::GuiScreen::mSensitive [private] |
Dlink<GuiScreen>* gfx::GuiScreen::mLinkScreen [private] |
uint gfx::GuiScreen::mPrintTimerCnt [private] |
Gfont gfx::GuiScreen::mGfont [private] |
Dlist<GuiObject> gfx::GuiScreen::mObjectDlist [private] |
stack<Gfont> gfx::GuiScreen::mGfontStack [private] |
Palomino 3D Engine documents generated by doxygen 1.5.3 on Fri Nov 23 11:26:26 2007