Otclient  14/8/2020
UIAnchor Class Reference

#include <uianchorlayout.h>

Inheritance diagram for UIAnchor:
Collaboration diagram for UIAnchor:

Public Member Functions

 UIAnchor (Fw::AnchorEdge anchoredEdge, const std::string &hookedWidgetId, Fw::AnchorEdge hookedEdge)
 
Fw::AnchorEdge getAnchoredEdge () const
 
Fw::AnchorEdge getHookedEdge () const
 
virtual UIWidgetPtr getHookedWidget (const UIWidgetPtr &widget, const UIWidgetPtr &parentWidget)
 
virtual int getHookedPoint (const UIWidgetPtr &hookedWidget, const UIWidgetPtr &parentWidget)
 
- 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

Fw::AnchorEdge m_anchoredEdge
 
Fw::AnchorEdge m_hookedEdge
 
std::string m_hookedWidgetId
 

Detailed Description

Definition at line 28 of file uianchorlayout.h.

Constructor & Destructor Documentation

◆ UIAnchor()

UIAnchor::UIAnchor ( Fw::AnchorEdge  anchoredEdge,
const std::string &  hookedWidgetId,
Fw::AnchorEdge  hookedEdge 
)
inline

Definition at line 31 of file uianchorlayout.h.

Member Function Documentation

◆ getAnchoredEdge()

Fw::AnchorEdge UIAnchor::getAnchoredEdge ( ) const
inline

Definition at line 34 of file uianchorlayout.h.

◆ getHookedEdge()

Fw::AnchorEdge UIAnchor::getHookedEdge ( ) const
inline

Definition at line 35 of file uianchorlayout.h.

◆ getHookedPoint()

int UIAnchor::getHookedPoint ( const UIWidgetPtr hookedWidget,
const UIWidgetPtr parentWidget 
)
virtual

Reimplemented in UIPositionAnchor.

Definition at line 43 of file uianchorlayout.cpp.

Here is the call graph for this function:

◆ getHookedWidget()

UIWidgetPtr UIAnchor::getHookedWidget ( const UIWidgetPtr widget,
const UIWidgetPtr parentWidget 
)
virtual

Reimplemented in UIPositionAnchor.

Definition at line 26 of file uianchorlayout.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ m_anchoredEdge

Fw::AnchorEdge UIAnchor::m_anchoredEdge
protected

Definition at line 41 of file uianchorlayout.h.

◆ m_hookedEdge

Fw::AnchorEdge UIAnchor::m_hookedEdge
protected

Definition at line 42 of file uianchorlayout.h.

◆ m_hookedWidgetId

std::string UIAnchor::m_hookedWidgetId
protected

Definition at line 43 of file uianchorlayout.h.


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