|
| | CLayoutGrid () |
| virtual | ~CLayoutGrid () |
| void | SetIntervalSize (int cx, int cy) |
| void | SetColumCount (int count) |
| void | SetCellLayoutInfo (int w, int h, LayoutMode mw, LayoutMode mh) |
| void | Layout (int x, int y, int w, int h, UINT flags=0) override |
| | 执行布局操作
|
| | CLayoutBox (LayoutBoxType box_type=BoxVertical) |
| virtual | ~CLayoutBox () |
| int | GetZCurSel () const |
| void | SetLayoutCurSel (int index) |
| int | GetCounts (BOOL only_visable=TRUE) const |
| void | GetAllLayout (std::vector< CLayoutBase * > list) const |
| BOOL | AddLayout (CLayoutBase *obj, BOOL is_manual_free=FALSE) |
| | 添加的布局对象需要由用户自己释放。传入指针,不负责指针的销毁
|
| CLayoutBox * | AddVerLayout (int w, int h, LayoutMode mw, LayoutMode mh) |
| CLayoutBox * | AddHorLayout (int w, int h, LayoutMode mw, LayoutMode mh) |
| CLayoutBox * | AddLayeredLayout (int w, int h, LayoutMode mw, LayoutMode mh) |
| CLayoutSpacer * | AddSpacer (int w, int h, LayoutMode mw, LayoutMode mh) |
| CLayoutControl * | AddLayoutCtrl (IControlUI *obj, int w, int h, LayoutMode mw, LayoutMode mh) |
| CLayoutBase * | HitTestSplit (POINT pt) const |
| | 测试点命中布局间隔的信息
|
| void | SetScaleFactor (int scale) |
| void | RemoveAllLayout () |
| void | SetLayoutBoxType (LayoutBoxType box_type=BoxHorizontal) |
| void | SetLayoutReverse (BOOL is_reverse) |
| void | SetCrossOffset (int d) |
| BOOL | LayoutReverse () const |
| void | ShellLayoutBoxAttribute (LPCTSTR str_name, LPCTSTR str_value) |
| int | GetAdaptWidth (int parent_w, int parent_h) override |
| | 获得自适应宽度
|
| int | GetAdaptHeight (int parent_w, int parent_h) override |
| | 获得自适应高度
|
| bool | IsHasAdaptLayout () override |
| | 判断是否是自适应的布局对象。
|
| bool | IsVisibleLayout () override |
| | 判断布局可见性
|
| void | GetPosition (RECT &rc) override |
| | 获得布局矩形区域
|
| BOOL | OnLayoutMessageProc (UINT message, WPARAM wp, LPARAM lp) override |
| | 布局对象消息处理函数
|
| void | OnDrawLayout (ISurface *surface, int x0, int y0, RECT *rect_update) override |
| | 绘制布局对象
|
| BOOL | ResetLayout () override |
| ILayout * | FindLayoutByName (LPCTSTR name) override |
| | 根据名称查询布局对象
|
| | 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 SIZE | GetSize (int w, int h) |
| | 获得布局尺寸
|
| virtual void | CheckSizeRange (SIZE *sz, int w, int h) |
| | 检查
|
| 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 |
| | 判断布局是否失效
|
| ILayout * | GetParentLayout () override |
| | 获得父布局
|
| void | RebuildLayout (bool is_force_update) override |
| | 重置布局。
|
| LayoutType | GetLayoutType () override |
| | 获得布局类型
|
| | ILayout () |
| virtual | ~ILayout () |
| virtual POINT | GetOrigin () |
| | 获取布局相对坐标基点。此基点为窗口坐标系下的绝对坐标
|