◆ Flags
枚举理由::标志 |
标记可以在构造函数中组合和使用的值。
int Justification::getOnlyVerticalFlags()const
仅返回此对象中处理垂直布局的标志。
int Justification::getOnlyHorizontalFlags()const
仅返回此对象中处理水平布局的标志。
void Justification::applyToRectangle(ValueType &x,ValueType &y,ValueTypew,ValueTypeh,ValueTypespaceX,ValueTypespaceY,ValueTypespaceW,ValueTypespaceH ) const
调整矩形的位置以使其适合空间。
矩形的 (x, y) 位置将更新,以根据对齐标志将其放置在给定的空间内。
由 appliedToRectangle() 引用
const Rectangle< ValueType > Justification::appliedToRectangle(const Rectangle< ValueType > &areaToAdjust,const Rectangle< ValueType > &targetSpace ) const
返回已对齐以适应给定空间的矩形的新位置。
引用 applyToRectangle()、x 和 y。