#include <UILayoutComponent.h>
When a node has a ReferencePositoin with value equals LEFT_BOTTOM, it will treat the left bottom corner of its parent as the origin(0,0) when positioning itself which is the same as cocos2d-x does.
But you can change it by assigning a different ReferencePosition. For example: If you use ReferencePosition with value equals RIGHT_TOP, then it will treat the right top corner of its parent as the origin(0,0) when positioning itself.
Enumerator |
---|
BOTTOM_LEFT |
|
TOP_LEFT |
|
BOTTOM_RIGHT |
|
TOP_RIGHT |
|
When a node has a ReferencePositoin with value equals LEFT_BOTTOM, it will treat the left bottom corner of its parent as the origin(0,0) when positioning itself which is the same as cocos2d-x does.
But you can change it by assigning a different ReferencePosition. For example: If you use ReferencePosition with value equals RIGHT_TOP, then it will treat the right top corner of its parent as the origin(0,0) when positioning itself.
Enumerator |
---|
BOTTOM_LEFT |
|
TOP_LEFT |
|
BOTTOM_RIGHT |
|
TOP_RIGHT |
|
When a node has a ReferencePositoin with value equals LEFT_BOTTOM, it will treat the left bottom corner of its parent as the origin(0,0) when positioning itself which is the same as cocos2d-x does.
But you can change it by assigning a different ReferencePosition. For example: If you use ReferencePosition with value equals RIGHT_TOP, then it will treat the right top corner of its parent as the origin(0,0) when positioning itself.
Enumerator |
---|
BOTTOM_LEFT |
|
TOP_LEFT |
|
BOTTOM_RIGHT |
|
TOP_RIGHT |
|
local CREATE_FUNC |
( |
local |
| ) |
|
Vec2 getOwnerContentSize |
( |
| ) |
const |
var getOwnerContentSize |
( |
| ) |
|
local getOwnerContentSize |
( |
| ) |
|
const Vec2& getOwnerPosition |
( |
| ) |
const |
local getOwnerPosition |
( |
| ) |
|
const Vec2& getPercentContentSize |
( |
| ) |
const |
var getPercentContentSize |
( |
| ) |
|
local getPercentContentSize |
( |
| ) |
|
const Vec2& getPercentPosition |
( |
| ) |
|
var getPercentPosition |
( |
| ) |
|
local getPercentPosition |
( |
| ) |
|
var getReferencePoint |
( |
| ) |
|
local getReferencePoint |
( |
| ) |
|
const Vec2& getRelativePosition |
( |
| ) |
|
var getRelativePosition |
( |
| ) |
|
local getRelativePosition |
( |
| ) |
|
bool isUsingPercentContentSize |
( |
| ) |
|
var isUsingPercentContentSize |
( |
| ) |
|
local isUsingPercentContentSize |
( |
| ) |
|
bool isUsingPercentPosition |
( |
| ) |
|
void setActiveEnable |
( |
bool |
enable | ) |
|
var setActiveEnable |
( |
var |
enable | ) |
|
local setActiveEnable |
( |
local |
enable | ) |
|
void setOwnerContentSize |
( |
const Vec2 & |
size | ) |
|
var setOwnerContentSize |
( |
var |
size | ) |
|
local setOwnerContentSize |
( |
local |
size | ) |
|
void setOwnerPosition |
( |
const Vec2 & |
point | ) |
|
var setOwnerPosition |
( |
var |
point | ) |
|
local setOwnerPosition |
( |
local |
point | ) |
|
void setPercentContentSize |
( |
const Vec2 & |
percent | ) |
|
var setPercentContentSize |
( |
var |
percent | ) |
|
local setPercentContentSize |
( |
local |
percent | ) |
|
void setPercentPosition |
( |
const Vec2 & |
percent | ) |
|
var setPercentPosition |
( |
var |
percent | ) |
|
local setPercentPosition |
( |
local |
percent | ) |
|
var setReferencePoint |
( |
var |
point | ) |
|
local setReferencePoint |
( |
local |
point | ) |
|
void setRelativePosition |
( |
const Vec2 & |
position | ) |
|
var setRelativePosition |
( |
var |
position | ) |
|
local setRelativePosition |
( |
local |
position | ) |
|
void setUsingPercentContentSize |
( |
bool |
flag | ) |
|
var setUsingPercentContentSize |
( |
var |
flag | ) |
|
local setUsingPercentContentSize |
( |
local |
flag | ) |
|
void setUsingPercentPosition |
( |
bool |
flag | ) |
|
var setUsingPercentPosition |
( |
var |
flag | ) |
|
local setUsingPercentPosition |
( |
local |
flag | ) |
|
The documentation for this class was generated from the following file: