Lugre::cDialog Class Reference

a dialog is the root group for widgets, only dialogs have a non-hierarchical z-ordering and can be brought to the front More...

#include <lugre_widget.h>

Inheritance diagram for Lugre::cDialog:

Inheritance graph
[legend]
Collaboration diagram for Lugre::cDialog:

Collaboration graph
[legend]

List of all members.

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 ()
cWidgetCreateWidget (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)
cWidgetGetWidgetUnderPos (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


Detailed Description

a dialog is the root group for widgets, only dialogs have a non-hierarchical z-ordering and can be brought to the front

Definition at line 71 of file lugre_widget.h.


Constructor & Destructor Documentation

Lugre::cDialog::cDialog (  ) 

don't use, just for lua binding

Definition at line 95 of file lugre_widget.cpp.

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.


Member Function Documentation

cWidget * Lugre::cDialog::CreateWidget ( cWidget pParent = 0  ) 

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  ) 

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  ) 

Definition at line 171 of file lugre_widget.cpp.

References mbVisible, and mpOverlay.

bool Lugre::cDialog::GetVisible (  ) 

Definition at line 179 of file lugre_widget.cpp.

References mbVisible.

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]

lua binding

Definition at line 168 of file lugre_widget_L.cpp.

References PROFILE.


Member Data Documentation

Definition at line 72 of file lugre_widget.h.

Referenced by 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().


The documentation for this class was generated from the following files:

Generated on Wed Feb 8 06:00:22 2012 for cpp by  doxygen 1.5.6