|
CBlueUI
C++ 跨平台跨框架的数据可视化工具
|
表格行 更多...
类 BUI::TableRow 继承关系图:Public 成员函数 | |
| TableRow (int columnCount, BeString rowData, const GColor &titleColor, const GColor &color_text) | |
| ~TableRow () | |
| CNodeSpanCell * | GetCellObject (int col) const |
| 获得单元格对象 | |
| void | SetCellObject (int nCol, std::shared_ptr< CNodeSpanCell > &objCell) |
| 设置单元格对象 | |
| BOOL | SetCellSelected (int start, int end, BOOL bSelt, BOOL bfresh=TRUE) |
| 设置单元格的选中状态,全部选中 | |
| float | GetNumber (int col) |
| 获得单元格数值 | |
| int | Size () const |
| 单元格总数 | |
| void | OnTranslateLanguage () |
| 语言切换事件处理 | |
| int | GetTableRowHeight (int h) const |
| 获得行高 | |
| void | SetNotifyHandler (IEventHandler *notify) |
| 设置消息通知处理者 notify = CTableViewUI | |
| void | SetSelectAction (BOOL is_selected, std::shared_ptr< IActionNotify > action) |
| 设置选中状态变化的动作事件 | |
| void | SetRowHeightCustom (int rowHeight) |
| 设置自定义行高,适合每行高度不一致的场景 | |
| void | OnAllocNodeCell (int nCol, int count) |
| void | OnDeleteCol (int nCol, int count) |
| BOOL | SetVisable (BOOL bShow, BOOL bfresh=TRUE) |
| 可见性 | |
| BOOL | SetSelected (BOOL bSelt, BOOL bfresh=TRUE) |
| 可选性 | |
| BOOL | SetDisable (BOOL bDisable, BOOL bfresh=TRUE) |
| 可用性 | |
| void | SwapCol (int c1, int c2) |
| 交换两列的值 | |
| void | NeedUpdateUI () |
| 激活重绘标记 | |
| BOOL | OnMessageHandler (UINT message, WPARAM wp, LPARAM lp) override |
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::IEventHandler | |
| IEventHandler () | |
| virtual | ~IEventHandler () |
| virtual BOOL | OnMessageHandler (UINT message, WPARAM wp, LPARAM lp) |
Public 属性 | |
| RECT | m_rc_cell |
| std::vector< std::shared_ptr< CNodeSpanCell > > | m_cells |
| BeString | m_text_data |
| ItemState | m_state |
| int | m_data_idx |
| int | m_custom_row_height |
| uint32_t | m_calc_pos |
| IEventHandler * | m_notify_handler |
| std::shared_ptr< IActionNotify > | m_select_action |
| std::shared_ptr< IActionNotify > | m_select_not_action |
额外继承的成员函数 | |
Protected 属性 继承自 BUI::CheckBoxMode | |
| RECT | m_rc_checkbox |
| SelectState | m_check_state |
| std::shared_ptr< IActionNotify > | m_checkbox_action |
表格行
| BUI::TableRow::TableRow | ( | int | columnCount, |
| BeString | rowData, | ||
| const GColor & | titleColor, | ||
| const GColor & | color_text | ||
| ) |
| BUI::TableRow::~TableRow | ( | ) |
| CNodeSpanCell * BUI::TableRow::GetCellObject | ( | int | col | ) | const |
获得单元格对象
| float BUI::TableRow::GetNumber | ( | int | col | ) |
获得单元格数值
| int BUI::TableRow::GetTableRowHeight | ( | int | h | ) | const |
获得行高
| void BUI::TableRow::NeedUpdateUI | ( | ) |
激活重绘标记
| void BUI::TableRow::OnAllocNodeCell | ( | int | nCol, |
| int | count | ||
| ) |
| void BUI::TableRow::OnDeleteCol | ( | int | nCol, |
| int | count | ||
| ) |
重载 BUI::IEventHandler .
| void BUI::TableRow::OnTranslateLanguage | ( | ) |
语言切换事件处理
| void BUI::TableRow::SetCellObject | ( | int | nCol, |
| std::shared_ptr< CNodeSpanCell > & | objCell | ||
| ) |
设置单元格对象
设置单元格的选中状态,全部选中
| void BUI::TableRow::SetNotifyHandler | ( | IEventHandler * | notify | ) |
设置消息通知处理者 notify = CTableViewUI
| void BUI::TableRow::SetRowHeightCustom | ( | int | rowHeight | ) |
设置自定义行高,适合每行高度不一致的场景
| void BUI::TableRow::SetSelectAction | ( | BOOL | is_selected, |
| std::shared_ptr< IActionNotify > | action | ||
| ) |
设置选中状态变化的动作事件
| int BUI::TableRow::Size | ( | ) | const |
单元格总数
| void BUI::TableRow::SwapCol | ( | int | c1, |
| int | c2 | ||
| ) |
交换两列的值
| uint32_t BUI::TableRow::m_calc_pos |
| std::vector<std::shared_ptr<CNodeSpanCell> > BUI::TableRow::m_cells |
| int BUI::TableRow::m_custom_row_height |
| int BUI::TableRow::m_data_idx |
| IEventHandler* BUI::TableRow::m_notify_handler |
| RECT BUI::TableRow::m_rc_cell |
| std::shared_ptr<IActionNotify> BUI::TableRow::m_select_action |
| std::shared_ptr<IActionNotify> BUI::TableRow::m_select_not_action |
| ItemState BUI::TableRow::m_state |
| BeString BUI::TableRow::m_text_data |