#include <lugre_widget.h>


Public Member Functions | |
| cDialog () | |
| don't use, just for lua binding | |
| cDialog (const size_t iInitialZOrder) | |
| don't construct directly, use cDialogManager::GetSingleton().MyCreateDialog(); instead | |
| ~cDialog () | |
| cWidget * | CreateWidget (cWidget *pParent=0) |
| parent and id cannot change, see also cWidget::CreateChild() | |
| void | DestroyWidget (cWidget *pWidget) |
| void | BringToFront () |
| dialog will be in front of all others | |
| void | SendToBack () |
| dialog will be behind all others | |
| void | SetVisible (const bool bVisible) |
| bool | GetVisible () |
| void | SetZOrder (const size_t iZOrder) |
| [0;650] don't call directly, called from cDialogManager | |
| bool | IsUnderPos (const size_t x, const size_t y) |
| only tests root-widgets (with parent=0) | |
| cWidget * | GetWidgetUnderPos (const size_t x, const size_t y) |
Static Public Member Functions | |
| static void | LuaRegister (lua_State *L) |
| lua binding | |
Public Attributes | |
| size_t | miUID |
| std::list< cWidget * > | mlRootWidget |
| used for cDialog::IsUnderPos | |
| bool | mbVisible |
| Ogre::Overlay * | mpOverlay |
| binding to ogre, for depth sorting | |
Definition at line 71 of file lugre_widget.h.
| Lugre::cDialog::cDialog | ( | ) |
| Lugre::cDialog::cDialog | ( | const size_t | iInitialZOrder | ) |
don't construct directly, use cDialogManager::GetSingleton().MyCreateDialog(); instead
Definition at line 97 of file lugre_widget.cpp.
References Lugre::cGfx2D::CreateOverlay(), Lugre::cGfx2D::GetUniqueName(), miUID, and mpOverlay.
| Lugre::cDialog::~cDialog | ( | ) |
Definition at line 103 of file lugre_widget.cpp.
References assert, Lugre::cGfx2D::DestroyOverlay(), mlRootWidget, and mpOverlay.
parent and id cannot change, see also cWidget::CreateChild()
Definition at line 110 of file lugre_widget.cpp.
References Lugre::cWidget::AttachChild(), and mlRootWidget.
Referenced by Lugre::cWidget::CreateChild().
| void Lugre::cDialog::DestroyWidget | ( | cWidget * | pWidget | ) |
Definition at line 117 of file lugre_widget.cpp.
References assert, Lugre::cWidget::DetachChild(), Lugre::cWidget::mlChild, mlRootWidget, Lugre::cWidget::mpDialog, and Lugre::cWidget::mpParent.
Referenced by Lugre::cWidget::Destroy(), and Lugre::cDialogManager::DestroyDialog().
| void Lugre::cDialog::BringToFront | ( | ) |
dialog will be in front of all others
Definition at line 163 of file lugre_widget.cpp.
References Lugre::cDialogManager::BringToFront(), and Lugre::cDialogManager::GetSingleton().
| void Lugre::cDialog::SendToBack | ( | ) |
dialog will be behind all others
Definition at line 167 of file lugre_widget.cpp.
References Lugre::cDialogManager::GetSingleton(), and Lugre::cDialogManager::SendToBack().
| void Lugre::cDialog::SetVisible | ( | const bool | bVisible | ) |
| bool Lugre::cDialog::GetVisible | ( | ) |
| void Lugre::cDialog::SetZOrder | ( | const size_t | iZOrder | ) |
[0;650] don't call directly, called from cDialogManager
Definition at line 131 of file lugre_widget.cpp.
References mpOverlay.
| bool Lugre::cDialog::IsUnderPos | ( | const size_t | x, | |
| const size_t | y | |||
| ) |
only tests root-widgets (with parent=0)
Definition at line 139 of file lugre_widget.cpp.
References mbVisible, and mlRootWidget.
| cWidget * Lugre::cDialog::GetWidgetUnderPos | ( | const size_t | x, | |
| const size_t | y | |||
| ) |
Definition at line 146 of file lugre_widget.cpp.
References Lugre::cWidget::GetChildUnderPos(), mbVisible, and mlRootWidget.
| void Lugre::cDialog::LuaRegister | ( | lua_State * | L | ) | [static] |
| size_t Lugre::cDialog::miUID |
| std::list<cWidget*> Lugre::cDialog::mlRootWidget |
used for cDialog::IsUnderPos
Definition at line 73 of file lugre_widget.h.
Referenced by CreateWidget(), Lugre::cDialogManager::DestroyDialog(), DestroyWidget(), GetWidgetUnderPos(), IsUnderPos(), and ~cDialog().
Definition at line 74 of file lugre_widget.h.
Referenced by GetVisible(), GetWidgetUnderPos(), IsUnderPos(), and SetVisible().
| Ogre::Overlay* Lugre::cDialog::mpOverlay |
binding to ogre, for depth sorting
Definition at line 75 of file lugre_widget.h.
Referenced by cDialog(), Lugre::cWidget::cWidget(), SetVisible(), SetZOrder(), and ~cDialog().
1.5.6