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

Public 成员函数

 CTreeModelNode ()
 ~CTreeModelNode ()
void SetUserDataPtr (void *data)
 设置用户数据指针
void * UserDataPtr ()
 获得用户数据指针
BOOL IsVisable (UINT mask) const
void SetCellVisable (BOOL show)
 设置节点可见性
void SetCellMatched (BOOL matched)
 设置节点匹配状态
void SetClickAction (const std::shared_ptr< IActionNotify > &action)
 设置节点单击事件
void SetExpandRect (int x, int y, int w, int h)
 设置扩展按钮矩形区域
BOOL PtInExpandRect (POINT pt)
 鼠标命中测试扩展按钮
int NodeDepth () const
 节点深度
void OnTranslateLanguage ()
 语言切换
BOOL IsHasChild ()
Public 成员函数 继承自 BUI::CheckBoxMode
 CheckBoxMode ()
 ~CheckBoxMode ()
void SetCheckState (SelectState state)
SelectState CheckState () const
void SetCheckBoxRect (int x, int y, int w, int h)
BOOL PtInCheckBox (POINT pt) const
RECT CheckBoxRect () const
void SetCheckBoxAction (const std::shared_ptr< IActionNotify > &action)
Public 成员函数 继承自 BUI::CTreeRowCell
 CTreeRowCell ()
 ~CTreeRowCell ()
UINT Size () const
 单元格总数
BOOL InsertDataCell (int column, const std::shared_ptr< CNodeSpanCell > &cell)
 插入单元格
void AppendDataCell (const std::shared_ptr< CNodeSpanCell > &cell)
 在末尾添加单元格
void RemoveDataCell (int column)
 删除单元格
void Clear ()
 清除所有单元格
CNodeSpanCellGetSubCell (int col)
 获得单元格
void OnAllocNodeCell (int idx_col, int count)
void OnDeleteCol (int idx_col, int count)
void OnNodeCollapsed ()
void OnSetNodeRect (int col, int x, int y, int w, int h)
void OnDrawTreeCell (int col, ISurface *surface, RECT rc_cell, const GColor &color_text, UINT text_align)
BOOL SetCellSelected (int start, int end, BOOL is_select)

Public 属性

RECT rc_row
RECT rc_expand
BOOL is_collapsed
UINT visable_flag
int context_x
int row_y
int depth
int line_number
ItemState m_state
BeString name_id
void * user_data_ptr
CTreeModelNodeprev
CTreeModelNodenext
CTreeModelNodeparent
CTreeModelNodefirst_child
CTreeModelNodelast_child
CTreeModelNodeprev_sibling
CTreeModelNodenext_sibling
std::shared_ptr< IActionNotifyclick_action

额外继承的成员函数

Protected 属性 继承自 BUI::CheckBoxMode
RECT m_rc_checkbox
SelectState m_check_state
std::shared_ptr< IActionNotifym_checkbox_action
Protected 属性 继承自 BUI::CTreeRowCell
std::vector< std::shared_ptr< CNodeSpanCell > > m_row_of_cells

构造及析构函数说明

◆ CTreeModelNode()

BUI::CTreeModelNode::CTreeModelNode ( )

◆ ~CTreeModelNode()

BUI::CTreeModelNode::~CTreeModelNode ( )

成员函数说明

◆ IsHasChild()

BOOL BUI::CTreeModelNode::IsHasChild ( )

◆ IsVisable()

BOOL BUI::CTreeModelNode::IsVisable ( UINT mask) const

◆ NodeDepth()

int BUI::CTreeModelNode::NodeDepth ( ) const

节点深度

◆ OnTranslateLanguage()

void BUI::CTreeModelNode::OnTranslateLanguage ( )

语言切换

◆ PtInExpandRect()

BOOL BUI::CTreeModelNode::PtInExpandRect ( POINT pt)

鼠标命中测试扩展按钮

◆ SetCellMatched()

void BUI::CTreeModelNode::SetCellMatched ( BOOL matched)

设置节点匹配状态

◆ SetCellVisable()

void BUI::CTreeModelNode::SetCellVisable ( BOOL show)

设置节点可见性

◆ SetClickAction()

void BUI::CTreeModelNode::SetClickAction ( const std::shared_ptr< IActionNotify > & action)

设置节点单击事件

◆ SetExpandRect()

void BUI::CTreeModelNode::SetExpandRect ( int x,
int y,
int w,
int h )

设置扩展按钮矩形区域

◆ SetUserDataPtr()

void BUI::CTreeModelNode::SetUserDataPtr ( void * data)

设置用户数据指针

◆ UserDataPtr()

void * BUI::CTreeModelNode::UserDataPtr ( )

获得用户数据指针

类成员变量说明

◆ click_action

std::shared_ptr<IActionNotify> BUI::CTreeModelNode::click_action

◆ context_x

int BUI::CTreeModelNode::context_x

◆ depth

int BUI::CTreeModelNode::depth

◆ first_child

CTreeModelNode* BUI::CTreeModelNode::first_child

◆ is_collapsed

BOOL BUI::CTreeModelNode::is_collapsed

◆ last_child

CTreeModelNode* BUI::CTreeModelNode::last_child

◆ line_number

int BUI::CTreeModelNode::line_number

◆ m_state

ItemState BUI::CTreeModelNode::m_state

◆ name_id

BeString BUI::CTreeModelNode::name_id

◆ next

CTreeModelNode* BUI::CTreeModelNode::next

◆ next_sibling

CTreeModelNode* BUI::CTreeModelNode::next_sibling

◆ parent

CTreeModelNode* BUI::CTreeModelNode::parent

◆ prev

CTreeModelNode* BUI::CTreeModelNode::prev

◆ prev_sibling

CTreeModelNode* BUI::CTreeModelNode::prev_sibling

◆ rc_expand

RECT BUI::CTreeModelNode::rc_expand

◆ rc_row

RECT BUI::CTreeModelNode::rc_row

◆ row_y

int BUI::CTreeModelNode::row_y

◆ user_data_ptr

void* BUI::CTreeModelNode::user_data_ptr

◆ visable_flag

UINT BUI::CTreeModelNode::visable_flag
鄂公网安备42018502007752 鄂ICP备2024082886
Copyright © 2026 · CBlueStudio 版权所有