Cocos2d-x  v3.17
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
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. More...
 
 RelativeLayoutParameter ()
 Default constructor. More...
 
 new ()
 Default constructor. More...
 
virtual ~RelativeLayoutParameter ()
 Default destructor. More...
 
var ~RelativeLayoutParameter ()
 Default destructor. More...
 
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...
 
var setRelativeToWidgetName ( var 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...
 
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...
 
- Public Member Functions inherited from LayoutParameter
 LayoutParameter ()
 Default constructor.
 
virtual ~LayoutParameter ()
 Default destructor.
 
void setMargin (const Margin &margin)
 Set margin parameter for LayoutParameter. More...
 
var setMargin ( var 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...
 
Type getLayoutType () const
 Gets LayoutParameterType of LayoutParameter. More...
 
local getLayoutType ()
 Gets LayoutParameterType of LayoutParameter. More...
 
LayoutParameterclone ()
 Create a copy of original LayoutParameter. More...
 
var 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...
 
void release ()
 Releases the ownership immediately. More...
 
local 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. More...
 

Static Public Member Functions

static RelativeLayoutParametercreate ()
 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...
 
var create ()
 Create a empty LayoutParameter. More...
 
local 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.
 

Detailed Description

Relative layout parameter.

It is mainly used by RelativeLayoutManager.

Constructor & Destructor Documentation

Default constructor.

var RelativeLayoutParameter ( )
inline

Default constructor.

local new ( )
inline

Default constructor.

virtual ~RelativeLayoutParameter ( )
inlinevirtual

Default destructor.

var ~RelativeLayoutParameter ( )
inlinevirtual

Default destructor.

Member Function Documentation

static RelativeLayoutParameter*
create
( )
static

Create a RelativeLayoutParameter instance.

Returns
A initialized LayoutParameter which is marked as "autorelease".
var create ( )
static

Create a RelativeLayoutParameter instance.

Returns
A initialized LayoutParameter which is marked as "autorelease".
local create ( )
static

Create a RelativeLayoutParameter instance.

Returns
A initialized LayoutParameter which is marked as "autorelease".
void setAlign ( RelativeAlign  align)

Sets RelativeAlign parameter for LayoutParameter.

See also
RelativeAlign
Parameters
alignRelative align in RelativeAlign.
var setAlign ( var  align)

Sets RelativeAlign parameter for LayoutParameter.

See also
RelativeAlign
Parameters
alignRelative align in RelativeAlign.
local setAlign ( local  align)

Sets RelativeAlign parameter for LayoutParameter.

See also
RelativeAlign
Parameters
alignRelative align in RelativeAlign.
RelativeAlign getAlign ( ) const

Get RelativeAlign parameter for LayoutParameter.

See also
RelativeAlign
Returns
A RelativeAlign variable.
var getAlign ( )

Get RelativeAlign parameter for LayoutParameter.

See also
RelativeAlign
Returns
A RelativeAlign variable.
local getAlign ( )

Get RelativeAlign parameter for LayoutParameter.

See also
RelativeAlign
Returns
A RelativeAlign variable.
void setRelativeToWidgetName ( const std::string &  name)

Set widget name your widget want to relative to.

Parameters
nameRelative widget name.
var setRelativeToWidgetName ( var  name)

Set widget name your widget want to relative to.

Parameters
nameRelative widget name.
local setRelativeToWidgetName ( local  name)

Set widget name your widget want to relative to.

Parameters
nameRelative widget name.
const std::string&
getRelativeToWidgetName
( ) const

Get the relative widget name.

Returns
name A relative widget name in string.
var getRelativeToWidgetName ( )

Get the relative widget name.

Returns
name A relative widget name in string.
local getRelativeToWidgetName ( )

Get the relative widget name.

Returns
name A relative widget name in string.
void setRelativeName ( const std::string &  name)

Set a name for LayoutParameter in Relative Layout.

Parameters
nameA string name.
var setRelativeName ( var  name)

Set a name for LayoutParameter in Relative Layout.

Parameters
nameA string name.
local setRelativeName ( local  name)

Set a name for LayoutParameter in Relative Layout.

Parameters
nameA string name.
const std::string& getRelativeName ( ) const

Get a name of LayoutParameter in Relative Layout.

Returns
name Relative name in string.
var getRelativeName ( )

Get a name of LayoutParameter in Relative Layout.

Returns
name Relative name in string.
local getRelativeName ( )

Get a name of LayoutParameter in Relative Layout.

Returns
name Relative name in string.
virtual LayoutParameter*
createCloneInstance
( )
overridevirtual

Create a cloned instance of LayoutParameter.

Returns
A LayoutParameter pointer.

Reimplemented from LayoutParameter.

var createCloneInstance ( )
overridevirtual

Create a cloned instance of LayoutParameter.

Returns
A LayoutParameter pointer.

Reimplemented from LayoutParameter.

local createCloneInstance ( )
overridevirtual

Create a cloned instance of LayoutParameter.

Returns
A LayoutParameter pointer.

Reimplemented from LayoutParameter.

virtual void copyProperties ( LayoutParameter model)
overridevirtual

Copy all the member field from argument LayoutParameter to self.

Parameters
modelA LayoutParameter instance.

Reimplemented from LayoutParameter.

var copyProperties ( var  model)
overridevirtual

Copy all the member field from argument LayoutParameter to self.

Parameters
modelA LayoutParameter instance.

Reimplemented from LayoutParameter.

local copyProperties ( local  model)
overridevirtual

Copy all the member field from argument LayoutParameter to self.

Parameters
modelA LayoutParameter instance.

Reimplemented from LayoutParameter.


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