changed return type of wxCommandEvent::GetClientObject() to wxClientData * from void * and documented it (patch 918655)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -137,6 +137,13 @@ Deprecated, use \helpref{IsChecked}{wxcommandeventischecked} instead.
|
|||||||
Returns client data pointer for a listbox or choice selection event
|
Returns client data pointer for a listbox or choice selection event
|
||||||
(not valid for a deselection).
|
(not valid for a deselection).
|
||||||
|
|
||||||
|
\membersection{wxCommandEvent::GetClientObject}
|
||||||
|
|
||||||
|
\func{wxClientData *}{GetClientObject}{\void}
|
||||||
|
|
||||||
|
Returns client object pointer for a listbox or choice selection event
|
||||||
|
(not valid for a deselection).
|
||||||
|
|
||||||
\membersection{wxCommandEvent::GetExtraLong}
|
\membersection{wxCommandEvent::GetExtraLong}
|
||||||
|
|
||||||
\func{long}{GetExtraLong}{\void}
|
\func{long}{GetExtraLong}{\void}
|
||||||
@@ -186,6 +193,15 @@ is a deselection.
|
|||||||
|
|
||||||
Sets the client data for this event.
|
Sets the client data for this event.
|
||||||
|
|
||||||
|
\membersection{wxCommandEvent::SetClientObject}
|
||||||
|
|
||||||
|
\func{void}{SetClientObject}{\param{wxClientData*}{ clientObject}}
|
||||||
|
|
||||||
|
Sets the client object for this event. The client object is \emph{not} owned by the event
|
||||||
|
object and the event object will not delete the client object in its destructor.
|
||||||
|
The client object must be owned and deleted by another object (e.g. a control)
|
||||||
|
that has longer life time than the event object.
|
||||||
|
|
||||||
\membersection{wxCommandEvent::SetExtraLong}
|
\membersection{wxCommandEvent::SetExtraLong}
|
||||||
|
|
||||||
\func{void}{SetExtraLong}{\param{int}{ extraLong}}
|
\func{void}{SetExtraLong}{\param{int}{ extraLong}}
|
||||||
|
@@ -502,7 +502,7 @@ public:
|
|||||||
|
|
||||||
// Set/Get client object from controls
|
// Set/Get client object from controls
|
||||||
void SetClientObject(wxClientData* clientObject) { m_clientObject = clientObject; }
|
void SetClientObject(wxClientData* clientObject) { m_clientObject = clientObject; }
|
||||||
void *GetClientObject() const { return m_clientObject; }
|
wxClientData *GetClientObject() const { return m_clientObject; }
|
||||||
|
|
||||||
// Get listbox selection if single-choice
|
// Get listbox selection if single-choice
|
||||||
int GetSelection() const { return m_commandInt; }
|
int GetSelection() const { return m_commandInt; }
|
||||||
|
Reference in New Issue
Block a user