CBlueUI
C++ 跨平台跨框架的数据可视化工具
|
表格行 更多...
Public 成员函数 | |
TableRow (int columnCount, BeString rowData, COLORREF titleColor, COLORREF textColor) | |
~TableRow () | |
CNodeSpanCell * | GetCellObject (int col) const |
int | GetTableRowHeight (int h) const |
void | SetNotifyHandler (IEventHandler *notify) |
设置消息通知处理者 notify = CTableViewUI | |
void | SetSelectAction (std::shared_ptr< IActionNotify > action) |
设置选中状态变化的动作事件 | |
void | SetRowHeightCustom (int rowHeight) |
设置自定义行高,适合每行高度不一致的场景 | |
void | SetCellObject (int nCol, std::shared_ptr< CNodeSpanCell > &objCell) |
// 设置单元格对象 | |
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) |
void | SwapCol (int c1, int c2) |
BOOL | SetCellSelected (int start, int end, BOOL bSelt, BOOL bfresh=TRUE) |
BOOL | SetDisable (BOOL bDisable, BOOL bfresh=TRUE) |
void | OnTranslateLanguage () |
int | Size () const |
void | NeedUpdateUI () |
BOOL | OnMessageHandler (UINT message, WPARAM wp, LPARAM lp) override |
![]() | |
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) |
![]() | |
IEventHandler () | |
virtual | ~IEventHandler () |
virtual BOOL | OnMessageHandler (UINT message, WPARAM wp, LPARAM lp) |
Public 属性 | |
RECT | m_rcCell |
std::vector< std::shared_ptr< CNodeSpanCell > > | m_datacells |
BeString | m_szData |
ItemState | m_state |
int | m_nDataPos |
int | m_nCustomRowHeight |
uint32_t | m_nCalcPos |
IEventHandler * | m_notifyHandler |
std::shared_ptr< IActionNotify > | m_selectAction |
额外继承的成员函数 | |
![]() | |
RECT | m_rcCheckBox |
SelectState | m_checkState |
std::shared_ptr< IActionNotify > | m_checkBoxAction |
表格行
BUI::TableRow::TableRow | ( | int | columnCount, |
BeString | rowData, | ||
COLORREF | titleColor, | ||
COLORREF | textColor | ||
) |
BUI::TableRow::~TableRow | ( | ) |
CNodeSpanCell * BUI::TableRow::GetCellObject | ( | int | col | ) | const |
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 | ( | std::shared_ptr< IActionNotify > | action | ) |
设置选中状态变化的动作事件
int BUI::TableRow::Size | ( | ) | const |
void BUI::TableRow::SwapCol | ( | int | c1, |
int | c2 | ||
) |
std::vector<std::shared_ptr<CNodeSpanCell> > BUI::TableRow::m_datacells |
uint32_t BUI::TableRow::m_nCalcPos |
int BUI::TableRow::m_nCustomRowHeight |
int BUI::TableRow::m_nDataPos |
IEventHandler* BUI::TableRow::m_notifyHandler |
RECT BUI::TableRow::m_rcCell |
std::shared_ptr<IActionNotify> BUI::TableRow::m_selectAction |
ItemState BUI::TableRow::m_state |
BeString BUI::TableRow::m_szData |