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

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 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 LinearLayoutParametercreate ()
 Create a empty LinearLayoutParameter instance. More...
 
local create ()
 Create a empty LinearLayoutParameter 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

Linear layout parameter.

It is used by linear layout manager for arranging elements linearly.

Member Function Documentation

static LinearLayoutParameter*
create
( )
static

Create a empty LinearLayoutParameter instance.

A initialized LayoutParameter which is marked as "autorelease".

var create ( )
static

Create a empty LinearLayoutParameter instance.

A initialized LayoutParameter which is marked as "autorelease".

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

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: