Otclient  14/8/2020
UIGridLayout Class Reference

#include <uigridlayout.h>

Inheritance diagram for UIGridLayout:
Collaboration diagram for UIGridLayout:

Public Member Functions

 UIGridLayout (UIWidgetPtr parentWidget)
 
void applyStyle (const OTMLNodePtr &styleNode)
 
void removeWidget (const UIWidgetPtr &widget)
 
void addWidget (const UIWidgetPtr &widget)
 
void setCellSize (const Size &size)
 
void setCellWidth (int width)
 
void setCellHeight (int height)
 
void setCellSpacing (int spacing)
 
void setNumColumns (int columns)
 
void setNumLines (int lines)
 
void setAutoSpacing (bool enable)
 
void setFitChildren (bool enable)
 
void setFlow (bool enable)
 
Size getCellSize ()
 
int getCellSpacing ()
 
int getNumColumns ()
 
int getNumLines ()
 
virtual bool isUIGridLayout ()
 
- 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 isUIBoxLayout ()
 
virtual bool isUIHorizontalLayout ()
 
virtual bool isUIVerticalLayout ()
 
- 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

bool internalUpdate ()
 

Additional Inherited Members

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

Detailed Description

Definition at line 29 of file uigridlayout.h.

Constructor & Destructor Documentation

◆ UIGridLayout()

UIGridLayout::UIGridLayout ( UIWidgetPtr  parentWidget)

Definition at line 28 of file uigridlayout.cpp.

Member Function Documentation

◆ addWidget()

void UIGridLayout::addWidget ( const UIWidgetPtr widget)
virtual

Reimplemented from UILayout.

Definition at line 67 of file uigridlayout.cpp.

Here is the call graph for this function:

◆ applyStyle()

void UIGridLayout::applyStyle ( const OTMLNodePtr styleNode)
virtual

Reimplemented from UILayout.

Definition at line 36 of file uigridlayout.cpp.

Here is the call graph for this function:

◆ getCellSize()

Size UIGridLayout::getCellSize ( )
inline

Definition at line 48 of file uigridlayout.h.

Here is the caller graph for this function:

◆ getCellSpacing()

int UIGridLayout::getCellSpacing ( )
inline

Definition at line 49 of file uigridlayout.h.

Here is the caller graph for this function:

◆ getNumColumns()

int UIGridLayout::getNumColumns ( )
inline

Definition at line 50 of file uigridlayout.h.

Here is the caller graph for this function:

◆ getNumLines()

int UIGridLayout::getNumLines ( )
inline

Definition at line 51 of file uigridlayout.h.

Here is the caller graph for this function:

◆ internalUpdate()

bool UIGridLayout::internalUpdate ( )
protectedvirtual

Reimplemented from UILayout.

Definition at line 72 of file uigridlayout.cpp.

Here is the call graph for this function:

◆ isUIGridLayout()

virtual bool UIGridLayout::isUIGridLayout ( )
inlinevirtual

Reimplemented from UILayout.

Definition at line 53 of file uigridlayout.h.

Here is the caller graph for this function:

◆ removeWidget()

void UIGridLayout::removeWidget ( const UIWidgetPtr widget)
virtual

Reimplemented from UILayout.

Definition at line 62 of file uigridlayout.cpp.

Here is the call graph for this function:

◆ setAutoSpacing()

void UIGridLayout::setAutoSpacing ( bool  enable)
inline

Definition at line 44 of file uigridlayout.h.

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

◆ setCellHeight()

void UIGridLayout::setCellHeight ( int  height)
inline

Definition at line 40 of file uigridlayout.h.

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

◆ setCellSize()

void UIGridLayout::setCellSize ( const Size size)
inline

Definition at line 38 of file uigridlayout.h.

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

◆ setCellSpacing()

void UIGridLayout::setCellSpacing ( int  spacing)
inline

Definition at line 41 of file uigridlayout.h.

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

◆ setCellWidth()

void UIGridLayout::setCellWidth ( int  width)
inline

Definition at line 39 of file uigridlayout.h.

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

◆ setFitChildren()

void UIGridLayout::setFitChildren ( bool  enable)
inline

Definition at line 45 of file uigridlayout.h.

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

◆ setFlow()

void UIGridLayout::setFlow ( bool  enable)
inline

Definition at line 46 of file uigridlayout.h.

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

◆ setNumColumns()

void UIGridLayout::setNumColumns ( int  columns)
inline

Definition at line 42 of file uigridlayout.h.

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

◆ setNumLines()

void UIGridLayout::setNumLines ( int  lines)
inline

Definition at line 43 of file uigridlayout.h.

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

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