CBlueUI  
C++ 跨平台跨框架的数据可视化工具
载入中...
搜索中...
未找到
BUI::CLayoutSpacer类 参考

弹性占位布局对象 更多...

类 BUI::CLayoutSpacer 继承关系图:

Public 成员函数

 CLayoutSpacer ()
 ~CLayoutSpacer ()
void SetManageHandler (IManageHandler *handler)
bool IsVisibleLayout () override
 判断布局可见性
void Layout (int x, int y, int w, int h, UINT flags=0) override
 执行布局操作
void OnDrawLayout (ISurface *surface, int x0, int y0, RECT *rect_update) override
 绘制布局对象
Public 成员函数 继承自 BUI::CLayoutBase
 CLayoutBase ()
virtual ~CLayoutBase ()
AlignType HorAlign ()
 水平对齐方式
AlignType VerAlign ()
 垂直对齐方式
LayoutMode WidthType ()
 宽度模式
LayoutMode HeightType ()
 高度模式
int Width ()
 获得布局容器的宽度
int Height ()
 : 获得布局容器的高度
void SetLayoutVisible (BOOL is_show, BOOL is_relayout=TRUE)
 设置布局的可见性
void SetScaleFactor (float scale)
 布局缩放系数。默认为1.0
virtual void GetPosition (RECT &rc)
 获得布局矩形区域
virtual SIZE GetSize (int w, int h)
 获得布局尺寸
virtual void CheckSizeRange (SIZE *sz, int w, int h)
 检查
int GetAdaptWidth (int parent_w, int parent_h) override
 获得自适应宽度
int GetAdaptHeight (int parent_w, int parent_h) override
 获得自适应高度
int GetSplitOffsetW () override
 获得拆分宽度偏移
int GetSplitOffsetH () override
 获得拆分高度偏移
void SetLayoutInfo (int w, int h, LayoutMode mw, LayoutMode mh) override
 设置布局信息
void GetLayoutInfo (int &w, int &h, LayoutMode &mw, LayoutMode &mh) override
 获得布局信息
void SetAlignment (AlignType hor, AlignType ver) override
 设置布局容器内的对象水平和垂直的对齐风格
void SetPadding (int l, int r, int t, int b) override
 设置内边距
void GetPadding (int &l, int &r, int &t, int &b) override
 获得内边距缩进
void SetWidthMin (LayoutValue w) override
 设置宽度的最小值
void SetWidthMax (LayoutValue w) override
 设置宽度的最大值
void SetHeightMin (LayoutValue h) override
 设置高度的最小值
void SetHeightMax (LayoutValue h) override
 设置高度的最大值
int GetWidthMin (int w) override
 获取宽度的最小值
int GetWidthMax (int w) override
 获取宽度的最大值
int GetHeightMin (int h) override
 获取高度的最小值
int GetHeightMax (int h) override
 获取高度的最大值
bool IsVaild () override
 判断布局是否失效
bool IsHasAdaptLayout () override
 判断是否是自适应的布局对象。
ILayoutGetParentLayout () override
 获得父布局
BOOL OnLayoutMessageProc (UINT message, WPARAM wp, LPARAM lp) override
 布局对象消息处理函数
void RebuildLayout (bool is_force_update) override
 重置布局。
LayoutType GetLayoutType () override
 获得布局类型
ILayoutFindLayoutByName (LPCTSTR name) override
 根据名称查询布局对象
Public 成员函数 继承自 BUI::ILayout
 ILayout ()
virtual ~ILayout ()
virtual POINT GetOrigin ()
 获取布局相对坐标基点。此基点为窗口坐标系下的绝对坐标

Protected 属性

IManageHandlerm_manger
RECT m_rect_box

额外继承的成员函数

Public 属性 继承自 BUI::CLayoutBase
CLayoutBasem_parent_layout
LayoutLinkNode m_link
LayoutType m_layout_type
BeString m_name
BOOL m_is_visible
float m_scale_factor
int m_temp_size
int m_width
int m_height
LayoutMode m_width_mode
LayoutMode m_height_mode
AlignType m_hor_align
AlignType m_ver_align
PaddingInfo m_padding
LayoutValue m_width_min
LayoutValue m_width_max
LayoutValue m_height_min
LayoutValue m_height_max
SIZE m_pixel_size
 尺寸计算结果
int m_cache_offset_size

详细描述

弹性占位布局对象

构造及析构函数说明

◆ CLayoutSpacer()

BUI::CLayoutSpacer::CLayoutSpacer ( )

◆ ~CLayoutSpacer()

BUI::CLayoutSpacer::~CLayoutSpacer ( )

成员函数说明

◆ IsVisibleLayout()

bool BUI::CLayoutSpacer::IsVisibleLayout ( )
overridevirtual

判断布局可见性

重载 BUI::CLayoutBase .

◆ Layout()

void BUI::CLayoutSpacer::Layout ( int x,
int y,
int w,
int h,
UINT flags = 0 )
overridevirtual

执行布局操作

重载 BUI::CLayoutBase .

◆ OnDrawLayout()

void BUI::CLayoutSpacer::OnDrawLayout ( ISurface * surface,
int x0,
int y0,
RECT * rect_update )
overridevirtual

绘制布局对象

重载 BUI::CLayoutBase .

◆ SetManageHandler()

void BUI::CLayoutSpacer::SetManageHandler ( IManageHandler * handler)

类成员变量说明

◆ m_manger

IManageHandler* BUI::CLayoutSpacer::m_manger
protected

◆ m_rect_box

RECT BUI::CLayoutSpacer::m_rect_box
protected
鄂公网安备42018502007752 鄂ICP备2024082886
Copyright © 2026 · CBlueStudio 版权所有