CBlueUI
C++ 跨平台跨框架的数据可视化工具
|
普通单元格 更多...
Public 成员函数 | |
CNodeCell () | |
CNodeCell (std::shared_ptr< CNodeData > valuedata) | |
virtual | ~CNodeCell () |
void | BindAction (std::shared_ptr< IActionNotify > action) |
绑定事件 | |
std::shared_ptr< IActionNotify > | ActionOfNode () const |
获得事件 | |
void | DoNodeAction () const |
执行事件 | |
void | SetBackNodeData (std::shared_ptr< CNodeData > valuedata) |
设置背景显示节点 | |
void | SetSyntaxAst (LPCTSTR str_script) |
设置内置脚本代码 | |
void | SetName (BeString id) |
设置单元格名称id | |
BeString & | Name () |
单元格名称id | |
BOOL | IsEnable () const |
是否可用 | |
void | SetEnable (BOOL enable) |
开启(或禁用)单元格。默认保持开启 | |
void | OnDrawNodeCell (ISurface *pSurface, int paintState, RECT rcCell, const GColor &color_text, UINT textAlignFlag, PathTransInfo *clipborderpath=NULL) |
void | SetNodeData (std::shared_ptr< CNodeData > valuedata) |
设置单元格数据 | |
std::shared_ptr< CNodeData > & | GetNodeData () |
获得单元格数据 | |
void | AddNodeData (std::shared_ptr< CNodeData > valuedata, int w=0, int h=0, SizeMode stw=AdaptFill, SizeMode sth=AdaptFill) |
void | InsertNodeData (int pos, std::shared_ptr< CNodeData > valuedata, int w=0, int h=0, SizeMode stw=AdaptFill, SizeMode sth=AdaptFill) |
void | SetNotifyHandler (IEventHandler *notify) |
设置消息通知处理者 | |
void | NeedUpdateUI () |
刷新单元格ui | |
void | NeedUpdateHostUI () |
刷新宿主UI | |
void | ShellNodeCellAttribute (const BeString &szName, const BeString &szText) |
属性设置 | |
ItemState & | GetNodeState () |
单元格状态 | |
void | ResetNodeState () |
重置单元格状态 | |
BOOL | PtInCell (POINT pt) |
鼠标命中单元格测试 | |
RECT | CellRect () const |
单元格位置矩形区域 | |
void | SetRect (int x, int y, int w, int h) |
设置单元格位置矩形区域 | |
Public 属性 | |
RECT | m_rc_cell |
ItemState | m_state |
BeString | m_name_id |
IEventHandler * | m_notify_handler |
std::shared_ptr< CNodeData > | m_backdata |
std::shared_ptr< CNodeData > | m_rawdata |
std::shared_ptr< IActionNotify > | m_action |
syntax_info * | m_cmd_ast |
普通单元格
BUI::CNodeCell::CNodeCell | ( | ) |
BUI::CNodeCell::CNodeCell | ( | std::shared_ptr< CNodeData > | valuedata | ) |
|
virtual |
std::shared_ptr< IActionNotify > BUI::CNodeCell::ActionOfNode | ( | ) | const |
获得事件
void BUI::CNodeCell::AddNodeData | ( | std::shared_ptr< CNodeData > | valuedata, |
int | w = 0 , |
||
int | h = 0 , |
||
SizeMode | stw = AdaptFill , |
||
SizeMode | sth = AdaptFill |
||
) |
void BUI::CNodeCell::BindAction | ( | std::shared_ptr< IActionNotify > | action | ) |
绑定事件
RECT BUI::CNodeCell::CellRect | ( | ) | const |
单元格位置矩形区域
void BUI::CNodeCell::DoNodeAction | ( | ) | const |
执行事件
std::shared_ptr< CNodeData > & BUI::CNodeCell::GetNodeData | ( | ) |
获得单元格数据
ItemState & BUI::CNodeCell::GetNodeState | ( | ) |
单元格状态
void BUI::CNodeCell::InsertNodeData | ( | int | pos, |
std::shared_ptr< CNodeData > | valuedata, | ||
int | w = 0 , |
||
int | h = 0 , |
||
SizeMode | stw = AdaptFill , |
||
SizeMode | sth = AdaptFill |
||
) |
BOOL BUI::CNodeCell::IsEnable | ( | ) | const |
是否可用
BeString & BUI::CNodeCell::Name | ( | ) |
单元格名称id
void BUI::CNodeCell::NeedUpdateHostUI | ( | ) |
刷新宿主UI
void BUI::CNodeCell::NeedUpdateUI | ( | ) |
刷新单元格ui
void BUI::CNodeCell::OnDrawNodeCell | ( | ISurface * | pSurface, |
int | paintState, | ||
RECT | rcCell, | ||
const GColor & | color_text, | ||
UINT | textAlignFlag, | ||
PathTransInfo * | clipborderpath = NULL |
||
) |
void BUI::CNodeCell::ResetNodeState | ( | ) |
重置单元格状态
void BUI::CNodeCell::SetBackNodeData | ( | std::shared_ptr< CNodeData > | valuedata | ) |
设置背景显示节点
void BUI::CNodeCell::SetEnable | ( | BOOL | enable | ) |
开启(或禁用)单元格。默认保持开启
void BUI::CNodeCell::SetName | ( | BeString | id | ) |
设置单元格名称id
void BUI::CNodeCell::SetNodeData | ( | std::shared_ptr< CNodeData > | valuedata | ) |
设置单元格数据
void BUI::CNodeCell::SetNotifyHandler | ( | IEventHandler * | notify | ) |
设置消息通知处理者
void BUI::CNodeCell::SetRect | ( | int | x, |
int | y, | ||
int | w, | ||
int | h | ||
) |
设置单元格位置矩形区域
void BUI::CNodeCell::SetSyntaxAst | ( | LPCTSTR | str_script | ) |
设置内置脚本代码
属性设置
std::shared_ptr<IActionNotify> BUI::CNodeCell::m_action |
std::shared_ptr<CNodeData> BUI::CNodeCell::m_backdata |
syntax_info* BUI::CNodeCell::m_cmd_ast |
BeString BUI::CNodeCell::m_name_id |
IEventHandler* BUI::CNodeCell::m_notify_handler |
std::shared_ptr<CNodeData> BUI::CNodeCell::m_rawdata |
RECT BUI::CNodeCell::m_rc_cell |
ItemState BUI::CNodeCell::m_state |