布局基类 更多...
#include <Layout.h>
类 GFt::Layout 继承关系图:Public 成员函数 | |
| Layout ()=default | |
| virtual | ~Layout ()=default |
| int | getBottomPadding () const |
| 获取下边距 | |
| int | getLeftPadding () const |
| 获取左边距 | |
| int | getRightPadding () const |
| 获取右边距 | |
| int | getTopPadding () const |
| 获取上边距 | |
| void | setBottomPadding (int bottom) |
| 设置下边距 | |
| void | setLeftPadding (int left) |
| 设置左边距 | |
| void | setPadding (int left, int top, int right, int bottom) |
| 设置边距 | |
| void | setPadding (int leftright, int topbottom) |
| 设置边距 | |
| void | setPadding (int padding) |
| 设置边距 | |
| void | setRightPadding (int right) |
| 设置右边距 | |
| void | setShouldUpdateLayout (bool shouldUpdateLayout=true) |
| 标记是否需要更新布局 | |
| void | setTopPadding (int top) |
| 设置上边距 | |
| bool | shouldUpdateLayout () const |
| 检查是否需要更新布局 | |
静态 Public 属性 | |
| static constexpr float | Fixed = -1.f |
| 固定宽度占位值 | |
布局基类
|
default |
|
virtualdefault |
| int GFt::Layout::getBottomPadding | ( | ) | const |
获取下边距
| int GFt::Layout::getLeftPadding | ( | ) | const |
获取左边距
| int GFt::Layout::getRightPadding | ( | ) | const |
获取右边距
| int GFt::Layout::getTopPadding | ( | ) | const |
获取上边距
| void GFt::Layout::setBottomPadding | ( | int | bottom | ) |
设置下边距
| void GFt::Layout::setLeftPadding | ( | int | left | ) |
设置左边距
| void GFt::Layout::setPadding | ( | int | left, |
| int | top, | ||
| int | right, | ||
| int | bottom ) |
设置边距
| left | 左边距 |
| top | 上边距 |
| right | 右边距 |
| bottom | 下边距 |
| void GFt::Layout::setPadding | ( | int | leftright, |
| int | topbottom ) |
设置边距
| leftright | 左右边距 |
| topbottom | 上下边距 |
| void GFt::Layout::setPadding | ( | int | padding | ) |
设置边距
| padding | 统一设置边距 |
| void GFt::Layout::setRightPadding | ( | int | right | ) |
设置右边距
| void GFt::Layout::setShouldUpdateLayout | ( | bool | shouldUpdateLayout = true | ) |
标记是否需要更新布局
| void GFt::Layout::setTopPadding | ( | int | top | ) |
设置上边距
| bool GFt::Layout::shouldUpdateLayout | ( | ) | const |
检查是否需要更新布局
|
inlinestaticconstexpr |
固定宽度占位值