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

普通单元格 更多...

类 BUI::CNodeCell 继承关系图:

Public 成员函数

 CNodeCell ()
 CNodeCell (std::shared_ptr< CNodeData > valuedata)
virtual ~CNodeCell ()
void BindAction (std::shared_ptr< IActionNotify > action)
 绑定事件
std::shared_ptr< IActionNotifyActionOfNode () const
 获得事件
void DoNodeAction () const
 执行事件
void SetBackNodeData (const std::shared_ptr< CNodeData > &valuedata)
 设置背景显示节点
void SetSyntaxAst (LPCTSTR str_script)
 设置内置脚本代码
void SetName (BeString id)
 设置单元格名称id
BeStringName ()
 单元格名称id
BOOL IsEnable () const
 是否可用
void SetEnable (BOOL enable)
 开启(或禁用)单元格。默认保持开启
void OnDrawNodeCell (ISurface *surface, int paint_state, RECT rc_cell, const GColor &color_text, UINT text_align, PathTransInfo *clip_path=NULL)
void SetNodeData (const std::shared_ptr< CNodeData > &valuedata)
 设置单元格数据
std::shared_ptr< CNodeData > & GetNodeData ()
 获得单元格数据
void AddNodeData (const std::shared_ptr< CNodeData > &valuedata, int w=0, int h=0, LayoutMode mw=AdaptFill, LayoutMode mh=AdaptFill)
void InsertNodeData (int pos, const std::shared_ptr< CNodeData > &valuedata, int w=0, int h=0, LayoutMode mw=AdaptFill, LayoutMode mh=AdaptFill)
void SetNotifyHandler (IEventHandler *notify)
 设置消息通知处理者
void NeedUpdateUI ()
 刷新单元格ui
void NeedUpdateHostUI ()
 刷新宿主UI
virtual void ShellNodeCellAttribute (const BeString &str_name, const BeString &str_value)
 属性设置
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
IEventHandlerm_notify_handler
std::shared_ptr< CNodeDatam_backdata
std::shared_ptr< CNodeDatam_rawdata
std::shared_ptr< IActionNotifym_action
syntax_infom_cmd_ast

详细描述

普通单元格

构造及析构函数说明

◆ CNodeCell() [1/2]

BUI::CNodeCell::CNodeCell ( )

◆ CNodeCell() [2/2]

BUI::CNodeCell::CNodeCell ( std::shared_ptr< CNodeData > valuedata)

◆ ~CNodeCell()

virtual BUI::CNodeCell::~CNodeCell ( )
virtual

成员函数说明

◆ ActionOfNode()

std::shared_ptr< IActionNotify > BUI::CNodeCell::ActionOfNode ( ) const

获得事件

◆ AddNodeData()

void BUI::CNodeCell::AddNodeData ( const std::shared_ptr< CNodeData > & valuedata,
int w = 0,
int h = 0,
LayoutMode mw = AdaptFill,
LayoutMode mh = AdaptFill )

◆ BindAction()

void BUI::CNodeCell::BindAction ( std::shared_ptr< IActionNotify > action)

绑定事件

◆ CellRect()

RECT BUI::CNodeCell::CellRect ( ) const

单元格位置矩形区域

◆ DoNodeAction()

void BUI::CNodeCell::DoNodeAction ( ) const

执行事件

◆ GetNodeData()

std::shared_ptr< CNodeData > & BUI::CNodeCell::GetNodeData ( )

获得单元格数据

◆ GetNodeState()

ItemState & BUI::CNodeCell::GetNodeState ( )

单元格状态

◆ InsertNodeData()

void BUI::CNodeCell::InsertNodeData ( int pos,
const std::shared_ptr< CNodeData > & valuedata,
int w = 0,
int h = 0,
LayoutMode mw = AdaptFill,
LayoutMode mh = AdaptFill )

◆ IsEnable()

BOOL BUI::CNodeCell::IsEnable ( ) const

是否可用

◆ Name()

BeString & BUI::CNodeCell::Name ( )

单元格名称id

◆ NeedUpdateHostUI()

void BUI::CNodeCell::NeedUpdateHostUI ( )

刷新宿主UI

◆ NeedUpdateUI()

void BUI::CNodeCell::NeedUpdateUI ( )

刷新单元格ui

◆ OnDrawNodeCell()

void BUI::CNodeCell::OnDrawNodeCell ( ISurface * surface,
int paint_state,
RECT rc_cell,
const GColor & color_text,
UINT text_align,
PathTransInfo * clip_path = NULL )

◆ PtInCell()

BOOL BUI::CNodeCell::PtInCell ( POINT pt)

鼠标命中单元格测试

◆ ResetNodeState()

void BUI::CNodeCell::ResetNodeState ( )

重置单元格状态

◆ SetBackNodeData()

void BUI::CNodeCell::SetBackNodeData ( const std::shared_ptr< CNodeData > & valuedata)

设置背景显示节点

◆ SetEnable()

void BUI::CNodeCell::SetEnable ( BOOL enable)

开启(或禁用)单元格。默认保持开启

◆ SetName()

void BUI::CNodeCell::SetName ( BeString id)

设置单元格名称id

◆ SetNodeData()

void BUI::CNodeCell::SetNodeData ( const std::shared_ptr< CNodeData > & valuedata)

设置单元格数据

◆ SetNotifyHandler()

void BUI::CNodeCell::SetNotifyHandler ( IEventHandler * notify)

设置消息通知处理者

◆ SetRect()

void BUI::CNodeCell::SetRect ( int x,
int y,
int w,
int h )

设置单元格位置矩形区域

◆ SetSyntaxAst()

void BUI::CNodeCell::SetSyntaxAst ( LPCTSTR str_script)

设置内置脚本代码

◆ ShellNodeCellAttribute()

virtual void BUI::CNodeCell::ShellNodeCellAttribute ( const BeString & str_name,
const BeString & str_value )
virtual

属性设置

BUI::CNodeSpanCell 重载.

类成员变量说明

◆ m_action

std::shared_ptr<IActionNotify> BUI::CNodeCell::m_action

◆ m_backdata

std::shared_ptr<CNodeData> BUI::CNodeCell::m_backdata

◆ m_cmd_ast

syntax_info* BUI::CNodeCell::m_cmd_ast

◆ m_name_id

BeString BUI::CNodeCell::m_name_id

◆ m_notify_handler

IEventHandler* BUI::CNodeCell::m_notify_handler

◆ m_rawdata

std::shared_ptr<CNodeData> BUI::CNodeCell::m_rawdata

◆ m_rc_cell

RECT BUI::CNodeCell::m_rc_cell

◆ m_state

ItemState BUI::CNodeCell::m_state
鄂公网安备42018502007752 鄂ICP备2024082886
Copyright © 2026 · CBlueStudio 版权所有