载入中...
搜索中...
未找到
eve::ui::FlexItemSpec结构体 参考

FlexItemSpec public API. 更多...

#include <Layout.h>

Public 属性

float basisMain = 0.f
 
float basisCross = 0.f
 
float marginBefore = 0.f
 
float marginAfter = 0.f
 
float marginCrossBefore = 0.f
 
float marginCrossAfter = 0.f
 
float flexGrow = 0.f
 
float flexShrink = 1.f
 
float flexBasis = -1.f
 
float aspectRatio = 0.f
 
bool isSpacer = false
 
bool absolute = false
 
float anchorMain = 0.f
 
float anchorCross = 0.f
 
float posMain = 0.f
 
float posCross = 0.f
 
float percentMain = 0.f
 
float percentCross = 0.f
 
float minMain = 0.f
 
float maxMain = 0.f
 
float minCross = 0.f
 
float maxCross = 0.f
 
float explicitMain = 0.f
 
float explicitCross = 0.f
 
int alignSelf = -1
 

详细描述

FlexItemSpec public API.

Two-phase retained layout: measure — measureTree() computes real desired sizes (recursive, includes nested containers, text metrics, margins/padding/min/max); arrange — flexArrange() is a pure function that distributes flex items into rects given measured sizes + layout props.

Rendering consumes the arranged rects instead of guessing sizes from the ImGui cursor, which fixes nested elastic layouts and enables anchors, percentage sizing, margins and absolute placement. One flex item as seen by the arrange pass (already measured).

在文件 Layout.h 第 25 行定义.

类成员变量说明

◆ absolute

bool eve::ui::FlexItemSpec::absolute = false

在文件 Layout.h 第 37 行定义.

◆ alignSelf

int eve::ui::FlexItemSpec::alignSelf = -1

-1 = inherit container align; otherwise FlexAlign value (int).

在文件 Layout.h 第 51 行定义.

◆ anchorCross

float eve::ui::FlexItemSpec::anchorCross = 0.f

在文件 Layout.h 第 39 行定义.

被这些函数引用 eve::ui::flexArrangeSingleLine().

◆ anchorMain

float eve::ui::FlexItemSpec::anchorMain = 0.f

在文件 Layout.h 第 38 行定义.

被这些函数引用 eve::ui::flexArrangeSingleLine().

◆ aspectRatio

float eve::ui::FlexItemSpec::aspectRatio = 0.f

在文件 Layout.h 第 35 行定义.

◆ basisCross

float eve::ui::FlexItemSpec::basisCross = 0.f

在文件 Layout.h 第 27 行定义.

◆ basisMain

float eve::ui::FlexItemSpec::basisMain = 0.f

在文件 Layout.h 第 26 行定义.

◆ explicitCross

float eve::ui::FlexItemSpec::explicitCross = 0.f

在文件 Layout.h 第 49 行定义.

◆ explicitMain

float eve::ui::FlexItemSpec::explicitMain = 0.f

在文件 Layout.h 第 48 行定义.

被这些函数引用 eve::ui::flexArrangeSingleLine().

◆ flexBasis

float eve::ui::FlexItemSpec::flexBasis = -1.f

在文件 Layout.h 第 34 行定义.

◆ flexGrow

float eve::ui::FlexItemSpec::flexGrow = 0.f

在文件 Layout.h 第 32 行定义.

◆ flexShrink

float eve::ui::FlexItemSpec::flexShrink = 1.f

在文件 Layout.h 第 33 行定义.

被这些函数引用 eve::ui::flexArrangeSingleLine().

◆ isSpacer

bool eve::ui::FlexItemSpec::isSpacer = false

在文件 Layout.h 第 36 行定义.

◆ marginAfter

float eve::ui::FlexItemSpec::marginAfter = 0.f

在文件 Layout.h 第 29 行定义.

◆ marginBefore

float eve::ui::FlexItemSpec::marginBefore = 0.f

在文件 Layout.h 第 28 行定义.

被这些函数引用 eve::ui::flexArrangeSingleLine().

◆ marginCrossAfter

float eve::ui::FlexItemSpec::marginCrossAfter = 0.f

在文件 Layout.h 第 31 行定义.

◆ marginCrossBefore

float eve::ui::FlexItemSpec::marginCrossBefore = 0.f

在文件 Layout.h 第 30 行定义.

◆ maxCross

float eve::ui::FlexItemSpec::maxCross = 0.f

在文件 Layout.h 第 47 行定义.

◆ maxMain

float eve::ui::FlexItemSpec::maxMain = 0.f

在文件 Layout.h 第 45 行定义.

◆ minCross

float eve::ui::FlexItemSpec::minCross = 0.f

在文件 Layout.h 第 46 行定义.

◆ minMain

float eve::ui::FlexItemSpec::minMain = 0.f

在文件 Layout.h 第 44 行定义.

◆ percentCross

float eve::ui::FlexItemSpec::percentCross = 0.f

在文件 Layout.h 第 43 行定义.

◆ percentMain

float eve::ui::FlexItemSpec::percentMain = 0.f

在文件 Layout.h 第 42 行定义.

◆ posCross

float eve::ui::FlexItemSpec::posCross = 0.f

在文件 Layout.h 第 41 行定义.

◆ posMain

float eve::ui::FlexItemSpec::posMain = 0.f

在文件 Layout.h 第 40 行定义.


该结构体的文档由以下文件生成: