add a wxEventType argument to wxThreadEvent for coherency with other event classes; rewrite its Clone() function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58661 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2544,11 +2544,8 @@ class wxThreadEvent : public wxCommandEvent
|
||||
public:
|
||||
/**
|
||||
Constructor.
|
||||
|
||||
Initializes the event type to @c wxEVT_THREAD (but you can change it
|
||||
using wxEvent::SetEventType.
|
||||
*/
|
||||
wxThreadEvent(int id = wxID_ANY);
|
||||
wxThreadEvent(wxEventType eventType = wxEVT_COMMAND_THREAD, int id = wxID_ANY);
|
||||
|
||||
/**
|
||||
Clones this event making sure that all internal members which use
|
||||
@@ -2560,8 +2557,8 @@ public:
|
||||
/**
|
||||
Returns @c wxEVT_CATEGORY_THREAD.
|
||||
|
||||
This is important to avoid that calling wxApp::Yield() thread events
|
||||
gets processed when this is unwanted:
|
||||
This is important to avoid unwanted processing of thread events
|
||||
when calling wxApp::YieldFor().
|
||||
*/
|
||||
virtual wxEventCategory GetEventCategory() const;
|
||||
};
|
||||
|
Reference in New Issue
Block a user