Files
PathEditor/include/core/layout_config.h
T
Serendipity d934d21323 feat: 新增安全字符串处理和日志系统模块
- 添加 safe_string 模块,提供安全的字符串复制、拼接和复制功能
- 添加 logger 模块,支持多级别日志记录和文件输出
- 添加 error_code 模块,定义统一的错误代码枚举
- 添加 layout_config 模块,定义布局配置结构
- 更新 CMakeLists.txt 包含新增的源文件
2026-03-26 12:47:44 +08:00

19 lines
622 B
C

#ifndef LAYOUT_CONFIG_H
#define LAYOUT_CONFIG_H
// 布局配置结构体
typedef struct {
int vbox_gap; // 垂直布局间距
int vbox_margin_width; // 垂直布局外边距宽度
int vbox_margin_height; // 垂直布局外边距高度
int hbox_gap; // 水平布局间距
int hbox_margin_width; // 水平布局外边距宽度
int hbox_margin_height; // 水平布局外边距高度
int button_width; // 按钮宽度
int button_height; // 按钮高度
} LayoutConfig;
// 默认布局配置
extern const LayoutConfig DEFAULT_LAYOUT;
#endif // LAYOUT_CONFIG_H