#include <UILayoutComponent.h>
Public Types | |
enum | HorizontalEdge { None, Left, Right, Center } |
enum | VerticalEdge { None, Bottom, Top, Center } |
Public Member Functions | |
LayoutComponent () | |
LayoutComponent () | |
LayoutComponent () | |
~LayoutComponent () | |
~LayoutComponent () | |
virtual bool | init () override |
local | init () |
CREATE_FUNC (LayoutComponent) | |
CREATE_FUNC ( local LayoutComponent) | |
void | setUsingPercentContentSize (bool isUsed) |
var | setUsingPercentContentSize ( var isUsed) |
local | setUsingPercentContentSize ( local isUsed) |
bool | getUsingPercentContentSize () const |
local | getUsingPercentContentSize () |
void | setPercentContentSize (const Vec2 &percent) |
local | setPercentContentSize ( local percent) |
Vec2 | getPercentContentSize () const |
local | getPercentContentSize () |
const Point & | getAnchorPosition () const |
void | setAnchorPosition (const Point &point) |
local | setAnchorPosition ( local point) |
const Point & | getPosition () const |
var | getPosition () |
local | getPosition () |
void | setPosition (const Point &position) |
var | setPosition ( var position) |
local | setPosition ( local position) |
bool | isPositionPercentXEnabled () const |
var | isPositionPercentXEnabled () |
local | isPositionPercentXEnabled () |
void | setPositionPercentXEnabled (bool isUsed) |
local | setPositionPercentXEnabled ( local isUsed) |
float | getPositionPercentX () const |
local | getPositionPercentX () |
void | setPositionPercentX (float percentMargin) |
local | setPositionPercentX ( local percentMargin) |
bool | isPositionPercentYEnabled () const |
local | isPositionPercentYEnabled () |
void | setPositionPercentYEnabled (bool isUsed) |
local | setPositionPercentYEnabled ( local isUsed) |
float | getPositionPercentY () const |
void | setPositionPercentY (float percentMargin) |
local | setPositionPercentY ( local percentMargin) |
HorizontalEdge | getHorizontalEdge () const |
local | getHorizontalEdge () |
void | setHorizontalEdge (HorizontalEdge hEage) |
local | setHorizontalEdge ( local hEage) |
VerticalEdge | getVerticalEdge () const |
var | getVerticalEdge () |
local | getVerticalEdge () |
void | setVerticalEdge (VerticalEdge vEage) |
var | setVerticalEdge ( var vEage) |
local | setVerticalEdge ( local vEage) |
float | getLeftMargin () const |
var | getLeftMargin () |
local | getLeftMargin () |
void | setLeftMargin (float margin) |
local | setLeftMargin ( local margin) |
float | getRightMargin () const |
local | getRightMargin () |
void | setRightMargin (float margin) |
local | setRightMargin ( local margin) |
float | getTopMargin () const |
local | getTopMargin () |
void | setTopMargin (float margin) |
local | setTopMargin ( local margin) |
float | getBottomMargin () const |
local | getBottomMargin () |
void | setBottomMargin (float margin) |
local | setBottomMargin ( local margin) |
const Size & | getSize () const |
local | getSize () |
void | setSize (const Size &size) |
local | setSize ( local size) |
bool | isPercentWidthEnabled () const |
var | isPercentWidthEnabled () |
local | isPercentWidthEnabled () |
void | setPercentWidthEnabled (bool isUsed) |
local | setPercentWidthEnabled ( local isUsed) |
float | getSizeWidth () const |
local | getSizeWidth () |
void | setSizeWidth (float width) |
local | setSizeWidth ( local width) |
float | getPercentWidth () const |
void | setPercentWidth (float percentWidth) |
local | setPercentWidth ( local percentWidth) |
bool | isPercentHeightEnabled () const |
var | isPercentHeightEnabled () |
local | isPercentHeightEnabled () |
void | setPercentHeightEnabled (bool isUsed) |
local | setPercentHeightEnabled ( local isUsed) |
float | getSizeHeight () const |
local | getSizeHeight () |
void | setSizeHeight (float height) |
local | setSizeHeight ( local height) |
float | getPercentHeight () const |
void | setPercentHeight (float percentHeight) |
local | setPercentHeight ( local percentHeight) |
bool | isStretchWidthEnabled () const |
local | isStretchWidthEnabled () |
void | setStretchWidthEnabled (bool isUsed) |
local | setStretchWidthEnabled ( local isUsed) |
bool | isStretchHeightEnabled () const |
local | isStretchHeightEnabled () |
void | setStretchHeightEnabled (bool isUsed) |
local | setStretchHeightEnabled ( local isUsed) |
void | setPercentOnlyEnabled (bool enable) |
local | setPercentOnlyEnabled ( local enable) |
void | setActiveEnabled (bool enable) |
local | setActiveEnabled ( local enable) |
void | refreshLayout () |
local | refreshLayout () |
Public Member Functions inherited from Component | |
virtual | ~Component (void) |
virtual void | onEnter () |
var | onEnter () |
local | onEnter () |
virtual void | onExit () |
var | onExit () |
local | onExit () |
virtual void | update (float delta) |
local | update ( local delta) |
virtual bool | serialize (void *r) |
var | serialize ( var r) |
local | serialize ( local r) |
virtual bool | isEnabled () const |
var | isEnabled () |
local | isEnabled () |
virtual void | setEnabled (bool b) |
local | setEnabled ( local b) |
const std::string & | getName () const |
void | setName (const std::string &name) |
local | setName ( local name) |
void | setOwner (Node *pOwner) |
var | setOwner ( var pOwner) |
local | setOwner ( local pOwner) |
Node * | getOwner () const |
var | getOwner () |
local | getOwner () |
Public Member Functions inherited from Ref | |
void | retain () |
Retains the ownership. More... | |
void | release () |
Releases the ownership immediately. More... | |
Ref * | autorelease () |
Releases the ownership sometime soon automatically. More... | |
unsigned int | getReferenceCount () const |
Returns the Ref's current reference count. More... | |
virtual | ~Ref () |
Static Public Member Functions | |
static LayoutComponent * | bindLayoutComponent (Node *node) |
var | bindLayoutComponent ( var node) |
local | bindLayoutComponent ( local node) |
Static Public Member Functions inherited from Component | |
static Component * | create (void) |
local | create () |
Protected Member Functions | |
Node * | getOwnerParent () |
var | getOwnerParent () |
local | getOwnerParent () |
void | refreshHorizontalMargin () |
local | refreshHorizontalMargin () |
void | refreshVerticalMargin () |
var | refreshVerticalMargin () |
local | refreshVerticalMargin () |
Protected Member Functions inherited from Ref | |
Ref () | |
Constructor. More... | |
Ref () | |
Constructor. More... | |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
LayoutComponent | ( | ) |
var LayoutComponent | ( | ) |
local LayoutComponent | ( | ) |
~LayoutComponent | ( | ) |
var ~LayoutComponent | ( | ) |
local ~LayoutComponent | ( | ) |
|
static |
|
static |
|
static |
CREATE_FUNC | ( | LayoutComponent | ) |
var CREATE_FUNC | ( | var | ) |
local CREATE_FUNC | ( | local | ) |
const Point& getAnchorPosition | ( | ) | const |
var getAnchorPosition | ( | ) |
local getAnchorPosition | ( | ) |
float getBottomMargin | ( | ) | const |
var getBottomMargin | ( | ) |
local getBottomMargin | ( | ) |
HorizontalEdge getHorizontalEdge | ( | ) | const |
var getHorizontalEdge | ( | ) |
local getHorizontalEdge | ( | ) |
float getLeftMargin | ( | ) | const |
var getLeftMargin | ( | ) |
local getLeftMargin | ( | ) |
|
protected |
|
protected |
|
protected |
Vec2 getPercentContentSize | ( | ) | const |
var getPercentContentSize | ( | ) |
local getPercentContentSize | ( | ) |
float getPercentHeight | ( | ) | const |
var getPercentHeight | ( | ) |
local getPercentHeight | ( | ) |
float getPercentWidth | ( | ) | const |
var getPercentWidth | ( | ) |
local getPercentWidth | ( | ) |
const Point& getPosition | ( | ) | const |
var getPosition | ( | ) |
local getPosition | ( | ) |
float getPositionPercentX | ( | ) | const |
var getPositionPercentX | ( | ) |
local getPositionPercentX | ( | ) |
float getPositionPercentY | ( | ) | const |
var getPositionPercentY | ( | ) |
local getPositionPercentY | ( | ) |
float getRightMargin | ( | ) | const |
var getRightMargin | ( | ) |
local getRightMargin | ( | ) |
const Size& getSize | ( | ) | const |
var getSize | ( | ) |
local getSize | ( | ) |
float getSizeHeight | ( | ) | const |
var getSizeHeight | ( | ) |
local getSizeHeight | ( | ) |
float getSizeWidth | ( | ) | const |
var getSizeWidth | ( | ) |
local getSizeWidth | ( | ) |
float getTopMargin | ( | ) | const |
var getTopMargin | ( | ) |
local getTopMargin | ( | ) |
bool getUsingPercentContentSize | ( | ) | const |
var getUsingPercentContentSize | ( | ) |
local getUsingPercentContentSize | ( | ) |
VerticalEdge getVerticalEdge | ( | ) | const |
var getVerticalEdge | ( | ) |
local getVerticalEdge | ( | ) |
|
overridevirtual |
Reimplemented from Component.
|
overridevirtual |
Reimplemented from Component.
|
overridevirtual |
Reimplemented from Component.
bool isPercentHeightEnabled | ( | ) | const |
var isPercentHeightEnabled | ( | ) |
local isPercentHeightEnabled | ( | ) |
bool isPercentWidthEnabled | ( | ) | const |
var isPercentWidthEnabled | ( | ) |
local isPercentWidthEnabled | ( | ) |
bool isPositionPercentXEnabled | ( | ) | const |
var isPositionPercentXEnabled | ( | ) |
local isPositionPercentXEnabled | ( | ) |
bool isPositionPercentYEnabled | ( | ) | const |
var isPositionPercentYEnabled | ( | ) |
local isPositionPercentYEnabled | ( | ) |
bool isStretchHeightEnabled | ( | ) | const |
var isStretchHeightEnabled | ( | ) |
local isStretchHeightEnabled | ( | ) |
bool isStretchWidthEnabled | ( | ) | const |
var isStretchWidthEnabled | ( | ) |
local isStretchWidthEnabled | ( | ) |
|
protected |
|
protected |
|
protected |
void refreshLayout | ( | ) |
var refreshLayout | ( | ) |
local refreshLayout | ( | ) |
|
protected |
|
protected |
|
protected |
void setActiveEnabled | ( | bool | enable | ) |
var setActiveEnabled | ( | var | enable | ) |
local setActiveEnabled | ( | local | enable | ) |
void setAnchorPosition | ( | const Point & | point | ) |
var setAnchorPosition | ( | var | point | ) |
local setAnchorPosition | ( | local | point | ) |
void setBottomMargin | ( | float | margin | ) |
var setBottomMargin | ( | var | margin | ) |
local setBottomMargin | ( | local | margin | ) |
void setHorizontalEdge | ( | HorizontalEdge | hEage | ) |
var setHorizontalEdge | ( | var | hEage | ) |
local setHorizontalEdge | ( | local | hEage | ) |
void setLeftMargin | ( | float | margin | ) |
var setLeftMargin | ( | var | margin | ) |
local setLeftMargin | ( | local | margin | ) |
void setPercentContentSize | ( | const Vec2 & | percent | ) |
var setPercentContentSize | ( | var | percent | ) |
local setPercentContentSize | ( | local | percent | ) |
void setPercentHeight | ( | float | percentHeight | ) |
var setPercentHeight | ( | var | percentHeight | ) |
local setPercentHeight | ( | local | percentHeight | ) |
void setPercentHeightEnabled | ( | bool | isUsed | ) |
var setPercentHeightEnabled | ( | var | isUsed | ) |
local setPercentHeightEnabled | ( | local | isUsed | ) |
void setPercentOnlyEnabled | ( | bool | enable | ) |
var setPercentOnlyEnabled | ( | var | enable | ) |
local setPercentOnlyEnabled | ( | local | enable | ) |
void setPercentWidth | ( | float | percentWidth | ) |
var setPercentWidth | ( | var | percentWidth | ) |
local setPercentWidth | ( | local | percentWidth | ) |
void setPercentWidthEnabled | ( | bool | isUsed | ) |
var setPercentWidthEnabled | ( | var | isUsed | ) |
local setPercentWidthEnabled | ( | local | isUsed | ) |
void setPosition | ( | const Point & | position | ) |
var setPosition | ( | var | position | ) |
local setPosition | ( | local | position | ) |
void setPositionPercentX | ( | float | percentMargin | ) |
var setPositionPercentX | ( | var | percentMargin | ) |
local setPositionPercentX | ( | local | percentMargin | ) |
void setPositionPercentXEnabled | ( | bool | isUsed | ) |
var setPositionPercentXEnabled | ( | var | isUsed | ) |
local setPositionPercentXEnabled | ( | local | isUsed | ) |
void setPositionPercentY | ( | float | percentMargin | ) |
var setPositionPercentY | ( | var | percentMargin | ) |
local setPositionPercentY | ( | local | percentMargin | ) |
void setPositionPercentYEnabled | ( | bool | isUsed | ) |
var setPositionPercentYEnabled | ( | var | isUsed | ) |
local setPositionPercentYEnabled | ( | local | isUsed | ) |
void setRightMargin | ( | float | margin | ) |
var setRightMargin | ( | var | margin | ) |
local setRightMargin | ( | local | margin | ) |
void setSize | ( | const Size & | size | ) |
var setSize | ( | var | size | ) |
local setSize | ( | local | size | ) |
void setSizeHeight | ( | float | height | ) |
var setSizeHeight | ( | var | height | ) |
local setSizeHeight | ( | local | height | ) |
void setSizeWidth | ( | float | width | ) |
var setSizeWidth | ( | var | width | ) |
local setSizeWidth | ( | local | width | ) |
void setStretchHeightEnabled | ( | bool | isUsed | ) |
var setStretchHeightEnabled | ( | var | isUsed | ) |
local setStretchHeightEnabled | ( | local | isUsed | ) |
void setStretchWidthEnabled | ( | bool | isUsed | ) |
var setStretchWidthEnabled | ( | var | isUsed | ) |
local setStretchWidthEnabled | ( | local | isUsed | ) |
void setTopMargin | ( | float | margin | ) |
var setTopMargin | ( | var | margin | ) |
local setTopMargin | ( | local | margin | ) |
void setUsingPercentContentSize | ( | bool | isUsed | ) |
var setUsingPercentContentSize | ( | var | isUsed | ) |
local setUsingPercentContentSize | ( | local | isUsed | ) |
void setVerticalEdge | ( | VerticalEdge | vEage | ) |
var setVerticalEdge | ( | var | vEage | ) |
local setVerticalEdge | ( | local | vEage | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |