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

Public 成员函数

 CTreeModelNode ()
 
 ~CTreeModelNode ()
 
BOOL IsVisable (UINT mask) const
 
void SetCellVisable (BOOL show)
 设置节点可见性
 
void SetCellMatched (BOOL matched)
 设置节点匹配状态
 
void SetClickAction (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 (std::shared_ptr< IActionNotify > &action)
 
- Public 成员函数 继承自 BUI::CTreeRowCell
 CTreeRowCell ()
 
 ~CTreeRowCell ()
 
UINT Size () const
 单元格总数
 
BOOL InsertDataCell (int column, std::shared_ptr< CNodeSpanCell > &cell)
 插入单元格
 
void AppendDataCell (std::shared_ptr< CNodeSpanCell > &cell)
 在末尾添加单元格
 
void RemoveDataCell (int column)
 删除单元格
 
void Clear ()
 清除所有单元格
 
CNodeSpanCellGetSubCell (int col)
 获得单元格
 
void OnAllocNodeCell (int nCol, int count)
 
void OnDeleteCol (int nCol, int count)
 
void OnNodeCollapsed ()
 
void OnSetNodeRect (int col, int x, int y, int w, int h)
 
void OnDrawTreeCell (int col, ISurface *pSurface, RECT rcCell, const GColor &color_text, UINT textAlignFlag)
 
BOOL SetCellSelected (int start, int end, BOOL bSelt)
 

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
 
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 ( std::shared_ptr< IActionNotify action)

设置节点单击事件

◆ SetExpandRect()

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

设置扩展按钮矩形区域

类成员变量说明

◆ 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

◆ 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

◆ visable_flag

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