CBlueUI
C++ 跨平台跨框架的数据可视化工具
|
控件UI管理器,负责消息转发和定位 更多...
Public 成员函数 | |
UIManager () | |
virtual | ~UIManager () |
UINT | InitPlatformAdapter (std::shared_ptr< IAdapterPlatform > adapter) |
IAdapterPlatform * | GetAdapterPlatform () const |
void | OpenMonitorFPS (bool open) |
void | SetHideWhenKillFocus (bool hide) |
BOOL | DestoryManger () |
释放管理对象占用的资源 | |
UINT | DoModal () |
模态化 | |
void | TipTrack (int x, int y, LPCTSTR lpSz=NULL) |
提示框显示位置 x, y 是相对窗口 | |
void | TipHide () |
void | RebuildControls () |
重建manger上的所有控件 | |
void | AppendTabFocusControl (CControlUI *pTabFocus) |
将控件追加到到Tab list | |
void | RemoveTabFocusControl (CControlUI *pTabFocus) |
将控件删除Tab list | |
void | ChangeTabFocusControl (CControlUI *pAfter, CControlUI *pTabFocus) |
变更Tab 顺序 | |
BOOL | RegisterUIControl (CControlUI *pCtrl) |
注册控件到管理类中 | |
BOOL | LogoffUIControl (CControlUI *pCtrl) |
注销控件到管理类中 | |
BOOL | RegisterShortCutControl (CControlUI *pCtrl) |
快捷键控件注册到管理类中 | |
BOOL | LogoffShortCutControl (CControlUI *pCtrl) |
快捷键控件注销到管理类中 | |
SIZE | GetRootControlSize () const |
获得第一个控件的尺寸 | |
void | UpdateLayout () |
更新布局 | |
void | OnShowWindow (bool bShow) |
窗口显示状态 | |
BOOL | OnDrawControls (ISurface *pSurface, RECT *lpValidateRect) |
void | OnRender () |
实时渲染 | |
BOOL | DrawBgControls (ISurface *pSurface, RECT *lpValidateRect, CControlUI *pCtrl) |
void | SetCanvasBuffer (GImage *canvas, RECT *rcArea) |
缓存画面 | |
void | NeedUpdate (RECT *rc, BOOL bSynch) override |
更新区域 | |
BOOL | BringTopMost (CControlUI *pCtrol) |
控件的Z-Order最高优先级 | |
BOOL | BringBottomMost (CControlUI *pCtrol) |
控件的Z-Order最低优先级 | |
CControlUI * | SetFocusUI (CControlUI *pFocus) |
指定控件获得输入焦点 | |
CControlUI * | FindContrlByID (UINT nID) |
查找控件 | |
CControlUI * | FindContrlByPoint (POINT pt) |
CControlUI * | FindContrlByClassName (LPCTSTR ctrlName) |
CControlUI * | FindContrlByClassNameA (const char *ctrlName) |
CControlUI * | HitTestControl (POINT pt) |
CControlUI * | PopModalControl () |
double | GetFPS () override |
void | SetDockHandler (IDockHandler *dockMgr) override |
ILayout * | LayoutBox () override |
void | SetPaintOptions (UINT options) override |
UINT | GetPaintOptions () override |
void | ClientPointToScreen (POINT *pt) override |
void | ScreenPointToClient (POINT *pt) override |
BOOL | IsWindowFullMax () override |
BOOL | SendMsg (UINT message, WPARAM wParam, LPARAM lParam) override |
同步消息 | |
BOOL | PostMsg (UINT message, WPARAM wParam, LPARAM lParam) override |
异步消息 | |
BOOL | ToFocusHandler (UINT message, WPARAM wParam, LPARAM lParam) override |
发送到焦点控件 | |
BOOL | ToHotHandler (UINT message, WPARAM wParam, LPARAM lParam) override |
发送到热点控件 | |
BOOL | OnMessageHandler (UINT message, WPARAM wParam, LPARAM lParam) override |
消息处理过程 | |
void | ModifyManagerFlags (UINT style, UINT op=ADD_FLAGS) override |
设置控件扩展风格 | |
UINT | IsHasManagerFlags (UINT flags) override |
UINT | GetManagerFlags () override |
SIZE | GetManagerWndSize () override |
![]() | |
IManageHandler () | |
virtual | ~IManageHandler () |
virtual ILayout * | LayoutBox ()=0 |
virtual double | GetFPS ()=0 |
virtual void | SetDockHandler (IDockHandler *dockMgr)=0 |
virtual void | SetPaintOptions (UINT options)=0 |
virtual UINT | GetPaintOptions ()=0 |
virtual void | ClientPointToScreen (POINT *pt)=0 |
virtual void | ScreenPointToClient (POINT *pt)=0 |
virtual void | NeedUpdate (RECT *rc, BOOL bSynch)=0 |
virtual BOOL | IsWindowFullMax ()=0 |
virtual BOOL | SendMsg (UINT message, WPARAM wParam, LPARAM lParam)=0 |
virtual BOOL | PostMsg (UINT message, WPARAM wParam, LPARAM lParam)=0 |
virtual BOOL | ToFocusHandler (UINT message, WPARAM wParam, LPARAM lParam)=0 |
virtual BOOL | ToHotHandler (UINT message, WPARAM wParam, LPARAM lParam)=0 |
virtual void | ModifyManagerFlags (UINT style, UINT op=ADD_FLAGS)=0 |
设置控件扩展风格 | |
virtual UINT | IsHasManagerFlags (UINT flags)=0 |
virtual UINT | GetManagerFlags ()=0 |
virtual SIZE | GetManagerWndSize ()=0 |
![]() | |
IEventHandler () | |
virtual | ~IEventHandler () |
virtual BOOL | OnMessageHandler (UINT message, WPARAM wp, LPARAM lp) |
静态 Public 成员函数 | |
static void | DoRealTimeRender () |
实时渲染 | |
控件UI管理器,负责消息转发和定位
BUI::UIManager::UIManager | ( | ) |
|
virtual |
void BUI::UIManager::AppendTabFocusControl | ( | CControlUI * | pTabFocus | ) |
将控件追加到到Tab list
BOOL BUI::UIManager::BringBottomMost | ( | CControlUI * | pCtrol | ) |
控件的Z-Order最低优先级
BOOL BUI::UIManager::BringTopMost | ( | CControlUI * | pCtrol | ) |
控件的Z-Order最高优先级
void BUI::UIManager::ChangeTabFocusControl | ( | CControlUI * | pAfter, |
CControlUI * | pTabFocus | ||
) |
变更Tab 顺序
|
overridevirtual |
实现了 BUI::IManageHandler.
BOOL BUI::UIManager::DestoryManger | ( | ) |
释放管理对象占用的资源
UINT BUI::UIManager::DoModal | ( | ) |
模态化
|
static |
实时渲染
BOOL BUI::UIManager::DrawBgControls | ( | ISurface * | pSurface, |
RECT * | lpValidateRect, | ||
CControlUI * | pCtrl | ||
) |
CControlUI * BUI::UIManager::FindContrlByClassName | ( | LPCTSTR | ctrlName | ) |
CControlUI * BUI::UIManager::FindContrlByClassNameA | ( | const char * | ctrlName | ) |
CControlUI * BUI::UIManager::FindContrlByID | ( | UINT | nID | ) |
查找控件
CControlUI * BUI::UIManager::FindContrlByPoint | ( | POINT | pt | ) |
IAdapterPlatform * BUI::UIManager::GetAdapterPlatform | ( | ) | const |
|
overridevirtual |
实现了 BUI::IManageHandler.
|
overridevirtual |
实现了 BUI::IManageHandler.
|
overridevirtual |
实现了 BUI::IManageHandler.
|
overridevirtual |
实现了 BUI::IManageHandler.
SIZE BUI::UIManager::GetRootControlSize | ( | ) | const |
获得第一个控件的尺寸
CControlUI * BUI::UIManager::HitTestControl | ( | POINT | pt | ) |
UINT BUI::UIManager::InitPlatformAdapter | ( | std::shared_ptr< IAdapterPlatform > | adapter | ) |
实现了 BUI::IManageHandler.
|
overridevirtual |
实现了 BUI::IManageHandler.
|
overridevirtual |
实现了 BUI::IManageHandler.
BOOL BUI::UIManager::LogoffShortCutControl | ( | CControlUI * | pCtrl | ) |
快捷键控件注销到管理类中
BOOL BUI::UIManager::LogoffUIControl | ( | CControlUI * | pCtrl | ) |
注销控件到管理类中
更新区域
实现了 BUI::IManageHandler.
void BUI::UIManager::OnRender | ( | ) |
实时渲染
void BUI::UIManager::OnShowWindow | ( | bool | bShow | ) |
窗口显示状态
void BUI::UIManager::OpenMonitorFPS | ( | bool | open | ) |
CControlUI * BUI::UIManager::PopModalControl | ( | ) |
异步消息
实现了 BUI::IManageHandler.
void BUI::UIManager::RebuildControls | ( | ) |
重建manger上的所有控件
BOOL BUI::UIManager::RegisterShortCutControl | ( | CControlUI * | pCtrl | ) |
快捷键控件注册到管理类中
BOOL BUI::UIManager::RegisterUIControl | ( | CControlUI * | pCtrl | ) |
注册控件到管理类中
void BUI::UIManager::RemoveTabFocusControl | ( | CControlUI * | pTabFocus | ) |
将控件删除Tab list
|
overridevirtual |
实现了 BUI::IManageHandler.
同步消息
实现了 BUI::IManageHandler.
|
overridevirtual |
实现了 BUI::IManageHandler.
CControlUI * BUI::UIManager::SetFocusUI | ( | CControlUI * | pFocus | ) |
指定控件获得输入焦点
void BUI::UIManager::SetHideWhenKillFocus | ( | bool | hide | ) |
|
overridevirtual |
实现了 BUI::IManageHandler.
void BUI::UIManager::TipHide | ( | ) |
void BUI::UIManager::TipTrack | ( | int | x, |
int | y, | ||
LPCTSTR | lpSz = NULL |
||
) |
提示框显示位置 x, y 是相对窗口
发送到焦点控件
实现了 BUI::IManageHandler.
发送到热点控件
实现了 BUI::IManageHandler.
void BUI::UIManager::UpdateLayout | ( | ) |
更新布局
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |