cocos2d-x  2.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
UILayoutParameter Class Reference

#include <UILayoutParameter.h>

Inheritance diagram for UILayoutParameter:
CCObject CCCopying UILinearLayoutParameter UIRelativeLayoutParameter

Public Member Functions

 UILayoutParameter ()
 ctor ()
virtual ~UILayoutParameter ()
 Default destructor. More...
 
void setMargin (const UIMargin &margin)
 Sets Margin parameter for LayoutParameter. More...
 
const UIMargingetMargin () const
 Gets Margin parameter of LayoutParameter. More...
 
LayoutParameterType getLayoutType () const
 Gets LayoutParameterType of LayoutParameter. More...
 
var getLayoutType ()
 Gets LayoutParameterType of LayoutParameter. More...
 
- Public Member Functions inherited from CCObject
 CCObject (void)
virtual ~CCObject (void)
void release (void)
void retain (void)
CCObjectautorelease (void)
CCObjectcopy (void)
bool isSingleReference (void) const
unsigned int retainCount (void) const
virtual bool isEqual (const CCObject *pObject)
virtual void acceptVisitor (CCDataVisitor &visitor)
virtual void update (float dt)
- Public Member Functions inherited from CCCopying
virtual CCObjectcopyWithZone (CCZone *pZone)

Static Public Member Functions

static UILayoutParametercreate ()
 Allocates and initializes. More...
 

Protected Attributes

UIMargin m_margin
LayoutParameterType m_eLayoutParameterType
var m_eLayoutParameterType
- Protected Attributes inherited from CCObject
unsigned int m_uReference
unsigned int m_uAutoReleaseCount

Additional Inherited Members

- Public Attributes inherited from CCObject
unsigned int m_uID
int m_nLuaID

Constructor & Destructor Documentation

UILayoutParameter ( )
inline
var ctor ( )
inline
virtual ~UILayoutParameter ( )
inlinevirtual

Default destructor.

var ~UILayoutParameter ( )
inlinevirtual

Default destructor.

Member Function Documentation

static UILayoutParameter* create ( )
static

Allocates and initializes.

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

Allocates and initializes.

Returns
A initialized LayoutParameter which is marked as "autorelease".
LayoutParameterType getLayoutType ( ) const

Gets LayoutParameterType of LayoutParameter.

See Also
LayoutParameterType
Returns
LayoutParameterType
var getLayoutType ( )

Gets LayoutParameterType of LayoutParameter.

See Also
LayoutParameterType
Returns
LayoutParameterType
const UIMargin& getMargin ( ) const

Gets Margin parameter of LayoutParameter.

See Also
UIMargin
Returns
const UIMargin&
void setMargin ( const UIMargin margin)

Sets Margin parameter for LayoutParameter.

See Also
UIMargin
Parameters
margin

Member Data Documentation

LayoutParameterType
m_eLayoutParameterType
protected
var m_eLayoutParameterType
protected
UIMargin m_margin
protected
var m_margin
protected

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