%import events.i
%import streams.i
+%{
+ static wxString wxPyEmptyStr("");
+%}
+
//---------------------------------------------------------------------------
// Dialog Functions
int x = -1, int y = -1,
bool centre = TRUE);
+wxString wxGetPasswordFromUser(const wxString& message,
+ const wxString& caption = wxPyEmptyStr,
+ const wxString& default_value = wxPyEmptyStr,
+ wxWindow *parent = NULL);
+
// TODO: Need to custom wrap this one...
// int wxGetMultipleChoice(char* message, char* caption,
long value,
long min = 0, long max = 100,
wxWindow *parent = NULL,
- const wxPoint& pos = wxPyDefaultPosition);
+ const wxPoint& pos = wxDefaultPosition);
//---------------------------------------------------------------------------
// GDI Functions
void wxDisplaySize(int* OUTPUT, int* OUTPUT);
wxSize wxGetDisplaySize();
+
void wxDisplaySizeMM(int* OUTPUT, int* OUTPUT);
wxSize wxGetDisplaySizeMM();
//----------------------------------------------------------------------
+bool wxSafeYield(wxWindow* win=NULL);
void wxPostEvent(wxEvtHandler *dest, wxEvent& event);
void wxWakeUpIdle();
-bool wxSafeYield(wxWindow* win=NULL);
+
+void wxWakeUpMainThread();
+void wxMutexGuiEnter();
+void wxMutexGuiLeave();
+
+
+class wxMutexGuiLocker {
+public:
+ wxMutexGuiLocker();
+ ~wxMutexGuiLocker();
+};
+
+
+%inline %{
+ bool wxThread_IsMain() {
+ return wxThread::IsMain();
+ }
+%}
//----------------------------------------------------------------------
//----------------------------------------------------------------------
+
+enum {
+ /* event type */
+ wxEVT_END_PROCESS
+};
+
+
class wxProcessEvent : public wxEvent {
public:
wxProcessEvent(int id = 0, int pid = 0, int exitcode = 0);