|
| PluginDataViewStateRenderer () |
|
bool | SetValue (const wxVariant &value) override |
|
bool | GetValue (wxVariant &) const override |
|
bool | Render (wxRect cell, wxDC *dc, int state) override |
|
wxSize | GetSize () const override |
|
bool | ActivateCell (const wxRect &cell, wxDataViewModel *model, const wxDataViewItem &item, unsigned col, const wxMouseEvent *mouseEvent) final |
|
|
bool | OnCellClicked (const wxRect &, wxDataViewModel *model, const wxDataViewItem &item, unsigned col, const wxMouseEvent *) override |
|
|
virtual bool | OnCellClicked (const wxRect &cell, wxDataViewModel *model, const wxDataViewItem &item, unsigned col, const wxMouseEvent *mouseEvent) |
|
Definition at line 113 of file PluginDataViewCtrl.cpp.
◆ PluginDataViewStateRenderer()
PluginDataViewStateRenderer::PluginDataViewStateRenderer |
( |
| ) |
|
|
inline |
◆ GetSize()
wxSize PluginDataViewStateRenderer::GetSize |
( |
| ) |
const |
|
inlineoverride |
◆ GetValue()
bool PluginDataViewStateRenderer::GetValue |
( |
wxVariant & |
| ) |
const |
|
inlineoverride |
◆ OnCellClicked()
bool PluginDataViewStateRenderer::OnCellClicked |
( |
const wxRect & |
, |
|
|
wxDataViewModel * |
model, |
|
|
const wxDataViewItem & |
item, |
|
|
unsigned |
col, |
|
|
const wxMouseEvent * |
|
|
) |
| |
|
inlineoverrideprivatevirtual |
◆ Render()
bool PluginDataViewStateRenderer::Render |
( |
wxRect |
cell, |
|
|
wxDC * |
dc, |
|
|
int |
state |
|
) |
| |
|
inlineoverride |
Definition at line 131 of file PluginDataViewCtrl.cpp.
132 {
134 return false;
135
136 int flags = 0;
138 flags |= wxCONTROL_CHECKED;
139 if (GetMode() != wxDATAVIEW_CELL_ACTIVATABLE ||
140 !(GetOwner()->GetOwner()->IsEnabled() && GetEnabled()))
141 {
142 flags |= wxCONTROL_DISABLED;
143 }
144 wxSize
size = cell.GetSize();
147
149 wxWindow* const win = GetOwner()->GetOwner();
150 renderer.DrawCheckBox(win, *dc, cell, flags);
151 return true;
152 }
wxSize GetSize() const override
References BasicUI::Get(), GetSize(), mValue, and size.
◆ SetValue()
bool PluginDataViewStateRenderer::SetValue |
( |
const wxVariant & |
value | ) |
|
|
inlineoverride |
◆ mValue
wxVariant PluginDataViewStateRenderer::mValue |
|
private |
The documentation for this class was generated from the following file: