|
| LayoutComponent () |
| Default constructor. More...
|
|
| LayoutComponent () |
| Default constructor. More...
|
|
| LayoutComponent () |
| Default constructor. More...
|
|
| ~LayoutComponent () |
| Default destructor. More...
|
|
| ~LayoutComponent () |
| Default destructor. More...
|
|
virtual bool | init () override |
local | init () |
| CREATE_FUNC (LayoutComponent) |
| Create a LayoutComponent instance with default settings. More...
|
|
| CREATE_FUNC ( var LayoutComponent) |
| Create a LayoutComponent instance with default settings. More...
|
|
| CREATE_FUNC ( local LayoutComponent) |
| Create a LayoutComponent instance with default settings. More...
|
|
void | setUsingPercentContentSize (bool isUsed) |
| Percent content size is used to adapt node's content size based on parent's content size. More...
|
|
bool | getUsingPercentContentSize () const |
| Query whether use percent content size or not. More...
|
|
local | getUsingPercentContentSize () |
| Query whether use percent content size or not. More...
|
|
void | setPercentContentSize (const Vec2 &percent) |
| Set percent content size. More...
|
|
local | setPercentContentSize ( local percent) |
| Set percent content size. More...
|
|
Vec2 | getPercentContentSize () const |
| Query the percent content size value. More...
|
|
var | getPercentContentSize () |
| Query the percent content size value. More...
|
|
local | getPercentContentSize () |
| Query the percent content size value. More...
|
|
const Point & | getAnchorPosition () const |
| Query the anchor position. More...
|
|
local | getAnchorPosition () |
| Query the anchor position. More...
|
|
void | setAnchorPosition (const Point &point) |
| Change the anchor position to it's parent. More...
|
|
var | setAnchorPosition ( var point) |
| Change the anchor position to it's parent. More...
|
|
local | setAnchorPosition ( local point) |
| Change the anchor position to it's parent. More...
|
|
const Point & | getPosition () const |
| Query the owner's position. More...
|
|
local | getPosition () |
| Query the owner's position. More...
|
|
void | setPosition (const Point &position) |
| Change the position of component owner. More...
|
|
var | setPosition ( var position) |
| Change the position of component owner. More...
|
|
local | setPosition ( local position) |
| Change the position of component owner. More...
|
|
bool | isPositionPercentXEnabled () const |
| Whether position percentX is enabled or not. More...
|
|
local | isPositionPercentXEnabled () |
| Whether position percentX is enabled or not. More...
|
|
void | setPositionPercentXEnabled (bool isUsed) |
| Toggle position percentX enabled. More...
|
|
float | getPositionPercentX () const |
| Query the position percent X value. More...
|
|
void | setPositionPercentX (float percentMargin) |
| Change position percent X value. More...
|
|
var | setPositionPercentX ( var percentMargin) |
| Change position percent X value. More...
|
|
local | setPositionPercentX ( local percentMargin) |
| Change position percent X value. More...
|
|
bool | isPositionPercentYEnabled () const |
| Whether position percentY is enabled or not. More...
|
|
void | setPositionPercentYEnabled (bool isUsed) |
| Toggle position percentY enabled. More...
|
|
float | getPositionPercentY () const |
| Query the position percentY Y value. More...
|
|
void | setPositionPercentY (float percentMargin) |
| Change position percentY value. More...
|
|
local | setPositionPercentY ( local percentMargin) |
| Change position percentY value. More...
|
|
HorizontalEdge | getHorizontalEdge () const |
| Query element horizontal dock type. More...
|
|
local | getHorizontalEdge () |
| Query element horizontal dock type. More...
|
|
void | setHorizontalEdge (HorizontalEdge hEage) |
| Change element's horizontal dock type. More...
|
|
var | setHorizontalEdge ( var hEage) |
| Change element's horizontal dock type. More...
|
|
local | setHorizontalEdge ( local hEage) |
| Change element's horizontal dock type. More...
|
|
VerticalEdge | getVerticalEdge () const |
| Query element vertical dock type. More...
|
|
var | getVerticalEdge () |
| Query element vertical dock type. More...
|
|
local | getVerticalEdge () |
| Query element vertical dock type. More...
|
|
void | setVerticalEdge (VerticalEdge vEage) |
| Change element's vertical dock type. More...
|
|
var | setVerticalEdge ( var vEage) |
| Change element's vertical dock type. More...
|
|
local | setVerticalEdge ( local vEage) |
| Change element's vertical dock type. More...
|
|
float | getLeftMargin () const |
| Query left margin of owner relative to its parent. More...
|
|
var | getLeftMargin () |
| Query left margin of owner relative to its parent. More...
|
|
local | getLeftMargin () |
| Query left margin of owner relative to its parent. More...
|
|
void | setLeftMargin (float margin) |
| Change left margin of owner relative to its parent. More...
|
|
local | setLeftMargin ( local margin) |
| Change left margin of owner relative to its parent. More...
|
|
float | getRightMargin () const |
| Query the right margin of owner relative to its parent. More...
|
|
local | getRightMargin () |
| Query the right margin of owner relative to its parent. More...
|
|
void | setRightMargin (float margin) |
| Change right margin of owner relative to its parent. More...
|
|
local | setRightMargin ( local margin) |
| Change right margin of owner relative to its parent. More...
|
|
float | getTopMargin () const |
| Query the top margin of owner relative to its parent. More...
|
|
local | getTopMargin () |
| Query the top margin of owner relative to its parent. More...
|
|
void | setTopMargin (float margin) |
| Change the top margin of owner relative to its parent. More...
|
|
local | setTopMargin ( local margin) |
| Change the top margin of owner relative to its parent. More...
|
|
float | getBottomMargin () const |
| Query the bottom margin of owner relative to its parent. More...
|
|
local | getBottomMargin () |
| Query the bottom margin of owner relative to its parent. More...
|
|
void | setBottomMargin (float margin) |
| Change the bottom margin of owner relative to its parent. More...
|
|
local | setBottomMargin ( local margin) |
| Change the bottom margin of owner relative to its parent. More...
|
|
const Size & | getSize () const |
| Query owner's content size. More...
|
|
local | getSize () |
| Query owner's content size. More...
|
|
void | setSize (const Size &size) |
| Change the content size of owner. More...
|
|
var | setSize ( var size) |
| Change the content size of owner. More...
|
|
local | setSize ( local size) |
| Change the content size of owner. More...
|
|
bool | isPercentWidthEnabled () const |
| Query whether percent width is enabled or not. More...
|
|
local | isPercentWidthEnabled () |
| Query whether percent width is enabled or not. More...
|
|
void | setPercentWidthEnabled (bool isUsed) |
| Toggle enable percent width. More...
|
|
float | getSizeWidth () const |
| Query content size width of owner. More...
|
|
void | setSizeWidth (float width) |
| Change content size width of owner. More...
|
|
var | setSizeWidth ( var width) |
| Change content size width of owner. More...
|
|
local | setSizeWidth ( local width) |
| Change content size width of owner. More...
|
|
float | getPercentWidth () const |
| Query percent width of owner. More...
|
|
void | setPercentWidth (float percentWidth) |
| Change percent width of owner. More...
|
|
var | setPercentWidth ( var percentWidth) |
| Change percent width of owner. More...
|
|
local | setPercentWidth ( local percentWidth) |
| Change percent width of owner. More...
|
|
bool | isPercentHeightEnabled () const |
| Query whehter percent height is enabled or not. More...
|
|
local | isPercentHeightEnabled () |
| Query whehter percent height is enabled or not. More...
|
|
void | setPercentHeightEnabled (bool isUsed) |
| Toggle enable percent height. More...
|
|
float | getSizeHeight () const |
| Query size height of owner. More...
|
|
void | setSizeHeight (float height) |
| Change size height of owner. More...
|
|
var | setSizeHeight ( var height) |
| Change size height of owner. More...
|
|
local | setSizeHeight ( local height) |
| Change size height of owner. More...
|
|
float | getPercentHeight () const |
| Query percent hieght of owner. More...
|
|
local | getPercentHeight () |
| Query percent hieght of owner. More...
|
|
void | setPercentHeight (float percentHeight) |
| Change percent height value of owner. More...
|
|
local | setPercentHeight ( local percentHeight) |
| Change percent height value of owner. More...
|
|
bool | isStretchWidthEnabled () const |
| Query whether stretch width is enabled or not. More...
|
|
local | isStretchWidthEnabled () |
| Query whether stretch width is enabled or not. More...
|
|
void | setStretchWidthEnabled (bool isUsed) |
| Toggle enable stretch width. More...
|
|
local | setStretchWidthEnabled ( local isUsed) |
| Toggle enable stretch width. More...
|
|
bool | isStretchHeightEnabled () const |
| Query whether stretch height is enabled or not. More...
|
|
local | isStretchHeightEnabled () |
| Query whether stretch height is enabled or not. More...
|
|
void | setStretchHeightEnabled (bool isUsed) |
| Toggle enable stretch height. More...
|
|
void | setPercentOnlyEnabled (bool enable) |
| Toggle enable percent only. More...
|
|
void | setActiveEnabled (bool enable) |
| Toggle active enabled of LayoutComponent's owner. More...
|
|
local | setActiveEnabled ( local enable) |
| Toggle active enabled of LayoutComponent's owner. More...
|
|
void | refreshLayout () |
| Refresh layout of the owner. More...
|
|
var | refreshLayout () |
| Refresh layout of the owner. More...
|
|
local | refreshLayout () |
| Refresh layout of the owner. More...
|
|