X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/55d47fc2b16dde5ab4d23a727e818a0cdf492f1c..1b7751aaa9a86d76a850b9267bc0c201e3cea30f:/interface/wx/headerctrl.h?ds=inline diff --git a/interface/wx/headerctrl.h b/interface/wx/headerctrl.h index 06efe8e7b2..0903bd6049 100644 --- a/interface/wx/headerctrl.h +++ b/interface/wx/headerctrl.h @@ -675,43 +675,49 @@ protected: class wxHeaderCtrlEvent : public wxNotifyEvent { public: + wxHeaderCtrlEvent(wxEventType commandType = wxEVT_NULL, int winid = 0); + wxHeaderCtrlEvent(const wxHeaderCtrlEvent& event); + /** Return the index of the column affected by this event. This method can be called for all header control events. */ int GetColumn() const; - + void SetColumn(int col); + /** Return the current width of the column. This method can only be called for the dragging events. */ int GetWidth() const; - + void SetWidth(int width); + /** Return the new order of the column. - This method can only be called for end reorder event for which it + This method can only be called for a reorder event for which it indicates the tentative new position for the column GetColumn() selected by the user. If the event is not vetoed, this will become the new column position in wxHeaderCtrl::GetColumnsOrder(). */ unsigned int GetNewOrder() const; + void SetNewOrder(unsigned int order); }; -wxEventType wxEVT_COMMAND_HEADER_CLICK; -wxEventType wxEVT_COMMAND_HEADER_RIGHT_CLICK; -wxEventType wxEVT_COMMAND_HEADER_MIDDLE_CLICK; -wxEventType wxEVT_COMMAND_HEADER_DCLICK; -wxEventType wxEVT_COMMAND_HEADER_RIGHT_DCLICK; -wxEventType wxEVT_COMMAND_HEADER_MIDDLE_DCLICK; -wxEventType wxEVT_COMMAND_HEADER_SEPARATOR_DCLICK; -wxEventType wxEVT_COMMAND_HEADER_BEGIN_RESIZE; -wxEventType wxEVT_COMMAND_HEADER_RESIZING; -wxEventType wxEVT_COMMAND_HEADER_END_RESIZE; -wxEventType wxEVT_COMMAND_HEADER_BEGIN_REORDER; -wxEventType wxEVT_COMMAND_HEADER_END_REORDER; -wxEventType wxEVT_COMMAND_HEADER_DRAGGING_CANCELLED; +wxEventType wxEVT_HEADER_CLICK; +wxEventType wxEVT_HEADER_RIGHT_CLICK; +wxEventType wxEVT_HEADER_MIDDLE_CLICK; +wxEventType wxEVT_HEADER_DCLICK; +wxEventType wxEVT_HEADER_RIGHT_DCLICK; +wxEventType wxEVT_HEADER_MIDDLE_DCLICK; +wxEventType wxEVT_HEADER_SEPARATOR_DCLICK; +wxEventType wxEVT_HEADER_BEGIN_RESIZE; +wxEventType wxEVT_HEADER_RESIZING; +wxEventType wxEVT_HEADER_END_RESIZE; +wxEventType wxEVT_HEADER_BEGIN_REORDER; +wxEventType wxEVT_HEADER_END_REORDER; +wxEventType wxEVT_HEADER_DRAGGING_CANCELLED;