Linear layout parameter. More...
Inherits LayoutParameter.
Public Types | |
enum | LinearGravity |
Linear gravity. | |
Public Types inherited from LayoutParameter | |
enum | Type |
Layout parameter type. More... | |
Public Member Functions | |
LinearLayoutParameter () | |
Default constructor. | |
virtual | ~LinearLayoutParameter () |
Default destructor. | |
var | ~LinearLayoutParameter () |
Default destructor. | |
void | setGravity (LinearGravity gravity) |
Sets LinearGravity parameter for LayoutParameter. More... | |
local | setGravity ( local gravity) |
Sets LinearGravity parameter for LayoutParameter. More... | |
LinearGravity | getGravity () const |
Gets LinearGravity parameter for LayoutParameter. More... | |
local | getGravity () |
Gets LinearGravity parameter for LayoutParameter. More... | |
virtual LayoutParameter * | createCloneInstance () override |
Create a cloned instance of LayoutParameter. More... | |
local | createCloneInstance () |
Create a cloned instance of LayoutParameter. More... | |
virtual void | copyProperties (LayoutParameter *model) override |
Copy all the member field from argument LayoutParameter to self. More... | |
var | copyProperties ( var model) |
Copy all the member field from argument LayoutParameter to self. More... | |
local | copyProperties ( local model) |
Copy all the member field from argument LayoutParameter to self. More... | |
Public Member Functions inherited from LayoutParameter | |
LayoutParameter () | |
Default constructor. | |
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... | |
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 LinearLayoutParameter * | create () |
Create a empty LinearLayoutParameter instance. More... | |
local | create () |
Create a empty LinearLayoutParameter instance. More... | |
Static Public Member Functions inherited from LayoutParameter | |
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... | |
Linear layout parameter.
It is used by linear layout manager for arranging elements linearly.
|
static |
Create a empty LinearLayoutParameter instance.
A initialized LayoutParameter which is marked as "autorelease".
|
static |
Create a empty LinearLayoutParameter instance.
A initialized LayoutParameter which is marked as "autorelease".
|
static |
Create a empty LinearLayoutParameter instance.
A initialized LayoutParameter which is marked as "autorelease".
void setGravity | ( | LinearGravity | gravity | ) |
Sets LinearGravity parameter for LayoutParameter.
Gravity in LinearGravity.
var setGravity | ( | var | gravity | ) |
Sets LinearGravity parameter for LayoutParameter.
Gravity in LinearGravity.
local setGravity | ( | local | gravity | ) |
Sets LinearGravity parameter for LayoutParameter.
Gravity in LinearGravity.
LinearGravity getGravity | ( | ) | const |
Gets LinearGravity parameter for LayoutParameter.
LinearGravity
var getGravity | ( | ) |
Gets LinearGravity parameter for LayoutParameter.
LinearGravity
local getGravity | ( | ) |
Gets LinearGravity parameter for LayoutParameter.
LinearGravity
|
overridevirtual |
Create a cloned instance of LayoutParameter.
A LayoutParameter pointer.
Reimplemented from LayoutParameter.
|
overridevirtual |
Create a cloned instance of LayoutParameter.
A LayoutParameter pointer.
Reimplemented from LayoutParameter.
|
overridevirtual |
Create a cloned instance of LayoutParameter.
A LayoutParameter pointer.
Reimplemented from LayoutParameter.
|
overridevirtual |
Copy all the member field from argument LayoutParameter to self.
A LayoutParameter instance.
Reimplemented from LayoutParameter.
|
overridevirtual |
Copy all the member field from argument LayoutParameter to self.
A LayoutParameter instance.
Reimplemented from LayoutParameter.
|
overridevirtual |
Copy all the member field from argument LayoutParameter to self.
A LayoutParameter instance.
Reimplemented from LayoutParameter.