#include <wx/dataview.h>

This is the event class for the wxDataViewCtrl notifications.
The following event handler macros redirect the events to member function handlers 'func' with prototypes like:
Event macros:
wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED event. wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED event. wxEVT_COMMAND_DATAVIEW_ITEM_EDITING_STARTED event. wxEVT_COMMAND_DATAVIEW_ITEM_EDITING_DONE event. wxEVT_COMMAND_DATAVIEW_ITEM_COLLAPSING event. wxEVT_COMMAND_DATAVIEW_ITEM_COLLAPSED event. wxEVT_COMMAND_DATAVIEW_ITEM_EXPANDING event. wxEVT_COMMAND_DATAVIEW_ITEM_EXPANDED event. wxEVT_COMMAND_DATAVIEW_ITEM_VALUE_CHANGED event. wxEVT_COMMAND_DATAVIEW_ITEM_CONTEXT_MENU event. wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_CLICKED event. wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_RIGHT_CLICKED event. wxEVT_COMMAND_DATAVIEW_COLUMN_SORTED event. wxEVT_COMMAND_DATAVIEW_COLUMN_REORDERED event. wxEVT_COMMAND_DATAVIEW_ITEM_BEGIN_DRAG event. wxEVT_COMMAND_DATAVIEW_ITEM_DROP_POSSIBLE event. wxEVT_COMMAND_DATAVIEW_ITEM_DROP event. wxEVT_COMMAND_DATAVIEW_CACHE_HINT event. Public Member Functions | |
| wxDataViewEvent (wxEventType commandType=wxEVT_NULL, int winid=0) | |
| Constructor. | |
| int | GetColumn () const |
| Returns the position of the column in the control or -1 if no column field was set by the event emitter. | |
| wxDataViewColumn * | GetDataViewColumn () const |
| Returns a pointer to the wxDataViewColumn from which the event was emitted or NULL. | |
| wxDataViewModel * | GetModel () const |
| Returns the wxDataViewModel associated with the event. | |
| wxPoint | GetPosition () const |
| Returns a the position of a context menu event in screen coordinates. | |
| const wxVariant & | GetValue () const |
| Returns a reference to a value. | |
| void | SetColumn (int col) |
| Sets the column index associated with this event. | |
| void | SetDataViewColumn (wxDataViewColumn *col) |
| For wxEVT_DATAVIEW_COLUMN_HEADER_CLICKED only. | |
| void | SetModel (wxDataViewModel *model) |
| Sets the dataview model associated with this event. | |
| void | SetValue (const wxVariant &value) |
| Sets the value associated with this event. | |
| void | SetDataObject (wxDataObject *obj) |
| Set wxDataObject for data transfer within a drag operation. | |
| wxDataObject * | GetDataObject () const |
| Used internally. | |
| void | SetDataFormat (const wxDataFormat &format) |
| Used internally. | |
| wxDataFormat | GetDataFormat () const |
| Gets the wxDataFormat during a drop operation. | |
| void | SetDataSize (size_t size) |
| Used internally. | |
| size_t | GetDataSize () const |
| Gets the data size for a drop data transfer. | |
| void | SetDataBuffer (void *buf) |
| Used internally. | |
| void * | GetDataBuffer () const |
| Gets the data buffer for a drop data transfer. | |
| int | GetCacheFrom () const |
| Return the first row that will be displayed. | |
| int | GetCacheTo () const |
| Return the last row that will be displayed. | |
| wxDataViewEvent::wxDataViewEvent | ( | wxEventType | commandType = wxEVT_NULL, |
|
| int | winid = 0 | |||
| ) |
Constructor.
Typically used by wxWidgets internals only.
| int wxDataViewEvent::GetCacheFrom | ( | ) | const |
Return the first row that will be displayed.
| int wxDataViewEvent::GetCacheTo | ( | ) | const |
Return the last row that will be displayed.
| int wxDataViewEvent::GetColumn | ( | ) | const |
Returns the position of the column in the control or -1 if no column field was set by the event emitter.
| void* wxDataViewEvent::GetDataBuffer | ( | ) | const |
Gets the data buffer for a drop data transfer.
| wxDataFormat wxDataViewEvent::GetDataFormat | ( | ) | const |
Gets the wxDataFormat during a drop operation.
| wxDataObject* wxDataViewEvent::GetDataObject | ( | ) | const |
Used internally.
Gets associated wxDataObject for data transfer within a drag operation.
| size_t wxDataViewEvent::GetDataSize | ( | ) | const |
Gets the data size for a drop data transfer.
| wxDataViewColumn* wxDataViewEvent::GetDataViewColumn | ( | ) | const |
Returns a pointer to the wxDataViewColumn from which the event was emitted or NULL.
| wxDataViewModel* wxDataViewEvent::GetModel | ( | ) | const |
Returns the wxDataViewModel associated with the event.
| wxPoint wxDataViewEvent::GetPosition | ( | ) | const |
Returns a the position of a context menu event in screen coordinates.
| const wxVariant& wxDataViewEvent::GetValue | ( | ) | const |
Returns a reference to a value.
| void wxDataViewEvent::SetColumn | ( | int | col | ) |
Sets the column index associated with this event.
| void wxDataViewEvent::SetDataBuffer | ( | void * | buf | ) |
Used internally.
Sets the data buffer for a drop data transfer.
| void wxDataViewEvent::SetDataFormat | ( | const wxDataFormat & | format | ) |
Used internally.
Sets the wxDataFormat during a drop operation.
| void wxDataViewEvent::SetDataObject | ( | wxDataObject * | obj | ) |
Set wxDataObject for data transfer within a drag operation.
| void wxDataViewEvent::SetDataSize | ( | size_t | size | ) |
Used internally.
Sets the data size for a drop data transfer.
| void wxDataViewEvent::SetDataViewColumn | ( | wxDataViewColumn * | col | ) |
For wxEVT_DATAVIEW_COLUMN_HEADER_CLICKED only.
| void wxDataViewEvent::SetModel | ( | wxDataViewModel * | model | ) |
Sets the dataview model associated with this event.
| void wxDataViewEvent::SetValue | ( | const wxVariant & | value | ) |
Sets the value associated with this event.
|
[ top ] |