Otclient  14/8/2020
UIBoxLayout Class Reference

#include <uiboxlayout.h>

Inheritance diagram for UIBoxLayout:
Collaboration diagram for UIBoxLayout:

Public Member Functions

 UIBoxLayout (UIWidgetPtr parentWidget)
 
void applyStyle (const OTMLNodePtr &styleNode)
 
void addWidget (const UIWidgetPtr &widget)
 
void removeWidget (const UIWidgetPtr &widget)
 
void setSpacing (int spacing)
 
void setFitChildren (bool fitParent)
 
bool isUIBoxLayout ()
 
- Public Member Functions inherited from UILayout
 UILayout (UIWidgetPtr parentWidget)
 
void update ()
 
void updateLater ()
 
void disableUpdates ()
 
void enableUpdates ()
 
void setParent (UIWidgetPtr parentWidget)
 
UIWidgetPtr getParentWidget ()
 
bool isUpdateDisabled ()
 
bool isUpdating ()
 
virtual bool isUIAnchorLayout ()
 
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 Attributes

stdext::boolean< false > m_fitChildren
 
int m_spacing
 
- Protected Attributes inherited from UILayout
int m_updateDisabled
 
stdext::boolean< false > m_updating
 
stdext::boolean< false > m_updateScheduled
 
UIWidgetPtr m_parentWidget
 

Additional Inherited Members

- Protected Member Functions inherited from UILayout
virtual bool internalUpdate ()
 

Detailed Description

Definition at line 29 of file uiboxlayout.h.

Constructor & Destructor Documentation

◆ UIBoxLayout()

UIBoxLayout::UIBoxLayout ( UIWidgetPtr  parentWidget)

Definition at line 26 of file uiboxlayout.cpp.

Member Function Documentation

◆ addWidget()

void UIBoxLayout::addWidget ( const UIWidgetPtr widget)
inlinevirtual

Reimplemented from UILayout.

Definition at line 35 of file uiboxlayout.h.

Here is the call graph for this function:

◆ applyStyle()

void UIBoxLayout::applyStyle ( const OTMLNodePtr styleNode)
virtual

Reimplemented from UILayout.

Reimplemented in UIVerticalLayout, and UIHorizontalLayout.

Definition at line 31 of file uiboxlayout.cpp.

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

◆ isUIBoxLayout()

bool UIBoxLayout::isUIBoxLayout ( )
inlinevirtual

Reimplemented from UILayout.

Definition at line 41 of file uiboxlayout.h.

◆ removeWidget()

void UIBoxLayout::removeWidget ( const UIWidgetPtr widget)
inlinevirtual

Reimplemented from UILayout.

Definition at line 36 of file uiboxlayout.h.

Here is the call graph for this function:

◆ setFitChildren()

void UIBoxLayout::setFitChildren ( bool  fitParent)
inline

Definition at line 39 of file uiboxlayout.h.

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

◆ setSpacing()

void UIBoxLayout::setSpacing ( int  spacing)
inline

Definition at line 38 of file uiboxlayout.h.

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

Member Data Documentation

◆ m_fitChildren

stdext::boolean<false> UIBoxLayout::m_fitChildren
protected

Definition at line 44 of file uiboxlayout.h.

◆ m_spacing

int UIBoxLayout::m_spacing
protected

Definition at line 45 of file uiboxlayout.h.


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