|
Axmol 3.0.0-89d6d9a
|
Base class for various LayoutParameter. More...
#include <LayoutParameter.h>
Inherits Object.
Inherited by LinearLayoutParameter, and RelativeLayoutParameter.
Public Types | |
| enum class | Type |
| Layout parameter type. More... | |
Public Member Functions | |
| LayoutParameter () | |
| Default constructor. | |
| virtual | ~LayoutParameter () |
| Default destructor. | |
| void | setMargin (const Margin &margin) |
| Set margin parameter for LayoutParameter. | |
| const Margin & | getMargin () const |
| Gets margin parameter of LayoutParameter. | |
| Type | getLayoutType () const |
| Gets LayoutParameterType of LayoutParameter. | |
| LayoutParameter * | clone () |
| Create a copy of original LayoutParameter. | |
| virtual LayoutParameter * | createCloneInstance () |
| Create a cloned instance of LayoutParameter. | |
| virtual void | copyProperties (LayoutParameter *model) |
| Copy all the member field from argument LayoutParameter to self. | |
| Public Member Functions inherited from Object | |
| void | retain () |
| Retains the ownership. | |
| void | release () |
| Releases the ownership immediately. | |
| Object * | autorelease () |
| Releases the ownership sometime soon automatically. | |
| unsigned int | getReferenceCount () const |
| Returns the Object's current reference count. | |
| uint64_t | getObjectID () const noexcept |
| Returns the process-local diagnostic identifier assigned at construction. | |
| virtual | ~Object () |
| Destructor. | |
Static Public Member Functions | |
| static LayoutParameter * | create () |
| Create a empty LayoutParameter. | |
Base class for various LayoutParameter.
|
strong |
Layout parameter type.
There are mainly two types:
|
inline |
Default constructor.
@lua new
|
inlinevirtual |
Default destructor.
@lua NA
|
static |
Create a empty LayoutParameter.
| void setMargin | ( | const Margin & | margin | ) |
| const Margin & getMargin | ( | ) | const |
| Type getLayoutType | ( | ) | const |
Gets LayoutParameterType of LayoutParameter.
| LayoutParameter * clone | ( | ) |
Create a copy of original LayoutParameter.
|
virtual |
Create a cloned instance of LayoutParameter.
Reimplemented in LinearLayoutParameter, and RelativeLayoutParameter.
|
virtual |
Copy all the member field from argument LayoutParameter to self.
| model | A LayoutParameter instance. |
Reimplemented in LinearLayoutParameter, and RelativeLayoutParameter.