Relative layout parameter. More...
Inherits LayoutParameter.
Public Types | |
enum | RelativeAlign |
Relative Alignment type. | |
Public Types inherited from LayoutParameter | |
enum | Type |
Layout parameter type. More... | |
Public Member Functions | |
RelativeLayoutParameter () | |
Default constructor. | |
new () | |
Default constructor. | |
virtual | ~RelativeLayoutParameter () |
Default destructor. | |
void | setAlign (RelativeAlign align) |
Sets RelativeAlign parameter for LayoutParameter. More... | |
var | setAlign ( var align) |
Sets RelativeAlign parameter for LayoutParameter. More... | |
local | setAlign ( local 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... | |
local | getRelativeName () |
Get a name of LayoutParameter in Relative Layout. 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 RelativeLayoutParameter * | create () |
Create a RelativeLayoutParameter instance. More... | |
var | create () |
Create a RelativeLayoutParameter instance. More... | |
local | create () |
Create a RelativeLayoutParameter 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... | |
Relative layout parameter.
It is mainly used by RelativeLayoutManager
.
|
static |
Create a RelativeLayoutParameter instance.
A initialized LayoutParameter which is marked as "autorelease".
|
static |
Create a RelativeLayoutParameter instance.
A initialized LayoutParameter which is marked as "autorelease".
|
static |
Create a RelativeLayoutParameter instance.
A initialized LayoutParameter which is marked as "autorelease".
void setAlign | ( | RelativeAlign | align | ) |
Sets RelativeAlign parameter for LayoutParameter.
Relative align in RelativeAlign
.
var setAlign | ( | var | align | ) |
Sets RelativeAlign parameter for LayoutParameter.
Relative align in RelativeAlign
.
local setAlign | ( | local | align | ) |
Sets RelativeAlign parameter for LayoutParameter.
Relative align in RelativeAlign
.
RelativeAlign getAlign | ( | ) | const |
Get RelativeAlign parameter for LayoutParameter.
A RelativeAlign variable.
var getAlign | ( | ) |
Get RelativeAlign parameter for LayoutParameter.
A RelativeAlign variable.
local getAlign | ( | ) |
Get RelativeAlign parameter for LayoutParameter.
A RelativeAlign variable.
void setRelativeToWidgetName | ( | const std::string & | name | ) |
Set widget name your widget want to relative to.
Relative widget name.
var setRelativeToWidgetName | ( | var | name | ) |
Set widget name your widget want to relative to.
Relative widget name.
local setRelativeToWidgetName | ( | local | name | ) |
Set widget name your widget want to relative to.
Relative widget name.
const std::string& getRelativeToWidgetName |
( | ) | const |
Get the relative widget name.
name A relative widget name in string.
var getRelativeToWidgetName | ( | ) |
Get the relative widget name.
name A relative widget name in string.
local getRelativeToWidgetName | ( | ) |
Get the relative widget name.
name A relative widget name in string.
void setRelativeName | ( | const std::string & | name | ) |
Set a name for LayoutParameter in Relative Layout.
A string name.
var setRelativeName | ( | var | name | ) |
Set a name for LayoutParameter in Relative Layout.
A string name.
local setRelativeName | ( | local | name | ) |
Set a name for LayoutParameter in Relative Layout.
A string name.
const std::string& getRelativeName | ( | ) | const |
Get a name of LayoutParameter in Relative Layout.
name Relative name in string.
var getRelativeName | ( | ) |
Get a name of LayoutParameter in Relative Layout.
name Relative name in string.
local getRelativeName | ( | ) |
Get a name of LayoutParameter in Relative Layout.
name Relative name in string.
|
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.