Otclient  14/8/2020
UILayout Class Reference

#include <uilayout.h>

Inheritance diagram for UILayout:
Collaboration diagram for UILayout:

Public Member Functions

 UILayout (UIWidgetPtr parentWidget)
 
void update ()
 
void updateLater ()
 
virtual void applyStyle (const OTMLNodePtr &)
 
virtual void addWidget (const UIWidgetPtr &)
 
virtual void removeWidget (const UIWidgetPtr &)
 
void disableUpdates ()
 
void enableUpdates ()
 
void setParent (UIWidgetPtr parentWidget)
 
UIWidgetPtr getParentWidget ()
 
bool isUpdateDisabled ()
 
bool isUpdating ()
 
virtual bool isUIAnchorLayout ()
 
virtual bool isUIBoxLayout ()
 
virtual bool isUIHorizontalLayout ()
 
virtual bool isUIVerticalLayout ()
 
virtual bool isUIGridLayout ()
 
- Public Member Functions inherited from LuaObject
 LuaObject ()
 
virtual ~LuaObject ()
 
template<typename T >
void connectLuaField (const std::string &field, const std::function< T > &f, bool pushFront=false)
 
template<typename... T>
int luaCallLuaField (const std::string &field, const T &... args)
 
template<typename R , typename... T>
callLuaField (const std::string &field, const T &... args)
 
template<typename... T>
void callLuaField (const std::string &field, const T &... args)
 
bool hasLuaField (const std::string &field)
 Returns true if the lua field exists. More...
 
template<typename T >
void setLuaField (const std::string &key, const T &value)
 Sets a field in this lua object. More...
 
template<typename T >
getLuaField (const std::string &key)
 Gets a field from this lua object. More...
 
void releaseLuaFieldsTable ()
 Release fields table reference. More...
 
void luaSetField (const std::string &key)
 Sets a field from this lua object, the value must be on the stack. More...
 
void luaGetField (const std::string &key)
 Gets a field from this lua object, the result is pushed onto the stack. More...
 
void luaGetMetatable ()
 Get object's metatable. More...
 
void luaGetFieldsTable ()
 Gets the table containing all stored fields of this lua object, the result is pushed onto the stack. More...
 
int getUseCount ()
 
std::string getClassName ()
 Returns the derived class name, its the same name used in Lua. More...
 
LuaObjectPtr asLuaObject ()
 
void operator= (const LuaObject &)
 
- Public Member Functions inherited from stdext::shared_object
 shared_object ()
 
virtual ~shared_object ()
 
void add_ref ()
 
void dec_ref ()
 
refcount_t ref_count ()
 
template<typename T >
stdext::shared_object_ptr< T > static_self_cast ()
 
template<typename T >
stdext::shared_object_ptr< T > dynamic_self_cast ()
 
template<typename T >
stdext::shared_object_ptr< T > const_self_cast ()
 

Protected Member Functions

virtual bool internalUpdate ()
 

Protected Attributes

int m_updateDisabled
 
stdext::boolean< false > m_updating
 
stdext::boolean< false > m_updateScheduled
 
UIWidgetPtr m_parentWidget
 

Detailed Description

Definition at line 31 of file uilayout.h.

Constructor & Destructor Documentation

◆ UILayout()

UILayout::UILayout ( UIWidgetPtr  parentWidget)
inline

Definition at line 34 of file uilayout.h.

Member Function Documentation

◆ addWidget()

virtual void UILayout::addWidget ( const UIWidgetPtr )
inlinevirtual

Reimplemented in UIAnchorLayout, UIGridLayout, and UIBoxLayout.

Definition at line 40 of file uilayout.h.

Here is the caller graph for this function:

◆ applyStyle()

virtual void UILayout::applyStyle ( const OTMLNodePtr )
inlinevirtual

Reimplemented in UIBoxLayout, UIGridLayout, UIVerticalLayout, and UIHorizontalLayout.

Definition at line 39 of file uilayout.h.

Here is the caller graph for this function:

◆ disableUpdates()

void UILayout::disableUpdates ( )
inline

Definition at line 42 of file uilayout.h.

Here is the caller graph for this function:

◆ enableUpdates()

void UILayout::enableUpdates ( )
inline

Definition at line 43 of file uilayout.h.

Here is the caller graph for this function:

◆ getParentWidget()

UIWidgetPtr UILayout::getParentWidget ( )
inline

Definition at line 46 of file uilayout.h.

Here is the caller graph for this function:

◆ internalUpdate()

virtual bool UILayout::internalUpdate ( )
inlineprotectedvirtual

Reimplemented in UIAnchorLayout, UIGridLayout, UIVerticalLayout, and UIHorizontalLayout.

Definition at line 58 of file uilayout.h.

Here is the caller graph for this function:

◆ isUIAnchorLayout()

virtual bool UILayout::isUIAnchorLayout ( )
inlinevirtual

Reimplemented in UIAnchorLayout.

Definition at line 51 of file uilayout.h.

Here is the caller graph for this function:

◆ isUIBoxLayout()

virtual bool UILayout::isUIBoxLayout ( )
inlinevirtual

Reimplemented in UIBoxLayout.

Definition at line 52 of file uilayout.h.

Here is the caller graph for this function:

◆ isUIGridLayout()

virtual bool UILayout::isUIGridLayout ( )
inlinevirtual

Reimplemented in UIGridLayout.

Definition at line 55 of file uilayout.h.

Here is the caller graph for this function:

◆ isUIHorizontalLayout()

virtual bool UILayout::isUIHorizontalLayout ( )
inlinevirtual

Reimplemented in UIHorizontalLayout.

Definition at line 53 of file uilayout.h.

Here is the caller graph for this function:

◆ isUIVerticalLayout()

virtual bool UILayout::isUIVerticalLayout ( )
inlinevirtual

Reimplemented in UIVerticalLayout.

Definition at line 54 of file uilayout.h.

Here is the caller graph for this function:

◆ isUpdateDisabled()

bool UILayout::isUpdateDisabled ( )
inline

Definition at line 48 of file uilayout.h.

Here is the caller graph for this function:

◆ isUpdating()

bool UILayout::isUpdating ( )
inline

Definition at line 49 of file uilayout.h.

Here is the caller graph for this function:

◆ removeWidget()

virtual void UILayout::removeWidget ( const UIWidgetPtr )
inlinevirtual

Reimplemented in UIAnchorLayout, UIBoxLayout, and UIGridLayout.

Definition at line 41 of file uilayout.h.

Here is the caller graph for this function:

◆ setParent()

void UILayout::setParent ( UIWidgetPtr  parentWidget)
inline

Definition at line 45 of file uilayout.h.

Here is the caller graph for this function:

◆ update()

void UILayout::update ( )

Definition at line 28 of file uilayout.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateLater()

void UILayout::updateLater ( )

Definition at line 58 of file uilayout.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_parentWidget

UIWidgetPtr UILayout::m_parentWidget
protected

Definition at line 63 of file uilayout.h.

◆ m_updateDisabled

int UILayout::m_updateDisabled
protected

Definition at line 60 of file uilayout.h.

◆ m_updateScheduled

stdext::boolean<false> UILayout::m_updateScheduled
protected

Definition at line 62 of file uilayout.h.

◆ m_updating

stdext::boolean<false> UILayout::m_updating
protected

Definition at line 61 of file uilayout.h.


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