LayoutComponent () | |
默认构造函数 更多... | |
~LayoutComponent () | |
默认的析构函数 更多... | |
CREATE_FUNC (LayoutComponent) | |
用默认设置创建一个LayoutComponent实例。 | |
void | setUsingPercentContentSize (bool isUsed) |
根据父节点的内荽笮“窗俜直鹊髡诘愕哪谌荽笮 � 如果设置为true,则基于父节点来改变自身的大小, 更多... | |
bool | getUsingPercentContentSize () const |
查询是否开启了百分比控制内容大小。 更多... | |
void | setPercentContentSize (const Vec2 &percent) |
设置百分比大小。 值应该在0 - 1之间, 0意味着子节点的内容大小为0 1意味着子节点的内容大小和其父节点一样。 更多... | |
Vec2 | getPercentContentSize () const |
查询内容大小百分比值。 更多... | |
const Point & | getAnchorPosition () const |
查询锚点的位置。 更多... | |
void | setAnchorPosition (const Point &point) |
设置锚点的位置 更多... | |
const Point & | getPosition () const |
查询这个component所有者的位置。 更多... | |
void | setPosition (const Point &position) |
更改component所有者的位置 更多... | |
bool | isPositionPercentXEnabled () const |
是否启用percentX来计算位置。 更多... | |
void | setPositionPercentXEnabled (bool isUsed) |
percentX百分比定位开关。 更多... | |
float | getPositionPercentX () const |
查询x轴的百分比定位信息 更多... | |
void | setPositionPercentX (float percentMargin) |
改变x轴上的百分比定位值 更多... | |
bool | isPositionPercentYEnabled () const |
是否开启percentY,y轴的百分比定位 更多... | |
void | setPositionPercentYEnabled (bool isUsed) |
y轴百分比定位percentY启用开关 更多... | |
float | getPositionPercentY () const |
查询y轴的百分比定位值percentY 更多... | |
void | setPositionPercentY (float percentMargin) |
改变y轴的百分比定位信息percentY 更多... | |
HorizontalEdge | getHorizontalEdge () const |
查询元素水平对齐的类型。 更多... | |
void | setHorizontalEdge (HorizontalEdge hEage) |
更改元素的水平对齐类型 更多... | |
VerticalEdge | getVerticalEdge () const |
查询元素垂直定位类型。 更多... | |
void | setVerticalEdge (VerticalEdge vEage) |
改变元素的垂直定位类型。 更多... | |
float | getLeftMargin () const |
获取所有者的左边距 更多... | |
void | setLeftMargin (float margin) |
设置所有者的左边距 更多... | |
float | getRightMargin () const |
获取所有者的右边距 更多... | |
void | setRightMargin (float margin) |
设置所有者的右边距 更多... | |
float | getTopMargin () const |
获取所有者的上边距 更多... | |
void | setTopMargin (float margin) |
设置所有者的上边距 更多... | |
float | getBottomMargin () const |
获取所有者的下边距 更多... | |
void | setBottomMargin (float margin) |
设置所有者的下边距 更多... | |
const Size & | getSize () const |
获取所有者内容的尺寸 更多... | |
void | setSize (const Size &size) |
更改所有者的内容尺寸 更多... | |
bool | isPercentWidthEnabled () const |
查询是否启用了百分比控制宽度 更多... | |
void | setPercentWidthEnabled (bool isUsed) |
百分比控制宽度的开关 更多... | |
float | getSizeWidth () const |
查询所有者的内容宽度。 更多... | |
void | setSizeWidth (float width) |
设置所有者的内容宽度 更多... | |
float | getPercentWidth () const |
查询所有者的百分比宽度。 更多... | |
void | setPercentWidth (float percentWidth) |
设置所有者的百分比宽度 更多... | |
bool | isPercentHeightEnabled () const |
查询是否启用百分比控制高度 更多... | |
void | setPercentHeightEnabled (bool isUsed) |
百分比控制高度的开关 更多... | |
float | getSizeHeight () const |
查询所有者的高度大小 更多... | |
void | setSizeHeight (float height) |
改变所有者的高度 更多... | |
float | getPercentHeight () const |
获取所有者的百分比高度 更多... | |
void | setPercentHeight (float percentHeight) |
设置高度百分比 更多... | |
bool | isStretchWidthEnabled () const |
查询是否启用自动伸缩宽度。 更多... | |
void | setStretchWidthEnabled (bool isUsed) |
启用关闭自动伸缩宽度的开关 更多... | |
bool | isStretchHeightEnabled () const |
查询是否启用自动伸缩高度 更多... | |
void | setStretchHeightEnabled (bool isUsed) |
启用关闭自动伸缩高度的开关 更多... | |
void | setPercentOnlyEnabled (bool enable) |
仅仅使用百分比的开关 更多... | |
void | setActiveEnabled (bool enable) |
LayoutComponent所有者是否激活的开关 更多... | |
void | refreshLayout () |
刷新所有者的布局信息。 |
转载于:https://www.cnblogs.com/damowang/p/5306415.html