NexusForce 1.0.0
A rigorously engineered full-stack C++ backend library.
载入中...
搜索中...
未找到
neforce::tui::style::size_hint结构体 参考

尺寸约束 更多...

#include <style.hpp>

Public 类型

enum  size_mode : uint8_t { auto_ , fixed , fill , percent }
 尺寸模式 更多...

Public 属性

size_mode mode = auto_
 尺寸模式
int value = 0
 Fixed 字符数 / Percent 百分比 / Fill 弹性权重

详细描述

尺寸约束

描述元素在某个轴上的尺寸策略。

在文件 style.hpp110 行定义.

成员枚举类型说明

◆ size_mode

尺寸模式

枚举值
auto_ 

由内容决定尺寸

fixed 

固定字符数,由 value 指定

fill 

占满剩余空间

percent 

父容器的百分比,value 为 0-100

在文件 style.hpp114 行定义.


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