Base class for various LayoutParameter. More...
#include <UILayoutParameter.h>
Public Types | |
enum | Type { NONE = 0, LINEAR, RELATIVE } |
Layout parameter type. More... | |
Public Member Functions | |
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... | |
virtual LayoutParameter * | createCloneInstance () |
Create a cloned instance of LayoutParameter. More... | |
virtual void | copyProperties (LayoutParameter *model) |
Copy all the member field from argument LayoutParameter to self. More... | |
![]() | |
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 LayoutParameter * | create () |
Create a empty LayoutParameter. More... | |
Protected Attributes | |
Margin | _margin |
Type | _layoutParameterType |
![]() | |
unsigned int | _referenceCount |
count of references More... | |
local | _referenceCount |
count of references More... | |
Additional Inherited Members | |
![]() | |
Ref () | |
Constructor. More... | |
Ref () | |
Constructor. More... | |
Base class for various LayoutParameter.
|
inline |
Default constructor.
|
inlinevirtual |
Default destructor.
LayoutParameter* clone | ( | ) |
Create a copy of original LayoutParameter.
|
virtual |
Copy all the member field from argument LayoutParameter to self.
model | A LayoutParameter instance. |
Reimplemented in RelativeLayoutParameter, and LinearLayoutParameter.
|
static |
Create a empty LayoutParameter.
|
virtual |
Create a cloned instance of LayoutParameter.
Reimplemented in RelativeLayoutParameter, and LinearLayoutParameter.
Type getLayoutType | ( | ) | const |
Gets LayoutParameterType of LayoutParameter.
const Margin& getMargin | ( | ) | const |
void setMargin | ( | const Margin & | margin | ) |
|
protected |
|
protected |