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

#include <UILayoutParameter.h>

Inheritance diagram for LayoutParameter:
CCObject CCCopying LinearLayoutParameter RelativeLayoutParameter

Public Member Functions

 LayoutParameter ()
virtual ~LayoutParameter ()
 Default destructor. More...
 
void setMargin (const Margin &margin)
 Sets Margin parameter for LayoutParameter. More...
 
const MargingetMargin () const
 Gets Margin parameter of LayoutParameter. More...
 
LayoutParameterType getLayoutType () const
 Gets LayoutParameterType of LayoutParameter. More...
 
LayoutParameterclone ()
virtual LayoutParametercreateCloneInstance ()
virtual void copyProperties (LayoutParameter *model)
- 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 LayoutParametercreate ()
 Allocates and initializes. More...
 

Protected Attributes

Margin _margin
LayoutParameterType _layoutParameterType
- 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

LayoutParameter ( )
inline
virtual ~LayoutParameter ( )
inlinevirtual

Default destructor.

Member Function Documentation

LayoutParameter* clone ( )
virtual void copyProperties ( LayoutParameter model)
virtual
static LayoutParameter* create ( )
static

Allocates and initializes.

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

Gets LayoutParameterType of LayoutParameter.

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

Gets Margin parameter of LayoutParameter.

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

Sets Margin parameter for LayoutParameter.

See Also
Margin
Parameters
margin

Member Data Documentation

LayoutParameterType
_layoutParameterType
protected
Margin _margin
protected

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