Relative layout parameter. More...
#include <UILayoutParameter.h>
Public Types | |
| enum | RelativeAlign { NONE, PARENT_TOP_LEFT, PARENT_TOP_CENTER_HORIZONTAL, PARENT_TOP_RIGHT, PARENT_LEFT_CENTER_VERTICAL, CENTER_IN_PARENT, PARENT_RIGHT_CENTER_VERTICAL, PARENT_LEFT_BOTTOM, PARENT_BOTTOM_CENTER_HORIZONTAL, PARENT_RIGHT_BOTTOM, LOCATION_ABOVE_LEFTALIGN, LOCATION_ABOVE_CENTER, LOCATION_ABOVE_RIGHTALIGN, LOCATION_LEFT_OF_TOPALIGN, LOCATION_LEFT_OF_CENTER, LOCATION_LEFT_OF_BOTTOMALIGN, LOCATION_RIGHT_OF_TOPALIGN, LOCATION_RIGHT_OF_CENTER, LOCATION_RIGHT_OF_BOTTOMALIGN, LOCATION_BELOW_LEFTALIGN, LOCATION_BELOW_CENTER, LOCATION_BELOW_RIGHTALIGN } |
| Relative Alignment type. More... | |
Public Types inherited from LayoutParameter | |
| enum | Type { NONE = 0, LINEAR, RELATIVE } |
| Layout parameter type. More... | |
Public Member Functions | |
| RelativeLayoutParameter () | |
| Default constructor. More... | |
| virtual | ~RelativeLayoutParameter () |
| Default destructor. More... | |
| void | setAlign (RelativeAlign align) |
| Sets RelativeAlign parameter for LayoutParameter. More... | |
| RelativeAlign | getAlign () const |
| Get RelativeAlign parameter for LayoutParameter. More... | |
| void | setRelativeToWidgetName (const std::string &name) |
| Set widget name your widget want to relative to. More... | |
| const std::string & | getRelativeToWidgetName () const |
| Get the relative widget name. More... | |
| void | setRelativeName (const std::string &name) |
| Set a name for LayoutParameter in Relative Layout. More... | |
| const std::string & | getRelativeName () const |
| Get a name of LayoutParameter in Relative Layout. More... | |
| virtual LayoutParameter * | createCloneInstance () override |
| Create a cloned instance of LayoutParameter. More... | |
| virtual void | copyProperties (LayoutParameter *model) override |
| Copy all the member field from argument LayoutParameter to self. More... | |
Public Member Functions inherited from LayoutParameter | |
| LayoutParameter () | |
| Default constructor. More... | |
| virtual | ~LayoutParameter () |
| Default destructor. More... | |
| void | setMargin (const Margin &margin) |
| Set margin parameter for LayoutParameter. More... | |
| const Margin & | getMargin () const |
| Gets margin parameter of LayoutParameter. More... | |
| Type | getLayoutType () const |
| Gets LayoutParameterType of LayoutParameter. More... | |
| LayoutParameter * | clone () |
| Create a copy of original LayoutParameter. More... | |
Public Member Functions inherited from Ref | |
| void | retain () |
| Retains the ownership. More... | |
| void | release () |
| Releases the ownership immediately. More... | |
| Ref * | autorelease () |
| Releases the ownership sometime soon automatically. More... | |
| unsigned int | getReferenceCount () const |
| Returns the Ref's current reference count. More... | |
| virtual | ~Ref () |
| Destructor. More... | |
Static Public Member Functions | |
| static RelativeLayoutParameter * | create () |
| Create a RelativeLayoutParameter instance. More... | |
Static Public Member Functions inherited from LayoutParameter | |
| static LayoutParameter * | create () |
| Create a empty LayoutParameter. More... | |
Protected Attributes | |
| RelativeAlign | _relativeAlign |
| std::string | _relativeWidgetName |
| std::string | _relativeLayoutName |
| bool | _put |
Protected Attributes inherited from LayoutParameter | |
| Margin | _margin |
| Type | _layoutParameterType |
Protected Attributes inherited from Ref | |
| unsigned int | _referenceCount |
| count of references More... | |
| local | _referenceCount |
| count of references More... | |
Friends | |
| class | RelativeLayoutManager |
Additional Inherited Members | |
Protected Member Functions inherited from Ref | |
| Ref () | |
| Constructor. More... | |
| Ref () | |
| Constructor. More... | |
Relative layout parameter.
It is mainly used by RelativeLayoutManager.
|
inline |
Default constructor.
|
inlinevirtual |
Default destructor.
|
overridevirtual |
Copy all the member field from argument LayoutParameter to self.
| model | A LayoutParameter instance. |
Reimplemented from LayoutParameter.
|
static |
Create a RelativeLayoutParameter instance.
|
overridevirtual |
Create a cloned instance of LayoutParameter.
Reimplemented from LayoutParameter.
| RelativeAlign getAlign | ( | ) | const |
Get RelativeAlign parameter for LayoutParameter.
| const std::string& getRelativeName | ( | ) | const |
Get a name of LayoutParameter in Relative Layout.
| const std::string& getRelativeToWidgetName |
( | ) | const |
Get the relative widget name.
| void setAlign | ( | RelativeAlign | align | ) |
Sets RelativeAlign parameter for LayoutParameter.
| align | Relative align in RelativeAlign. |
| void setRelativeName | ( | const std::string & | name | ) |
Set a name for LayoutParameter in Relative Layout.
| name | A string name. |
| void setRelativeToWidgetName | ( | const std::string & | name | ) |
Set widget name your widget want to relative to.
| name | Relative widget name. |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |