Cocos2d-x  v3.10
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups
RelativeLayoutParameter Class Reference

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 LayoutParametercreateCloneInstance () 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 MargingetMargin () 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...
 
LayoutParameterclone ()
 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...
 
Refautorelease ()
 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 RelativeLayoutParametercreate ()
 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 LayoutParametercreate ()
 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...
 

Detailed Description

Relative layout parameter.

It is mainly used by RelativeLayoutManager.

Member Function Documentation

static RelativeLayoutParameter*
create
( )
static

Create a RelativeLayoutParameter instance.

A initialized LayoutParameter which is marked as "autorelease".

var create ( )
static

Create a RelativeLayoutParameter instance.

A initialized LayoutParameter which is marked as "autorelease".

local create ( )
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.

virtual LayoutParameter*
createCloneInstance
( )
overridevirtual

Create a cloned instance of LayoutParameter.

A LayoutParameter pointer.

Reimplemented from LayoutParameter.

var createCloneInstance ( )
overridevirtual

Create a cloned instance of LayoutParameter.

A LayoutParameter pointer.

Reimplemented from LayoutParameter.

local createCloneInstance ( )
overridevirtual

Create a cloned instance of LayoutParameter.

A LayoutParameter pointer.

Reimplemented from LayoutParameter.

virtual void copyProperties ( LayoutParameter model)
overridevirtual

Copy all the member field from argument LayoutParameter to self.

A LayoutParameter instance.

Reimplemented from LayoutParameter.

var copyProperties ( var  model)
overridevirtual

Copy all the member field from argument LayoutParameter to self.

A LayoutParameter instance.

Reimplemented from LayoutParameter.

local copyProperties ( local  model)
overridevirtual

Copy all the member field from argument LayoutParameter to self.

A LayoutParameter instance.

Reimplemented from LayoutParameter.


The documentation for this class was generated from the following file: