Base class for various LayoutParameter. More...
Inherits Ref.
Inherited by LinearLayoutParameter, and RelativeLayoutParameter.
Public Types | |
| enum | Type |
| Layout parameter type. More... | |
Public Member Functions | |
| LayoutParameter () | |
| Default constructor. | |
| virtual | ~LayoutParameter () |
| Default destructor. | |
| void | setMargin (const Margin &margin) |
| Set margin parameter for LayoutParameter. More... | |
| local | setMargin ( local margin) |
| Set margin parameter for LayoutParameter. More... | |
| const Margin & | getMargin () const |
| Gets margin parameter of LayoutParameter. More... | |
| local | getMargin () |
| Gets margin parameter of LayoutParameter. More... | |
| Type | getLayoutType () const |
| Gets LayoutParameterType of LayoutParameter. More... | |
| local | getLayoutType () |
| Gets LayoutParameterType of LayoutParameter. More... | |
| LayoutParameter * | clone () |
| Create a copy of original LayoutParameter. More... | |
| local | clone () |
| Create a copy of original LayoutParameter. More... | |
| virtual LayoutParameter * | createCloneInstance () |
| Create a cloned instance of LayoutParameter. More... | |
| var | createCloneInstance () |
| Create a cloned instance of LayoutParameter. More... | |
| local | createCloneInstance () |
| Create a cloned instance of LayoutParameter. More... | |
| virtual void | copyProperties (LayoutParameter *model) |
| Copy all the member field from argument LayoutParameter to self. More... | |
Public Member Functions inherited from Ref | |
| void | retain () |
| Retains the ownership. More... | |
| local | 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... | |
| local | getReferenceCount () |
| Returns the Ref's current reference count. More... | |
| virtual | ~Ref () |
| Destructor. | |
Static Public Member Functions | |
| static LayoutParameter * | create () |
| Create a empty LayoutParameter. More... | |
Additional Inherited Members | |
Public Attributes inherited from Ref | |
| unsigned int | _ID |
| object id, ScriptSupport need public _ID | |
| local | _ID |
| object id, ScriptSupport need public _ID | |
| int | _luaID |
| Lua reference id. | |
| local | _luaID |
| Lua reference id. | |
| void * | _scriptObject |
| scriptObject, support for swift | |
| local | _scriptObject |
| scriptObject, support for swift | |
| bool | _rooted |
| When true, it means that the object was already rooted. | |
| local | _rooted |
| When true, it means that the object was already rooted. | |
| bool | _scriptOwned |
| The life of the object is scrolled by the scripting engine. More... | |
| local | _scriptOwned |
| The life of the object is scrolled by the scripting engine. More... | |
Base class for various LayoutParameter.
|
static |
Create a empty LayoutParameter.
A autorelease LayoutParameter instance.
|
static |
Create a empty LayoutParameter.
A autorelease LayoutParameter instance.
|
static |
Create a empty LayoutParameter.
A autorelease LayoutParameter instance.
| void setMargin | ( | const Margin & | margin | ) |
Set margin parameter for LayoutParameter.
margin
| var setMargin | ( | var | margin | ) |
Set margin parameter for LayoutParameter.
margin
| local setMargin | ( | local | margin | ) |
Set margin parameter for LayoutParameter.
margin
| const Margin& getMargin | ( | ) | const |
Gets margin parameter of LayoutParameter.
Margin of layout parameter.
| var getMargin | ( | ) |
Gets margin parameter of LayoutParameter.
Margin of layout parameter.
| local getMargin | ( | ) |
Gets margin parameter of LayoutParameter.
Margin of layout parameter.
| Type getLayoutType | ( | ) | const |
Gets LayoutParameterType of LayoutParameter.
LayoutParameterType
| var getLayoutType | ( | ) |
Gets LayoutParameterType of LayoutParameter.
LayoutParameterType
| local getLayoutType | ( | ) |
Gets LayoutParameterType of LayoutParameter.
LayoutParameterType
| LayoutParameter* clone | ( | ) |
Create a copy of original LayoutParameter.
A LayoutParameter pointer.
| var clone | ( | ) |
Create a copy of original LayoutParameter.
A LayoutParameter pointer.
| local clone | ( | ) |
Create a copy of original LayoutParameter.
A LayoutParameter pointer.
|
virtual |
Create a cloned instance of LayoutParameter.
A LayoutParameter pointer.
Reimplemented in RelativeLayoutParameter, and LinearLayoutParameter.
|
virtual |
Create a cloned instance of LayoutParameter.
A LayoutParameter pointer.
Reimplemented in RelativeLayoutParameter, and LinearLayoutParameter.
|
virtual |
Create a cloned instance of LayoutParameter.
A LayoutParameter pointer.
Reimplemented in RelativeLayoutParameter, and LinearLayoutParameter.
|
virtual |
Copy all the member field from argument LayoutParameter to self.
A LayoutParameter instance.
Reimplemented in RelativeLayoutParameter, and LinearLayoutParameter.
|
virtual |
Copy all the member field from argument LayoutParameter to self.
A LayoutParameter instance.
Reimplemented in RelativeLayoutParameter, and LinearLayoutParameter.
|
virtual |
Copy all the member field from argument LayoutParameter to self.
A LayoutParameter instance.
Reimplemented in RelativeLayoutParameter, and LinearLayoutParameter.