| CBlueUI
     C++ 跨平台跨框架的数据可视化工具 | 
控件基类 更多...
 类 BUI::CControlUI 继承关系图:
 类 BUI::CControlUI 继承关系图:| Public 成员函数 | |
| CControlUI () | |
| virtual | ~CControlUI () | 
| BOOL | Create (IManageHandler *pManger, LPCTSTR strObjName, LPCTSTR strText, DWORD style, RECT rc, CControlUI *parent=NULL, UINT nID=0) | 
| 创建虚拟控件:创建过程中,会将控件加入到全局的垃圾管理机制中。用于在程序退出时,释放内存 | |
| BOOL | Create (IManageHandler *pManger, LPCTSTR strObjName, LPCTSTR strText, DWORD style, int x, int y, int cx, int cy, CControlUI *pPar=NULL, UINT nID=0) | 
| void | InsertChild (CControlUI *pNewChild, CControlUI *pPrev) | 
| 插入子控件 | |
| BOOL | RemoveChild (CControlUI *pChild) | 
| 删除子控件 | |
| IManageHandler * | GetManagerUI () const | 
| 返回管理器对象 | |
| BOOL | SendParentMessage (UINT message, WPARAM wParam, LPARAM lParam) const | 
| BOOL | SendToManager (UINT message, WPARAM wParam=0, LPARAM lParam=0) | 
| void | SendToAllChilds (UINT message, WPARAM wParam, LPARAM lParam) | 
| 将消息传递给每一个子控件响应 | |
| void | SetEventHandler (IEventHandler *hander) | 
| 设置消息托管 | |
| void | SetParent (CControlUI *pParent) | 
| 设置父控件 | |
| CControlUI * | Parent () const | 
| 父控件 | |
| CControlUI * | FirstChild () const | 
| 第一个孩子节点 | |
| CControlUI * | LastChild () const | 
| 最后的孩子节点 | |
| CControlUI * | NextSibling () const | 
| 下一个兄弟节点 | |
| CControlUI * | PrevSibling () const | 
| 上一个兄弟节点 | |
| CControlUI * | DelegaterPrev () const | 
| 托管链表前向指针 | |
| CControlUI * | DelegaterNext () const | 
| 托管链表后向指针 | |
| void | AddAnimate (const BeString &id, std::shared_ptr< GAnimateProperty > animate) | 
| 添加动画 | |
| void | PauseAnimate (BOOL pause) | 
| 动画使能:暂停(TRUE)或开启(FALSE) | |
| GAnimateTransformVector & | AnimateTransform () | 
| 获得动画数组 | |
| void | ModifyControlFlags (uint64_t style, UINT op=ADD_FLAGS) | 
| 设置控件风格 | |
| uint64_t | IsHasControlFlags (uint64_t flags) const | 
| uint64_t | GetControlFlags () const | 
| void | SetControlNotes (BeString str) | 
| 设置控件注释信息 | |
| BeString | GetControlNotes () const | 
| 获得控件的注释信息 | |
| LPCTSTR | Text () const | 
| 获得文本 | |
| void | SetControlText (BeString str, BOOL bRefresh=FALSE) | 
| 设置文本 | |
| void | SetAdaptMinText (BeString str) | 
| 布局最小适应文本 | |
| void | SetControlTextByNumber (double value, int nPrecision, BOOL remoe_last_zero) | 
| 以数值设置文本 | |
| double | GetControlTextNumber () const | 
| 获得文本表示的数值 | |
| void | SetVarName (const BeString &str) | 
| 设置控件唯一标识符 | |
| void | SetVarNameA (const char *varname) | 
| 设置控件唯一标识符 | |
| void | SetVarNameW (const WCHAR *varname) | 
| 设置控件唯一标识符 | |
| void | SetCommitTarget (ICommitTarget *obj) | 
| 设置数据提交对象 | |
| void | AddAbsordLayout (std::shared_ptr< ILayout > layout) | 
| 添加悬浮布局 | |
| void | DelAbsordLayout (std::shared_ptr< ILayout > layout) | 
| 删除悬浮布局 | |
| void | SetBlurSize (UINT size) | 
| 设置高斯模糊尺寸 | |
| UINT | BlurSize () const | 
| 返回高斯模糊尺寸 | |
| GBrushArray | GetControlColorsStyle (ColorSceneType type) | 
| 获取颜色外观 | |
| void | SetControlColorsStyle (ColorSceneType type, GBrushArray colors) | 
| 设置颜色外观 | |
| void | SetAttributeSaveNode (XMLItem *node) | 
| 设置属性保存节点 | |
| XMLItem * | GetAttributeSaveNode () const | 
| 获得属性保存节点 | |
| void | DoSaveAttributeToNode () | 
| 保存控件属性到(SetSaveNode(node))注册的节点 | |
| void | SetShadowText (int dx, int dy, int blur_x, int blur_y, GColor color) | 
| 设置文本阴影 | |
| void | SetBorderRoundFlags (int pos, int flags) | 
| void | SetBorderRoundSize (RoundRectRadius &radius) | 
| void | GetRoundRadius (RoundRectRadius &ra) const | 
| void | GetRoundRadiusWithRect (const RECT &rc, RoundRectRadius &ra) const | 
| GShadowContain & | GetShadowContain () | 
| 获得阴影容器对象 | |
| GFont * | GetFont () const | 
| 获得字体 | |
| void | SetFont (GFont *font) | 
| 设置字体 | |
| void | SetFontSize (int nHeight) | 
| 设置字体大小 | |
| void | SetStrokeSize (UINT size) | 
| 设置轮廓线宽 | |
| void | SetPositionX (int x) | 
| 设置控件x坐标 | |
| void | SetPositionY (int y) | 
| 设置控件y坐标 | |
| void | SetPositionXY (int x, int y) | 
| 设置控件(x,y)坐标 | |
| int | Width () const | 
| 获得控件宽度 | |
| void | SetWidth (int w) | 
| 设置控件宽度 | |
| int | Height () const | 
| 获得控件高度 | |
| void | SetHeight (int h) | 
| 设置控件高度 | |
| int | SaveAsImage (LPCTSTR outpng) | 
| 保存控件图像为png | |
| int | SaveAsLongImage (LPCTSTR outpng) | 
| 保存为长图 | |
| void | BindAction (std::shared_ptr< IActionNotify > notify) | 
| 绑定事件 | |
| void | ClearAction () | 
| 清空事件 | |
| void | TriggerAction () | 
| 触发事件 | |
| ActionKeyboardMap * | GetActionKeyboard (BOOL is_create=TRUE) | 
| 获得键盘事件表 | |
| void | SetCaptureCtl () | 
| 捕获鼠标 | |
| void | ReleaseCaptureCtl () | 
| 释放焦点捕获 | |
| void | BreakAwayUITree () | 
| 脱离父控件树 | |
| void | SetClipZoom (int x, int y, int w, int h) | 
| 设置控件可视裁剪区域。约束控件的显示区域 | |
| BOOL | BringBottomMost () | 
| 将控件移动到所有兄弟控件中的第一个 | |
| BOOL | BringTopMost () | 
| 将控件移动到所有兄弟控件中的最后一个 | |
| BOOL | TestOrder () const | 
| 判断是否被其他控件遮盖 TRUE 代表遮盖 | |
| void | TipTrack (int x, int y, LPCTSTR lpSz=NULL) | 
| 提示框显示位置 x, y 是相对窗口 | |
| void | TipHide () | 
| 隐藏提示框 | |
| void | ShowControl (bool bShow, bool notify_layout=true) | 
| 显示虚拟窗口 | |
| void | SetVisibleWhenMouseHover (BOOL open) | 
| 设置只在鼠标悬停时,显示控件 | |
| BOOL | IsVisible () const | 
| 控件在父控件中的显示状态 | |
| BOOL | IsFocused () const | 
| 焦点状态 | |
| void | EnableControl (bool bEnable, bool refresh=true) | 
| TRUE:启用控件. FALSE:禁用控件 | |
| void | EnableNodeFlagControl (bool bEnable, bool refresh=true) | 
| nodedata包含的控件。表示node是否被禁用 | |
| BOOL | IsEnabled () const | 
| 判断是否可用。TRUE:代表可用 | |
| BOOL | IsBkShowTiming () const | 
| void | SetBkShowTiming (ShowModel mode) | 
| 背景绘制时机 | |
| void | SetBorderShowTiming (ShowModel mode) | 
| 边框绘制时机 | |
| BOOL | IsCreateSucceed () const | 
| 判断是否是有效控件 | |
| BOOL | IsShortCutVaild () | 
| 判断是否存在快捷键 | |
| void | EnableShortCut (bool benable) | 
| 开启(或禁用)快捷键 | |
| void | SetShortCut (int vKey) | 
| void | SetShortCutCtrlCode (UBYTE vKey) | 
| BOOL | DoShortCut (UBYTE ctrl, UBYTE vKey) | 
| void | EnableBorderAdjustFlag (UINT alignborder=ALIGN_LEFT, bool bEnable=true) | 
| 设置边框调整使能 | |
| void | SetToolTipText (LPCTSTR lpszTip) | 
| 设置提示文本 | |
| void | SetToolTipText (BeString strTip) | 
| 设置提示文本 | |
| void | SetPopTipUI (std::shared_ptr< CControlUI > popui, std::shared_ptr< PopControlInfo > popinfo) | 
| 设置弹出pop显示ui | |
| void | PopTipUI (BOOL bShow) | 
| 展示pop状态 | |
| BOOL | HitTestPopUI (POINT pt) | 
| 是否命中弹出控件 | |
| void | GetRectInScreen (LPRECT lpRect) | 
| 获得在HWND中的绝对位置 | |
| void | SetControlMouseCursor (CursorMouse id) | 
| 设置控件的鼠标光标 | |
| void | SetFocus () | 
| 取得焦点 和HWND焦点不要混淆 ,这是不一样的东西,只是函数名称我为了好记住 | |
| void | Scroll (int x, int y) | 
| 视区的坐标原点偏移 | |
| void | Refresh (BOOL bSynch=FALSE) | 
| 窗口失效重绘 | |
| void | RefreshThreadSafe () | 
| 在gui线程之外时调安全的刷新函数 | |
| void | RefreshRect (RECT *lprcUpdate) | 
| 窗口失效重绘 | |
| void | GetDragPos (RECT *lprect) const | 
| 窗口拖拽的原始位置 | |
| void | OnDestory () | 
| 控件销毁 | |
| void | UpdateAdaptLayout () const | 
| 更新adapt布局 | |
| BOOL | MoveControl (RECT rect, BOOL bRepaint=TRUE) | 
| 移动控件到目标矩形区域 | |
| BOOL | MoveControl (int x, int y, int w, int h, BOOL bRepaint=TRUE) | 
| 移动控件位置。(x,y)代表父控件坐标空间值 | |
| void | MoveDragControl (int dx, int dy, BOOL bRepaint=TRUE) | 
| 拖拽移动。(dx,dy)移动距离向量 | |
| void | MoveCenterByPercent (RECT *rcView, float xScale=0.5, float yScale=0.5, int w=0, int h=0, BOOL adapt_dpi=FALSE, BOOL bRepaint=TRUE) | 
| 将控件移动到以(xScale, yScale)百分比的中心点 | |
| void | ResetLayoutChilds (UINT flags=0) | 
| 重置子布局 | |
| void | SetSkinModule (BeString &skinGroup) | 
| 设置皮肤id | |
| void | SetSkinStyle (BeString &skinName) | 
| 设置皮肤id | |
| void | SetDrawStyleWithFourCode (LPCTSTR draw_style) | 
| 设置控件绘制的风格样式,同一种控件的表现样式可以有多种。 输入值只有前四位字符有效。一个控件表现形式在实际中不会很多。不用整形的目的是增强可读性 | |
| BOOL | IsDrawStyleWithFourCode (TCHAR a='\0', TCHAR b='\0', TCHAR c='\0', TCHAR d='\0') const | 
| 判断是否匹配四字符数 | |
| void | GetSkinModule (BeStringShort64 &moduleName) | 
| void | GetSkinStyle (BeStringShort64 &styleName) | 
| RECT | GetMarginAreaRect (BOOL contain_shadow=FALSE) const | 
| 获得外边距下的相对于窗口的矩形区域 | |
| RECT | GetControlRect () const | 
| 获得控件在窗口坐标下的矩形区域 | |
| RECT | GetControlClientRect () const | 
| 返回基于客户区的坐标 | |
| RECT | GetControlScreenRect () const | 
| 返回基于屏幕的坐标 | |
| RECT | GetOppositePosition (RECT rcContainer, RECT rcChild) const | 
| 返回rcChild相对rcrcContainer坐标系的位置 | |
| SIZE | GetStringSize (LPCTSTR str) const | 
| 获得字符串尺寸 | |
| POINT | ViewOrigin () const | 
| 坐标原点偏移量 | |
| ILayout * | GetAttchLayout () const | 
| 获得管理控件自身的布局对象 | |
| ShowStatus | GetPaintStatus (bool ignoreLButton=true) const | 
| 获得控件状态 | |
| POINT | GetClientPoint (double w_percent, double h_percent) | 
| 获得控件坐标系下百分比的绝对位置 | |
| void | InsertGCChain (CControlUI *prev, CControlUI *next) | 
| void | DeleteGCChain (CControlUI *prev, CControlUI *next) | 
| CControlUI * | FindTabFocusControl (BOOL isNext) const | 
| 获得接下来的焦点控件 | |
| void | NotifyMangerIsDestory () | 
| 告知管理者已销毁 | |
| ST_Policy * | GetSignalPolicy () | 
| 信号和槽机制的回收器 | |
| BOOL | TranslateSyncMsg (UINT message, WPARAM wParam, LPARAM lParam) | 
| 向上层转发同步消息 | |
| BOOL | OnMessageHandler (UINT message, WPARAM wParam, LPARAM lParam) override | 
| 虚拟控件最终消息处理过程 | |
| int | FindChildControlByHandler (std::vector< CControlUI * > &vec, IEventHandler *handler) | 
| 查找(通过控件的SetEventHandler()指定的事件处理对象来寻找) | |
| int | FindAllControlByName (std::vector< CControlUI * > &vec, LPCTSTR szName, BOOL isRecursiveCall=TRUE) const | 
| 在当前控件之下查找所有同名控件 | |
| int | FindAllControl (std::vector< CControlUI * > &vec, BOOL isRecursiveCall=TRUE) const | 
| 获得所有子控件 | |
| CControlUI * | FindControlByName (LPCTSTR szName, BOOL isRecursiveCall=TRUE) const | 
| 在当前控件之下查找控件 | |
| CControlUI * | GetParent () const | 
| 获得父窗口 | |
| CControlUI * | GetParentOnTopMost () const | 
| 获得最顶层父窗口 | |
| CControlUI * | HitTestChildControl (POINT pt) const | 
| 定位到子控件对象 | |
| CControlUI * | NextFocusControl (BOOL isPrev=FALSE) const | 
| 下一个焦点控件 | |
| void | SaveSettingConfig () | 
| 保存配置 | |
| BOOL | OnPaintControl (ISurface *pSurface, LPRECT lprcUpdate=NULL, LPRECT lprcParentViewPort=NULL) | 
| 控件渲染 | |
| float | BackOpacity () const | 
| 背景透明度 | |
| float | BorderOpacity () const | 
| 轮廓边框透明度 | |
| virtual CControlUI * | HitTestControl (POINT pt) | 
| 根据位置得到最终的定位控件 | |
| virtual BOOL | HitTest (POINT pt) | 
| 点击测试 | |
| virtual void | GetLayoutViewRect (RECT *rc) | 
| virtual BeString | GetControlText () | 
| virtual void | GetControlValueText (BasicStringBuffer &buffer) | 
| 获得控件所表达的数据的文本,比如复选框的状态("0"/"1"),方便上层统一操作 | |
| virtual void | SetControlValueText (const BeString &str) | 
| 设置控件所表达的数据的文本,比如复选框的状态("0"/"1"),方便上层统一操作 | |
| virtual ILayout * | BoxLayoutMgr () | 
| 容器布局对象 | |
| virtual void | Activate () | 
| 激活 | |
| virtual CControlUI * | Clone () | 
| 克隆对象 | |
| virtual void | ChangeThemeColors () | 
| 切换主题色 | |
| virtual void | ShellAttribute (const BeString &szName, const BeString &szText) | 
| 命令控制和属性设置接口 | |
| BOOL | ShellAttributeToChildControl (const BeString &childname, const BeString &szName, const BeString &szText) | 
| virtual void | OnParseItemData (XMLItem *pNode) | 
| 解析xml文件对应的数据 | |
| virtual void | OnParseAnimate (XMLItem *pNode) | 
| 解析控件动画对象 | |
| virtual void | OnSaveConfigSetting (XMLItem *node) | 
| 保存控件属性到全局配置文件 | |
| virtual void | OnLoadConfigSetting (XMLItem *node) | 
| 加载控件属性 | |
| virtual void | OnCreate () | 
| 产生时间是窗口创建之后显示之前 | |
| virtual void | OnFontChange () | 
| 字体更改 | |
| virtual void | OnControlSize () | 
| 控件尺寸改变时触发 | |
| virtual void | OnShow (bool bShow) | 
| 控件可见性发生变化时触发 | |
| virtual void | OnCtrlKillFocus () | 
| ui控件失去焦点 | |
| virtual void | OnCtrlSetFocus () | 
| ui控件获得焦点 | |
| virtual BOOL | OnKillFocus (WPARAM wParam, LPARAM lParam) | 
| 当管理的句柄HWND失去焦点时 进入此函数,也就是此函数实际上是窗口 MSG_WND_KILLFOCUS的响应 | |
| virtual BOOL | OnHSCrollBar (WPARAM wParam, LPARAM lParam) | 
| virtual BOOL | OnVSCrollBar (WPARAM wParam, LPARAM lParam) | 
| virtual BOOL | OnSetCursor (WPARAM wParam, LPARAM lParam) | 
| virtual BOOL | OnNcHitTest (POINT pt) | 
| virtual BOOL | OnMouseMove (WPARAM wParam, LPARAM lParam) | 
| virtual BOOL | OnMouseEnter (WPARAM wParam, LPARAM lParam) | 
| 在鼠标进入控件时触发 | |
| virtual BOOL | OnMouseLeave (WPARAM wParam, LPARAM lParam) | 
| virtual BOOL | OnMouseWheel (WPARAM wParam, LPARAM lParam) | 
| 鼠标滑轮消息 | |
| virtual BOOL | OnLButtonDown (WPARAM wParam, LPARAM lParam) | 
| virtual BOOL | OnLButtonUp (WPARAM wParam, LPARAM lParam) | 
| virtual BOOL | OnLButtonCliked (WPARAM wParam, LPARAM lParam) | 
| virtual BOOL | OnRButtonDown (WPARAM wParam, LPARAM lParam) | 
| virtual BOOL | OnRButtonUp (WPARAM wParam, LPARAM lParam) | 
| virtual BOOL | OnRButtonCliked (WPARAM wParam, LPARAM lParam) | 
| virtual BOOL | OnKeyDown (WPARAM wParam, LPARAM lParam) | 
| 键盘消息 | |
| virtual BOOL | OnKeyUp (WPARAM wParam, LPARAM lParam) | 
| virtual BOOL | OnChar (WPARAM wParam, LPARAM lParam) | 
| virtual BOOL | OnTimerEvent (unsigned int timerid, UINT umsec) | 
| 定时器事件响应 | |
| virtual BOOL | DoPaintShadow (ISurface *pSurface, bool inset, RECT *lpUpdate) | 
| virtual BOOL | OnPaintControl3D (ISurface *pSurface, LPRECT lprcUpdate) | 
| virtual BOOL | DoPaintBackGround (ISurface *pSurface, RECT *lpUpdate) | 
| 绘制背景 | |
| virtual BOOL | DoPaint (ISurface *pSurface, RECT *lpUpdate) | 
| 绘制前景 | |
| virtual BOOL | DoPaintBorder (ISurface *pSurface, RECT *lpUpdate) | 
| 绘制边框 | |
| virtual BOOL | DoPaintFinished (ISurface *pSurface, RECT *lpUpdate) | 
| 绘制结束事件,极少场景需要用到 | |
| virtual BOOL | DoPaintGL (ISurface *pSurface, RECT *lpUpdate) | 
| 绘制GL | |
| virtual BOOL | OnDropBegin () | 
| 鼠标拖拽开始 | |
| virtual BOOL | OnDropEnd () | 
| 鼠标拖拽结束 | |
| virtual void | CloneAttribute (CControlUI *clone) | 
| 克隆属性 | |
| int | LayoutAdaptWidth (int expH) override | 
| 自适应宽度计算 | |
| int | LayoutAdaptHeight (int expW) override | 
| 自适应高度计算 | |
| int | GetSplitControlOffsetW () override | 
| 获得拆分宽度偏移 | |
| int | GetSplitControlOffsetH () override | 
| 获得拆分高度偏移 | |
| void | Layout (int x, int y, int w, int h, UINT flags) override | 
| bool | IsVisibleLayout () override | 
| 布局可见性判断 | |
| RECT | GetPosition () override | 
| 获得布局矩形区域位置 | |
| void | SetLauoutInfo (ILayout *parent, int w, int h, SizeMode stw, SizeMode sth) | 
| void | ChangeManager (IManageHandler *pMagr) | 
| 改变控件的管理对象(将抽象控件改变实际窗口的作用域)。 | |
| void | DoChangeThemeColors (const BeString &name) | 
| 主题应用 | |
|  Public 成员函数 继承自 BUI::ICommitTarget | |
| ICommitTarget () | |
| virtual | ~ICommitTarget () | 
| virtual void | OnSummitTarget (FourCode four_code, LPCTSTR data) | 
| 对象之间传递数据的提交操作 | |
|  Public 成员函数 继承自 BUI::IControlUI | |
| IControlUI () | |
| virtual | ~IControlUI () | 
| virtual int | LayoutAdaptWidth (int expH) | 
| 自适应宽度计算 | |
| virtual int | LayoutAdaptHeight (int expW) | 
| 自适应高度计算 | |
| virtual int | GetSplitControlOffsetW () | 
| 获得拆分宽度偏移 | |
| virtual int | GetSplitControlOffsetH () | 
| 获得拆分高度偏移 | |
| virtual void | Layout (int x, int y, int w, int h, UINT flags=0) | 
| virtual RECT | GetPosition () | 
| 获得布局矩形区域位置 | |
| virtual bool | IsVisibleLayout () | 
| 布局可见性判断 | |
|  Public 成员函数 继承自 BUI::IEventHandler | |
| IEventHandler () | |
| virtual | ~IEventHandler () | 
| virtual BOOL | OnMessageHandler (UINT message, WPARAM wp, LPARAM lp) | 
| 静态 Public 成员函数 | |
| static void | ChangeParent (CControlUI *pThis, CControlUI *pNewpar, CControlUI *pAfterchild) | 
| static void | ParseShortCutText (const char *text, UINT &vCtrl, UINT &vKey) | 
| 解析快捷键 | |
| static BeString | ConvertShortCutCodeToText (UINT vCtrl, UINT vKey) | 
| 快捷键转换为字符串 | |
| Public 属性 | |
| BeString | m_name | 
| UINT | m_int_id | 
| IManageHandler * | m_manager | 
| CControlUI * | m_parent | 
| CControlUI * | m_first_child | 
| CControlUI * | m_last_child | 
| CControlUI * | m_next_sibling | 
| CControlUI * | m_prev_sibling | 
| CControlUI * | m_gc_prev_ | 
| CControlUI * | m_gc_next_ | 
| CControlUI * | m_break_prev_ | 
| CControlUI * | m_break_next_ | 
| RECT | m_rect_pos | 
| UINT | m_blur_size | 
| UBYTE | m_visible | 
| 全部为0代表可见 bit0: 表示控件自身的可视状态 bit1: 表示父控件的可视状态 bit2: 表示鼠标进入时才有可视状态 | |
| UBYTE | m_enable | 
| 全部为0代表可用 bit0 表示控件自身的可用状态 bit1 表示父控件的禁用状态 bit2: nodecell禁用状态 | |
| UBYTE | m_bk_show_timing | 
| ShowModel OnNever 从不绘制 OnAlways 一直绘制 OnHighLight 高亮时绘制 | |
| UBYTE | m_border_show_timing | 
| Protected 成员函数 | |
| void | UpdateMarginStateFlag () | 
| 更新margin状态标志位 | |
| BOOL | SetMouseCursor (CursorMouse id) | 
| 设置系统光标 | |
| void | InsertBreakChain (CControlUI *prev, CControlUI *next) | 
| void | DeleteBreakChain (CControlUI *prev, CControlUI *next) | 
| void | ClientToHWNDScreen () | 
| 将控件坐标转换为窗口下的坐标 | |
| void | RePlotChildPos () | 
| void | AdjustLayoutControlSize (POINT pt) | 
| 用户调整控件大小 | |
| BOOL | IsRedrawHovn () const | 
| void | NotifyChildControlEnableChange (bool bEnable) | 
| 父控件被禁用时,同步更新子控件禁用状态 | |
| void | NotifyChildControlVisableChange (bool bShow) | 
| 父控件被隐藏时,同步更新子控件隐藏状态 | |
| 静态 Protected 成员函数 | |
| static UBYTE | ReturnBitFlag (UBYTE value, UINT bit_pos, BOOL bEnable) | 
控件基类
| BUI::CControlUI::CControlUI | ( | ) | 
| 
 | virtual | 
| 
 | virtual | 
激活
被 BUI::CButtonUI, BUI::CCheckBoxUI , 以及 BUI::COptionUI 重载.
| void BUI::CControlUI::AddAbsordLayout | ( | std::shared_ptr< ILayout > | layout | ) | 
添加悬浮布局
| void BUI::CControlUI::AddAnimate | ( | const BeString & | id, | 
| std::shared_ptr< GAnimateProperty > | animate | ||
| ) | 
添加动画
| id:动画id | |
| animate | :动画属性 | 
| 
 | protected | 
用户调整控件大小
| GAnimateTransformVector & BUI::CControlUI::AnimateTransform | ( | ) | 
获得动画数组
| float BUI::CControlUI::BackOpacity | ( | ) | const | 
背景透明度
| void BUI::CControlUI::BindAction | ( | std::shared_ptr< IActionNotify > | notify | ) | 
绑定事件
| UINT BUI::CControlUI::BlurSize | ( | ) | const | 
返回高斯模糊尺寸
| float BUI::CControlUI::BorderOpacity | ( | ) | const | 
轮廓边框透明度
| 
 | virtual | 
容器布局对象
被 BUI::CContainLayoutUI 重载.
| void BUI::CControlUI::BreakAwayUITree | ( | ) | 
脱离父控件树
| BOOL BUI::CControlUI::BringBottomMost | ( | ) | 
将控件移动到所有兄弟控件中的第一个
| BOOL BUI::CControlUI::BringTopMost | ( | ) | 
将控件移动到所有兄弟控件中的最后一个
| void BUI::CControlUI::ChangeManager | ( | IManageHandler * | pMagr | ) | 
改变控件的管理对象(将抽象控件改变实际窗口的作用域)。
| 
 | static | 
| 
 | virtual | 
切换主题色
被 BUI::CChartViewUI, BUI::CButtonUI, BUI::CButtonSysUI, BUI::CBinaryBoxUI, BUI::CContainerUI, BUI::CTipBoxUI, BUI::COptionUI, BUI::CContainTabUI, BUI::CContainTitleUI, BUI::CEditRichUI, BUI::CEditTextUI, BUI::CLabelUI, BUI::CListBoxUI, BUI::CProgressBarUI, BUI::CSliderUI, BUI::CScrollBarUI, BUI::CScrollAreaUI, BUI::CSplitBarUI, BUI::CTableViewUI, BUI::CTreeListUI , 以及 BUI::CTreeTableViewUI 重载.
| void BUI::CControlUI::ClearAction | ( | ) | 
清空事件
| 
 | protected | 
将控件坐标转换为窗口下的坐标
| 
 | virtual | 
克隆对象
| 
 | virtual | 
克隆属性
被 BUI::CButtonUI, BUI::CButtonMenuUI, BUI::CButtonSVGUI, BUI::CButtonImageUI, BUI::CButtonSwitchImageUI, BUI::CCheckBoxUI, BUI::CBinaryBoxUI, BUI::CContainerUI, BUI::CContainLayoutUI, BUI::CLayoutArrowContainUI, BUI::CDateUI, BUI::CEditSpinBoxUI, BUI::CImageViewUI, BUI::CGIFViewUI, BUI::CLabelMultiStyleUI, BUI::CLabelUI, BUI::CStaticMarkUI, BUI::CLineUI, BUI::CLineArrowUI, BUI::CLottieUI, BUI::CScrollBarUI, BUI::CScrollAreaUI, BUI::CSplitBarUI , 以及 BUI::CZBarCodeUI 重载.
快捷键转换为字符串
| BOOL BUI::CControlUI::Create | ( | IManageHandler * | pManger, | 
| LPCTSTR | strObjName, | ||
| LPCTSTR | strText, | ||
| DWORD | style, | ||
| int | x, | ||
| int | y, | ||
| int | cx, | ||
| int | cy, | ||
| CControlUI * | pPar = NULL, | ||
| UINT | nID = 0 | ||
| ) | 
| BOOL BUI::CControlUI::Create | ( | IManageHandler * | pManger, | 
| LPCTSTR | strObjName, | ||
| LPCTSTR | strText, | ||
| DWORD | style, | ||
| RECT | rc, | ||
| CControlUI * | parent = NULL, | ||
| UINT | nID = 0 | ||
| ) | 
创建虚拟控件:创建过程中,会将控件加入到全局的垃圾管理机制中。用于在程序退出时,释放内存
| pManger | :管理对象 不能为空对象 | 
| strObjName | :控件的检索标识符号,可用来查找控件 | 
| strText | :控件文本内容 | 
| style | :控件风格 | 
| rc | :位置信息 | 
| parent | :父控件指针 | 
| nID | :整型检索ID | 
| void BUI::CControlUI::DelAbsordLayout | ( | std::shared_ptr< ILayout > | layout | ) | 
删除悬浮布局
| CControlUI * BUI::CControlUI::DelegaterNext | ( | ) | const | 
托管链表后向指针
| CControlUI * BUI::CControlUI::DelegaterPrev | ( | ) | const | 
托管链表前向指针
| 
 | protected | 
| void BUI::CControlUI::DeleteGCChain | ( | CControlUI * | prev, | 
| CControlUI * | next | ||
| ) | 
| void BUI::CControlUI::DoChangeThemeColors | ( | const BeString & | name | ) | 
主题应用
绘制前景
被 BUI::CChartViewUI, BUI::CButtonUI, BUI::CButtonSysUI, BUI::CButtonMenuUI, BUI::CButtonSVGUI, BUI::CButtonImageUI, BUI::CButtonSwitchImageUI, BUI::CButtonTextureUI, BUI::CButtonNodeUI, BUI::CIndicatorLightUI, BUI::CCarouselUI, BUI::CCheckBoxUI, BUI::CBinaryBoxUI, BUI::CColorPickerUI, BUI::CComboBaseUI, BUI::CComboColorPickerUI, BUI::CContainerUI, BUI::CNodeDataListUI, BUI::CLayoutArrowContainUI, BUI::COptionUI, BUI::CContainTitleUI, BUI::CDateUI, BUI::CDigitLcdUI, BUI::CEditSpinBoxUI, BUI::CEditRichUI, BUI::CEditTextUI, BUI::CEditCombinationUI, BUI::CImageViewUI, BUI::CGIFViewUI, BUI::CLabelMultiStyleUI, BUI::CLabelUI, BUI::CStaticMarkUI, BUI::CLineUI, BUI::CLineArrowUI, BUI::CListBoxUI, BUI::CLottieUI, BUI::CPaginationUI, BUI::CProgressBarUI, BUI::CSliderUI, BUI::CScrollBarUI, BUI::CSplitBarUI, BUI::CTableViewUI, BUI::CTreeListUI, BUI::CTreeTableViewUI, BUI::NetGraphUI, BUI::CView3dUI , 以及 BUI::CZBarCodeUI 重载.
绘制结束事件,极少场景需要用到
被 BUI::CNodeEditorUI 重载.
绘制GL
被 BUI::CView3dUI 重载.
| void BUI::CControlUI::DoSaveAttributeToNode | ( | ) | 
保存控件属性到(SetSaveNode(node))注册的节点
| void BUI::CControlUI::EnableBorderAdjustFlag | ( | UINT | alignborder = ALIGN_LEFT, | 
| bool | bEnable = true | ||
| ) | 
设置边框调整使能
| void BUI::CControlUI::EnableControl | ( | bool | bEnable, | 
| bool | refresh = true | ||
| ) | 
TRUE:启用控件. FALSE:禁用控件
| void BUI::CControlUI::EnableNodeFlagControl | ( | bool | bEnable, | 
| bool | refresh = true | ||
| ) | 
nodedata包含的控件。表示node是否被禁用
| void BUI::CControlUI::EnableShortCut | ( | bool | benable | ) | 
开启(或禁用)快捷键
| int BUI::CControlUI::FindAllControl | ( | std::vector< CControlUI * > & | vec, | 
| BOOL | isRecursiveCall = TRUE | ||
| ) | const | 
获得所有子控件
| vec | |
| isRecursiveCall | 是否递归(包含递归的子控件) | 
| int BUI::CControlUI::FindAllControlByName | ( | std::vector< CControlUI * > & | vec, | 
| LPCTSTR | szName, | ||
| BOOL | isRecursiveCall = TRUE | ||
| ) | const | 
在当前控件之下查找所有同名控件
| szName | |
| vec | |
| isRecursiveCall | 是否递归(包含递归的子控件) | 
| int BUI::CControlUI::FindChildControlByHandler | ( | std::vector< CControlUI * > & | vec, | 
| IEventHandler * | handler | ||
| ) | 
查找(通过控件的SetEventHandler()指定的事件处理对象来寻找)
| handler | |
| vec | 
| CControlUI * BUI::CControlUI::FindControlByName | ( | LPCTSTR | szName, | 
| BOOL | isRecursiveCall = TRUE | ||
| ) | const | 
在当前控件之下查找控件
| CControlUI * BUI::CControlUI::FindTabFocusControl | ( | BOOL | isNext | ) | const | 
获得接下来的焦点控件
| CControlUI * BUI::CControlUI::FirstChild | ( | ) | const | 
第一个孩子节点
| ActionKeyboardMap * BUI::CControlUI::GetActionKeyboard | ( | BOOL | is_create = TRUE | ) | 
获得键盘事件表
| is_create | :若为TRUE,返回值为非空,函数会自动创建。指针不需要用户释放。控件销毁时会自动释放 若为FALSE,返回当前键盘事件表。返回值为NULL时,表示没有任何事件 | 
| ILayout * BUI::CControlUI::GetAttchLayout | ( | ) | const | 
获得管理控件自身的布局对象
| XMLItem * BUI::CControlUI::GetAttributeSaveNode | ( | ) | const | 
获得属性保存节点
| POINT BUI::CControlUI::GetClientPoint | ( | double | w_percent, | 
| double | h_percent | ||
| ) | 
获得控件坐标系下百分比的绝对位置
| RECT BUI::CControlUI::GetControlClientRect | ( | ) | const | 
返回基于客户区的坐标
| GBrushArray BUI::CControlUI::GetControlColorsStyle | ( | ColorSceneType | type | ) | 
获取颜色外观
| uint64_t BUI::CControlUI::GetControlFlags | ( | ) | const | 
| BeString BUI::CControlUI::GetControlNotes | ( | ) | const | 
获得控件的注释信息
| RECT BUI::CControlUI::GetControlRect | ( | ) | const | 
获得控件在窗口坐标下的矩形区域
| RECT BUI::CControlUI::GetControlScreenRect | ( | ) | const | 
返回基于屏幕的坐标
| 
 | virtual | 
被 BUI::CDateUI , 以及 BUI::CListBoxUI 重载.
| double BUI::CControlUI::GetControlTextNumber | ( | ) | const | 
获得文本表示的数值
| 
 | virtual | 
获得控件所表达的数据的文本,比如复选框的状态("0"/"1"),方便上层统一操作
被 BUI::CCheckBoxUI, BUI::CComboBaseUI, BUI::COptionUI, BUI::CDateTimeUI, BUI::CEditTextUI, BUI::CEditGPSLocationUI, BUI::CListBoxUI, BUI::CProgressBarUI , 以及 BUI::CSliderUI 重载.
| void BUI::CControlUI::GetDragPos | ( | RECT * | lprect | ) | const | 
窗口拖拽的原始位置
| GFont * BUI::CControlUI::GetFont | ( | ) | const | 
获得字体
| 
 | virtual | 
| IManageHandler * BUI::CControlUI::GetManagerUI | ( | ) | const | 
返回管理器对象
返回rcChild相对rcrcContainer坐标系的位置
| ShowStatus BUI::CControlUI::GetPaintStatus | ( | bool | ignoreLButton = true | ) | const | 
获得控件状态
| CControlUI * BUI::CControlUI::GetParent | ( | ) | const | 
获得父窗口
| CControlUI * BUI::CControlUI::GetParentOnTopMost | ( | ) | const | 
获得最顶层父窗口
| 
 | overridevirtual | 
获得布局矩形区域位置
重载 BUI::IControlUI .
| void BUI::CControlUI::GetRectInScreen | ( | LPRECT | lpRect | ) | 
获得在HWND中的绝对位置
| void BUI::CControlUI::GetRoundRadius | ( | RoundRectRadius & | ra | ) | const | 
| void BUI::CControlUI::GetRoundRadiusWithRect | ( | const RECT & | rc, | 
| RoundRectRadius & | ra | ||
| ) | const | 
| GShadowContain & BUI::CControlUI::GetShadowContain | ( | ) | 
获得阴影容器对象
| ST_Policy * BUI::CControlUI::GetSignalPolicy | ( | ) | 
信号和槽机制的回收器
| void BUI::CControlUI::GetSkinModule | ( | BeStringShort64 & | moduleName | ) | 
| void BUI::CControlUI::GetSkinStyle | ( | BeStringShort64 & | styleName | ) | 
| 
 | overridevirtual | 
| 
 | overridevirtual | 
| int BUI::CControlUI::Height | ( | ) | const | 
获得控件高度
点击测试
被 BUI::CButtonPolygonUI , 以及 BUI::CLineArrowUI 重载.
| CControlUI * BUI::CControlUI::HitTestChildControl | ( | POINT | pt | ) | const | 
定位到子控件对象
| 
 | virtual | 
根据位置得到最终的定位控件
被 BUI::CContainTitleUI, BUI::CListBoxUI, BUI::CScrollBarUI, BUI::CTableViewUI, BUI::CTreeListUI , 以及 BUI::CTreeTableViewUI 重载.
| 
 | protected | 
| void BUI::CControlUI::InsertChild | ( | CControlUI * | pNewChild, | 
| CControlUI * | pPrev | ||
| ) | 
插入子控件
| pNewChild | :待插入的子控件UI | 
| ppRev | :子控件的上一个兄弟节点 | 
| void BUI::CControlUI::InsertGCChain | ( | CControlUI * | prev, | 
| CControlUI * | next | ||
| ) | 
| BOOL BUI::CControlUI::IsBkShowTiming | ( | ) | const | 
| BOOL BUI::CControlUI::IsCreateSucceed | ( | ) | const | 
判断是否是有效控件
| BOOL BUI::CControlUI::IsDrawStyleWithFourCode | ( | TCHAR | a = '\0', | 
| TCHAR | b = '\0', | ||
| TCHAR | c = '\0', | ||
| TCHAR | d = '\0' | ||
| ) | const | 
判断是否匹配四字符数
| BOOL BUI::CControlUI::IsEnabled | ( | ) | const | 
判断是否可用。TRUE:代表可用
| BOOL BUI::CControlUI::IsFocused | ( | ) | const | 
焦点状态
| uint64_t BUI::CControlUI::IsHasControlFlags | ( | uint64_t | flags | ) | const | 
| 
 | protected | 
| BOOL BUI::CControlUI::IsShortCutVaild | ( | ) | 
判断是否存在快捷键
| BOOL BUI::CControlUI::IsVisible | ( | ) | const | 
控件在父控件中的显示状态
| 
 | overridevirtual | 
布局可见性判断
重载 BUI::IControlUI .
| CControlUI * BUI::CControlUI::LastChild | ( | ) | const | 
最后的孩子节点
| 
 | overridevirtual | 
重载 BUI::IControlUI .
| 
 | overridevirtual | 
| 
 | overridevirtual | 
设置控件风格
| style | 取ControlFlag组合值 | 
| op | ADD_FLAGS(添加属性) REMOVE_FLAGS(删除属性) | 
| void BUI::CControlUI::MoveCenterByPercent | ( | RECT * | rcView, | 
| float | xScale = 0.5, | ||
| float | yScale = 0.5, | ||
| int | w = 0, | ||
| int | h = 0, | ||
| BOOL | adapt_dpi = FALSE, | ||
| BOOL | bRepaint = TRUE | ||
| ) | 
将控件移动到以(xScale, yScale)百分比的中心点
| rcView | 视区位置信息 | 
| xScale | yScale 控件中心坐标 | 
| w | h 控件尺寸,为0时保持当前大小 | 
| adapt_dpi | 自动适应dpi缩放。 | 
| bRepaint | 需要刷新重绘 | 
移动控件位置。(x,y)代表父控件坐标空间值
移动控件到目标矩形区域
| rect | :目标矩形区域。坐标系是相对于父控件的坐标 | 
| bRepaint | : 若bRepaint=TRUE,表示需要重绘。若bRepaint=TRUE,表示不需要重绘。 | 
| CControlUI * BUI::CControlUI::NextFocusControl | ( | BOOL | isPrev = FALSE | ) | const | 
下一个焦点控件
| CControlUI * BUI::CControlUI::NextSibling | ( | ) | const | 
下一个兄弟节点
| 
 | protected | 
父控件被禁用时,同步更新子控件禁用状态
| 
 | protected | 
父控件被隐藏时,同步更新子控件隐藏状态
| void BUI::CControlUI::NotifyMangerIsDestory | ( | ) | 
告知管理者已销毁
| 
 | virtual | 
控件尺寸改变时触发
被 BUI::CChartViewUI, BUI::CButtonPolygonUI, BUI::CButtonTextureUI, BUI::CComboBaseUI, BUI::CComboListUI, BUI::CContainerUI, BUI::CContainMenuUI, BUI::CContainTabUI, BUI::CContainTitleUI, BUI::CEditSpinBoxUI, BUI::CEditRichUI, BUI::CEditTextUI, BUI::CLabelUI, BUI::CListBoxUI, BUI::CPopControlUI, BUI::CSliderUI, BUI::CScrollBarUI, BUI::CScrollAreaUI, BUI::CTableViewUI, BUI::CTreeListUI, BUI::CTreeTableViewUI , 以及 BUI::CZBarCodeUI 重载.
| 
 | virtual | 
| 
 | virtual | 
ui控件失去焦点
被 BUI::CButtonMenuUI, BUI::CComboBaseUI, BUI::CEditRichUI, BUI::CEditTextUI, BUI::CLabelUI , 以及 BUI::CZBarCodeUI 重载.
| 
 | virtual | 
ui控件获得焦点
被 BUI::CComboBaseUI, BUI::CEditRichUI , 以及 BUI::CEditTextUI 重载.
| void BUI::CControlUI::OnDestory | ( | ) | 
控件销毁
| 
 | virtual | 
鼠标拖拽开始
| 
 | virtual | 
鼠标拖拽结束
| 
 | virtual | 
字体更改
被 BUI::CEditRichUI , 以及 BUI::CEditTextUI 重载.
被 BUI::CContainerUI , 以及 BUI::CScrollAreaUI 重载.
当管理的句柄HWND失去焦点时 进入此函数,也就是此函数实际上是窗口 MSG_WND_KILLFOCUS的响应
被 BUI::CButtonTextureUI, BUI::CCheckBoxUI, BUI::CColorPickerUI, BUI::CComboBaseUI, BUI::CComboListUI, BUI::CContainerUI, BUI::CContainTitleUI, BUI::CEditSpinBoxUI, BUI::CEditRichUI, BUI::CEditTextUI, BUI::CLabelMultiStyleUI, BUI::CListBoxUI, BUI::CPaginationUI, BUI::CSliderUI, BUI::CScrollBarUI, BUI::CSplitBarUI, BUI::CTableViewUI, BUI::CTreeListUI, BUI::CTreeTableViewUI , 以及 BUI::CView3dUI 重载.
被 BUI::CButtonUI, BUI::CButtonSysUI, BUI::CButtonMenuUI, BUI::CButtonImageUI, BUI::CButtonSwitchImageUI, BUI::CButtonTextureUI, BUI::CCarouselUI, BUI::CCheckBoxUI, BUI::CColorPickerUI, BUI::CComboBaseUI, BUI::CContainerUI, BUI::CContainMenuUI, BUI::COptionUI, BUI::CContainTitleUI, BUI::CDateUI, BUI::CDigitLcdUI, BUI::CEditSpinBoxUI, BUI::CEditRichUI, BUI::CEditTextUI, BUI::CListBoxUI, BUI::CPaginationUI, BUI::CPopControlUI, BUI::CSliderUI, BUI::CScrollBarUI, BUI::CSplitBarUI, BUI::CTableViewUI, BUI::CTreeTableViewUI, BUI::NetGraphUI, BUI::CView3dUI , 以及 BUI::CNodeEditorUI 重载.
| 
 | virtual | 
加载控件属性
被 BUI::CEditTextUI , 以及 BUI::CListBoxUI 重载.
| 
 | overridevirtual | 
虚拟控件最终消息处理过程
重载 BUI::IEventHandler .
被 BUI::CDateUI, BUI::CDigitLcdUI, BUI::CEditKeyBoardUI, BUI::CEditSpinBoxUI, BUI::CEditRichUI, BUI::CEditTextUI, BUI::CLabelMultiStyleUI, BUI::CListBoxUI, BUI::CPopControlUI, BUI::CProgressBarUI, BUI::CSliderUI, BUI::CScrollBarUI, BUI::CScrollAreaUI, BUI::CSplitBarUI, BUI::CTableViewUI, BUI::CTreeListUI, BUI::CTreeTableViewUI, BUI::CZBarCodeUI , 以及 BUI::CEditCombinationUI 重载.
在鼠标进入控件时触发
被 BUI::CScrollAreaUI 重载.
被 BUI::CColorPickerUI, BUI::CScrollBarUI, BUI::CChartViewUI, BUI::CButtonMenuUI, BUI::CButtonTextureUI, BUI::CComboBaseUI, BUI::CContainerUI, BUI::CContainTitleUI, BUI::CDateUI, BUI::CEditSpinBoxUI, BUI::CEditRichUI, BUI::CEditTextUI, BUI::CListBoxUI, BUI::CPaginationUI, BUI::CSliderUI, BUI::CSplitBarUI, BUI::CTableViewUI, BUI::CTreeListUI, BUI::CTreeTableViewUI , 以及 BUI::CView3dUI 重载.
鼠标滑轮消息
被 BUI::CEditRichUI , 以及 BUI::CScrollAreaUI 重载.
| BOOL BUI::CControlUI::OnPaintControl | ( | ISurface * | pSurface, | 
| LPRECT | lprcUpdate = NULL, | ||
| LPRECT | lprcParentViewPort = NULL | ||
| ) | 
控件渲染
| pSurface | : 绘图引擎 | 
| lprcUpdate | : 裁剪可视区域.当设置为NULL时,表示刷新整个控件区域 | 
| lprcParentViewPort | : 父控件的可视裁剪区域 | 
| 
 | virtual | 
解析控件动画对象
| 
 | virtual | 
解析xml文件对应的数据
被 BUI::CChartViewUI, BUI::CButtonNodeUI, BUI::CCarouselUI, BUI::CComboListUI, BUI::CNodeDataListUI, BUI::CContainTitleUI, BUI::CLabelMultiStyleUI, BUI::CLineArrowUI, BUI::CListBoxUI, BUI::CScrollAreaUI, BUI::CTableViewUI, BUI::CTreeListUI, BUI::CTreeTableViewUI , 以及 BUI::CNodeEditorUI 重载.
被 BUI::CListBoxUI 重载.
| 
 | virtual | 
保存控件属性到全局配置文件
被 BUI::CEditTextUI , 以及 BUI::CListBoxUI 重载.
| 
 | virtual | 
控件可见性发生变化时触发
被 BUI::CContainLayoutUI, BUI::COptionUI, BUI::CEditRichUI, BUI::CEditTextUI, BUI::CScrollBarUI , 以及 BUI::CComboBaseUI 重载.
被 BUI::CContainerUI, BUI::CListBoxUI , 以及 BUI::CScrollAreaUI 重载.
| CControlUI * BUI::CControlUI::Parent | ( | ) | const | 
父控件
| 
 | static | 
解析快捷键
| void BUI::CControlUI::PauseAnimate | ( | BOOL | pause | ) | 
动画使能:暂停(TRUE)或开启(FALSE)
| void BUI::CControlUI::PopTipUI | ( | BOOL | bShow | ) | 
展示pop状态
| CControlUI * BUI::CControlUI::PrevSibling | ( | ) | const | 
上一个兄弟节点
| void BUI::CControlUI::RefreshRect | ( | RECT * | lprcUpdate | ) | 
窗口失效重绘
| void BUI::CControlUI::RefreshThreadSafe | ( | ) | 
在gui线程之外时调安全的刷新函数
| void BUI::CControlUI::ReleaseCaptureCtl | ( | ) | 
释放焦点捕获
| BOOL BUI::CControlUI::RemoveChild | ( | CControlUI * | pChild | ) | 
删除子控件
| 
 | protected | 
| void BUI::CControlUI::ResetLayoutChilds | ( | UINT | flags = 0 | ) | 
重置子布局
| 
 | staticprotected | 
| int BUI::CControlUI::SaveAsImage | ( | LPCTSTR | outpng | ) | 
保存控件图像为png
| int BUI::CControlUI::SaveAsLongImage | ( | LPCTSTR | outpng | ) | 
保存为长图
| void BUI::CControlUI::SaveSettingConfig | ( | ) | 
保存配置
| void BUI::CControlUI::Scroll | ( | int | x, | 
| int | y | ||
| ) | 
视区的坐标原点偏移
| void BUI::CControlUI::SetAdaptMinText | ( | BeString | str | ) | 
布局最小适应文本
| void BUI::CControlUI::SetAttributeSaveNode | ( | XMLItem * | node | ) | 
设置属性保存节点
| void BUI::CControlUI::SetBkShowTiming | ( | ShowModel | mode | ) | 
背景绘制时机
| void BUI::CControlUI::SetBlurSize | ( | UINT | size | ) | 
设置高斯模糊尺寸
| size | 模糊半径 | 
| void BUI::CControlUI::SetBorderRoundFlags | ( | int | pos, | 
| int | flags | ||
| ) | 
| void BUI::CControlUI::SetBorderRoundSize | ( | RoundRectRadius & | radius | ) | 
| void BUI::CControlUI::SetBorderShowTiming | ( | ShowModel | mode | ) | 
边框绘制时机
| void BUI::CControlUI::SetCaptureCtl | ( | ) | 
捕获鼠标
| void BUI::CControlUI::SetClipZoom | ( | int | x, | 
| int | y, | ||
| int | w, | ||
| int | h | ||
| ) | 
设置控件可视裁剪区域。约束控件的显示区域
| void BUI::CControlUI::SetCommitTarget | ( | ICommitTarget * | obj | ) | 
设置数据提交对象
| void BUI::CControlUI::SetControlColorsStyle | ( | ColorSceneType | type, | 
| GBrushArray | colors | ||
| ) | 
设置颜色外观
| void BUI::CControlUI::SetControlMouseCursor | ( | CursorMouse | id | ) | 
设置控件的鼠标光标
| void BUI::CControlUI::SetControlNotes | ( | BeString | str | ) | 
设置控件注释信息
| void BUI::CControlUI::SetControlTextByNumber | ( | double | value, | 
| int | nPrecision, | ||
| BOOL | remoe_last_zero | ||
| ) | 
以数值设置文本
| value | : 值 | 
| nPrecision | : 小数点后的精度 | 
| remoe_last_zero | : 是否去除小数点后0后缀 | 
| 
 | virtual | 
设置控件所表达的数据的文本,比如复选框的状态("0"/"1"),方便上层统一操作
被 BUI::CCheckBoxUI, BUI::CComboBaseUI, BUI::CDateTimeUI, BUI::CEditSpinBoxUI, BUI::CEditTextUI, BUI::CEditGPSLocationUI , 以及 BUI::CListBoxUI 重载.
| void BUI::CControlUI::SetDrawStyleWithFourCode | ( | LPCTSTR | draw_style | ) | 
设置控件绘制的风格样式,同一种控件的表现样式可以有多种。 输入值只有前四位字符有效。一个控件表现形式在实际中不会很多。不用整形的目的是增强可读性
| draw_style | 类型由四个ASCII字符的组合。 | 
| void BUI::CControlUI::SetEventHandler | ( | IEventHandler * | hander | ) | 
设置消息托管
| void BUI::CControlUI::SetFocus | ( | ) | 
取得焦点 和HWND焦点不要混淆 ,这是不一样的东西,只是函数名称我为了好记住
| void BUI::CControlUI::SetFont | ( | GFont * | font | ) | 
设置字体
| void BUI::CControlUI::SetFontSize | ( | int | nHeight | ) | 
设置字体大小
| void BUI::CControlUI::SetHeight | ( | int | h | ) | 
设置控件高度
| 
 | protected | 
设置系统光标
| void BUI::CControlUI::SetParent | ( | CControlUI * | pParent | ) | 
设置父控件
| void BUI::CControlUI::SetPopTipUI | ( | std::shared_ptr< CControlUI > | popui, | 
| std::shared_ptr< PopControlInfo > | popinfo | ||
| ) | 
设置弹出pop显示ui
| void BUI::CControlUI::SetPositionX | ( | int | x | ) | 
设置控件x坐标
| void BUI::CControlUI::SetPositionXY | ( | int | x, | 
| int | y | ||
| ) | 
设置控件(x,y)坐标
| void BUI::CControlUI::SetPositionY | ( | int | y | ) | 
设置控件y坐标
| void BUI::CControlUI::SetShadowText | ( | int | dx, | 
| int | dy, | ||
| int | blur_x, | ||
| int | blur_y, | ||
| GColor | color | ||
| ) | 
设置文本阴影
| void BUI::CControlUI::SetShortCut | ( | int | vKey | ) | 
| void BUI::CControlUI::SetShortCutCtrlCode | ( | UBYTE | vKey | ) | 
| void BUI::CControlUI::SetSkinModule | ( | BeString & | skinGroup | ) | 
设置皮肤id
| void BUI::CControlUI::SetSkinStyle | ( | BeString & | skinName | ) | 
设置皮肤id
| void BUI::CControlUI::SetStrokeSize | ( | UINT | size | ) | 
设置轮廓线宽
| void BUI::CControlUI::SetToolTipText | ( | BeString | strTip | ) | 
设置提示文本
| void BUI::CControlUI::SetToolTipText | ( | LPCTSTR | lpszTip | ) | 
设置提示文本
| void BUI::CControlUI::SetVarName | ( | const BeString & | str | ) | 
设置控件唯一标识符
| void BUI::CControlUI::SetVarNameA | ( | const char * | varname | ) | 
设置控件唯一标识符
| void BUI::CControlUI::SetVarNameW | ( | const WCHAR * | varname | ) | 
设置控件唯一标识符
| void BUI::CControlUI::SetVisibleWhenMouseHover | ( | BOOL | open | ) | 
设置只在鼠标悬停时,显示控件
| void BUI::CControlUI::SetWidth | ( | int | w | ) | 
设置控件宽度
| 
 | virtual | 
命令控制和属性设置接口
| szName属性 | szText语法格式 | 
|---|---|
| text 设置控件文本 | text="按钮" | 
| note 设置控件注释信息 | note="这是一个用于控制XXX的按钮" | 
| fill 背景颜色 | fill="normal:0x343434;light:rgb(20,20,20,255);selected:hsv(25,100,100,255);disable:#343434" | 
| fill-text 文本颜色 | fill-text="normal:0x343434;light:rgb(20,20,20,255);selected:hsv(25,100,100,255);disable:#343434" | 
| stroke 边框颜色 | stroke="normal:0x343434;light:rgb(20,20,20,255);selected:hsv(25,100,100,255);disable:#343434" | 
| stroke-size 边框画笔大小 | stroke-size="2" | 
| round-radius 控件圆角 | round-radius="left-top:10,10;right-top:10,10;right-bottom:10,10;left-bottom:10,10" | 
| round-radius="rx:10;ry:10" | |
| font 设置字体 | font="name" | 
| blur-size 高斯模糊尺寸 | blur-size="30" | 
| border-show 边框显示属性 | 取值 never:不显示, always:显示, highlight:鼠标悬停时显示, focus:控件获得焦点时显示 | 
| back-show 背景显示属性 | 取值 never:不显示, always:显示, highlight:鼠标悬停时显示, focus:控件获得焦点时显示 | 
| shadow 阴影特效 | shadow="dx,dy,blur_x,blur_y,spread_x,spread_y,colo,inset" shadow="3,3, 2,2, 0,0, rgb(0,0,0,100),inset;3,3, 2,2, 0,0,rgb(0,0,0,100),inset" | 
| visible 可见性 | 取值 true/false | 
| enable 可用性/禁用状态 | 取值 true/false | 
| tooltip 提示文本 | tooltip="这是一段鼠标悬停时的提示文本内容" | 
| nID 控件整数ID | nID="101" | 
| skin-id 皮肤唯一标识符,查找皮肤时的关键key | skin-id="skin_white" | 
| cursor 光标 | 取值:arrow,ibeam,hand,wait,cross,uparrow,size,icon,sizenwse,sizenesw,sizewe,sizens,sizeall,no | 
| isShortCut 是否可以响应快捷键 | true/false | 
| shortcut 响应快捷键 | shortcut="ctrl+B" | 
| refresh 刷新控件 | true/false | 
| margin-hot 热点时的边缘膨胀尺寸 | margin="2,2,2,2" 左上右下的顺序 | 
| control-flags 功能标志位 | "-"前缀代表删除属性 如 control-flags="AllowFocusWhenClick,-SupportTabKey" | 
| StaticState :静态控件,不响应键盘和鼠标 | |
| AllowFocusWhenClick :用户单击时可控件获取焦点 | |
| AllowCaptureMouseWhenClick :用户左键时,捕获鼠标 | |
| SupportTabKey :支持tab获得焦点 | |
| AutoSeatLayout :自动占位布局 | |
| ShowMarginOnCaptureMouse :鼠标悬停时,显示边缘膨胀特效 | |
| ShowMarginOnFocus :获得焦点时,显示边缘膨胀特效 | |
| RoundRadiusDrawLine :控件圆角 | |
| RoundRadiusParl: 控件Parl四边形 | |
| HideWndWhenClick :单击时隐藏窗口 | |
| forcelayout:控件尺寸变化时,强制重新计算布局位置 | |
| use-par-color-fg : 控件前景颜色,使用父控件的 | |
| use-par-color-border : 控件边框颜色,使用父控件的 | |
| use-par-color-text : 控件文本颜色,使用父控件的 | |
| DisableTheme :禁用主题颜色 | |
| ZOverSpeedup :控件多到影响性能时启用 启用后会用算法计算控件的遮盖信息,快速定位 | |
| StorageUserSetting :自动存储控件内容到全局配置文件 | |
| FixedOnView : 控件坐标原点改变时,此控件固定不变 | |
| OnlyMoveInParent : 仅在父控件视窗下移动 | |
| TopMostWhenClick : 点击容器或者容器内的子控件时,将自己置顶。 | |
| datafile 数据文件 | datafile="文件路径" | 
被 BUI::CChartViewUI, BUI::CButtonUI, BUI::CButtonSysUI, BUI::CButtonMenuUI, BUI::CButtonSVGUI, BUI::CButtonImageUI, BUI::CButtonSwitchImageUI, BUI::CButtonPolygonUI, BUI::CButtonTextureUI, BUI::CButtonNodeUI, BUI::CIndicatorLightUI, BUI::CCheckBoxUI, BUI::CBinaryBoxUI, BUI::CColorPickerUI, BUI::CComboBaseUI, BUI::CComboListUI, BUI::CComboDateUI, BUI::CComboDateRangeUI, BUI::CComboColorPickerUI, BUI::CContainerUI, BUI::CContainLayoutUI, BUI::CAutoMoveContainUI, BUI::CLayoutArrowContainUI, BUI::CContainMenuUI, BUI::COptionUI, BUI::CContainOptionUI, BUI::CContainScrollSyncUI, BUI::CContainTabUI, BUI::CContainTitleUI, BUI::CDateUI, BUI::CDateTimeUI, BUI::CDigitLcdUI, BUI::CEditKeyBoardUI, BUI::CEditSpinBoxUI, BUI::CEditRichUI, BUI::CEditTextUI, BUI::CEditCombinationUI, BUI::CEditIPAddressUI, BUI::CEditGPSLocationUI, BUI::CImageViewUI, BUI::CImageViewListUI, BUI::CGIFViewUI, BUI::CLabelMultiStyleUI, BUI::CLabelUI, BUI::CStaticMarkUI, BUI::CLineUI, BUI::CLineArrowUI, BUI::CListBoxUI, BUI::CLottieUI, BUI::CPaginationUI, BUI::CPopControlUI, BUI::CProgressBarUI, BUI::CSliderUI, BUI::CScrollBarUI, BUI::CScrollAreaUI, BUI::CSplitBarUI, BUI::CTableViewUI, BUI::CTreeListUI, BUI::CTreeTableViewUI, BUI::CView3dUI, BUI::CZBarCodeUI , 以及 BUI::CNodeEditorUI 重载.
| BOOL BUI::CControlUI::ShellAttributeToChildControl | ( | const BeString & | childname, | 
| const BeString & | szName, | ||
| const BeString & | szText | ||
| ) | 
| void BUI::CControlUI::ShowControl | ( | bool | bShow, | 
| bool | notify_layout = true | ||
| ) | 
显示虚拟窗口
| BOOL BUI::CControlUI::TestOrder | ( | ) | const | 
判断是否被其他控件遮盖 TRUE 代表遮盖
| LPCTSTR BUI::CControlUI::Text | ( | ) | const | 
获得文本
| void BUI::CControlUI::TipHide | ( | ) | 
隐藏提示框
| void BUI::CControlUI::TipTrack | ( | int | x, | 
| int | y, | ||
| LPCTSTR | lpSz = NULL | ||
| ) | 
提示框显示位置 x, y 是相对窗口
| void BUI::CControlUI::TriggerAction | ( | ) | 
触发事件
| void BUI::CControlUI::UpdateAdaptLayout | ( | ) | const | 
更新adapt布局
| 
 | protected | 
更新margin状态标志位
| POINT BUI::CControlUI::ViewOrigin | ( | ) | const | 
坐标原点偏移量
| int BUI::CControlUI::Width | ( | ) | const | 
获得控件宽度
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| UBYTE BUI::CControlUI::m_bk_show_timing | 
ShowModel OnNever 从不绘制 OnAlways 一直绘制 OnHighLight 高亮时绘制
| UINT BUI::CControlUI::m_blur_size | 
| UBYTE BUI::CControlUI::m_border_show_timing | 
| 
 | protected | 
| CControlUI* BUI::CControlUI::m_break_next_ | 
| CControlUI* BUI::CControlUI::m_break_prev_ | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| UBYTE BUI::CControlUI::m_enable | 
全部为0代表可用 bit0 表示控件自身的可用状态 bit1 表示父控件的禁用状态 bit2: nodecell禁用状态
| 
 | protected | 
| CControlUI* BUI::CControlUI::m_first_child | 
| 
 | protected | 
| 
 | protected | 
| CControlUI* BUI::CControlUI::m_gc_next_ | 
| CControlUI* BUI::CControlUI::m_gc_prev_ | 
| 
 | protected | 
| UINT BUI::CControlUI::m_int_id | 
| 
 | protected | 
| 
 | protected | 
| CControlUI* BUI::CControlUI::m_last_child | 
| 
 | protected | 
| 
 | protected | 
| IManageHandler* BUI::CControlUI::m_manager | 
| 
 | protected | 
| BeString BUI::CControlUI::m_name | 
| 
 | protected | 
| 
 | protected | 
| CControlUI* BUI::CControlUI::m_next_sibling | 
| 
 | protected | 
| 
 | protected | 
| CControlUI* BUI::CControlUI::m_parent | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| CControlUI* BUI::CControlUI::m_prev_sibling | 
| 
 | protected | 
| 
 | protected | 
| RECT BUI::CControlUI::m_rect_pos | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| 
 | protected | 
| UBYTE BUI::CControlUI::m_visible | 
全部为0代表可见 bit0: 表示控件自身的可视状态 bit1: 表示父控件的可视状态 bit2: 表示鼠标进入时才有可视状态