Add wxEvent::GetEventUserData() and improve user data documentation.
Provide a public and documented accessor for wxEvent::m_callbackUserData. Also document better the user data semantics and how it can be used. Closes #14748. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72693 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -930,6 +930,10 @@ public:
|
||||
int GetId() const { return m_id; }
|
||||
void SetId(int Id) { m_id = Id; }
|
||||
|
||||
// Returns the user data optionally associated with the event handler when
|
||||
// using Connect() or Bind().
|
||||
wxObject *GetEventUserData() const { return m_callbackUserData; }
|
||||
|
||||
// Can instruct event processor that we wish to ignore this event
|
||||
// (treat as if the event table entry had not been found): this must be done
|
||||
// to allow the event processing by the base classes (calling event.Skip()
|
||||
|
Reference in New Issue
Block a user