Otclient  14/8/2020
UIAnchorLayout Class Reference

#include <uianchorlayout.h>

Inheritance diagram for UIAnchorLayout:
Collaboration diagram for UIAnchorLayout:

Public Member Functions

 UIAnchorLayout (UIWidgetPtr parentWidget)
 
void addAnchor (const UIWidgetPtr &anchoredWidget, Fw::AnchorEdge anchoredEdge, const std::string &hookedWidgetId, Fw::AnchorEdge hookedEdge)
 
void removeAnchors (const UIWidgetPtr &anchoredWidget)
 
bool hasAnchors (const UIWidgetPtr &anchoredWidget)
 
void centerIn (const UIWidgetPtr &anchoredWidget, const std::string &hookedWidgetId)
 
void fill (const UIWidgetPtr &anchoredWidget, const std::string &hookedWidgetId)
 
void addWidget (const UIWidgetPtr &widget)
 
void removeWidget (const UIWidgetPtr &widget)
 
bool isUIAnchorLayout ()
 
- Public Member Functions inherited from UILayout
 UILayout (UIWidgetPtr parentWidget)
 
void update ()
 
void updateLater ()
 
virtual void applyStyle (const OTMLNodePtr &)
 
void disableUpdates ()
 
void enableUpdates ()
 
void setParent (UIWidgetPtr parentWidget)
 
UIWidgetPtr getParentWidget ()
 
bool isUpdateDisabled ()
 
bool isUpdating ()
 
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 ()
 
virtual bool updateWidget (const UIWidgetPtr &widget, const UIAnchorGroupPtr &anchorGroup, UIWidgetPtr first=nullptr)
 

Protected Attributes

std::unordered_map< UIWidgetPtr, UIAnchorGroupPtrm_anchorsGroups
 
- 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 62 of file uianchorlayout.h.

Constructor & Destructor Documentation

◆ UIAnchorLayout()

UIAnchorLayout::UIAnchorLayout ( UIWidgetPtr  parentWidget)
inline

Definition at line 65 of file uianchorlayout.h.

Member Function Documentation

◆ addAnchor()

void UIAnchorLayout::addAnchor ( const UIWidgetPtr anchoredWidget,
Fw::AnchorEdge  anchoredEdge,
const std::string &  hookedWidgetId,
Fw::AnchorEdge  hookedEdge 
)

Definition at line 108 of file uianchorlayout.cpp.

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

◆ addWidget()

void UIAnchorLayout::addWidget ( const UIWidgetPtr widget)
virtual

Reimplemented from UILayout.

Definition at line 152 of file uianchorlayout.cpp.

Here is the call graph for this function:

◆ centerIn()

void UIAnchorLayout::centerIn ( const UIWidgetPtr anchoredWidget,
const std::string &  hookedWidgetId 
)

Definition at line 138 of file uianchorlayout.cpp.

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

◆ fill()

void UIAnchorLayout::fill ( const UIWidgetPtr anchoredWidget,
const std::string &  hookedWidgetId 
)

Definition at line 144 of file uianchorlayout.cpp.

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

◆ hasAnchors()

bool UIAnchorLayout::hasAnchors ( const UIWidgetPtr anchoredWidget)

Definition at line 133 of file uianchorlayout.cpp.

◆ internalUpdate()

bool UIAnchorLayout::internalUpdate ( )
protectedvirtual

Reimplemented from UILayout.

Definition at line 254 of file uianchorlayout.cpp.

Here is the call graph for this function:

◆ isUIAnchorLayout()

bool UIAnchorLayout::isUIAnchorLayout ( )
inlinevirtual

Reimplemented from UILayout.

Definition at line 77 of file uianchorlayout.h.

◆ removeAnchors()

void UIAnchorLayout::removeAnchors ( const UIWidgetPtr anchoredWidget)

Definition at line 127 of file uianchorlayout.cpp.

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

◆ removeWidget()

void UIAnchorLayout::removeWidget ( const UIWidgetPtr widget)
virtual

Reimplemented from UILayout.

Definition at line 157 of file uianchorlayout.cpp.

Here is the call graph for this function:

◆ updateWidget()

bool UIAnchorLayout::updateWidget ( const UIWidgetPtr widget,
const UIAnchorGroupPtr anchorGroup,
UIWidgetPtr  first = nullptr 
)
protectedvirtual

Definition at line 162 of file uianchorlayout.cpp.

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

Member Data Documentation

◆ m_anchorsGroups

std::unordered_map<UIWidgetPtr, UIAnchorGroupPtr> UIAnchorLayout::m_anchorsGroups
protected

Definition at line 82 of file uianchorlayout.h.


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