]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/misc2.i
fixed (?) problems with assignment operator in wxTreeItemId
[wxWidgets.git] / wxPython / src / misc2.i
index fe7a1bfb50b965cd1d82794ad639e011abcc0d51..e68acb89f982891085e5dbff81dc95f0f8867585 100644 (file)
 %import events.i
 %import streams.i
 
+%{
+    static wxString wxPyEmptyStr("");
+%}
+
 //---------------------------------------------------------------------------
 // Dialog Functions
 
@@ -57,6 +61,11 @@ wxString wxGetTextFromUser(const wxString& message,
                            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,
@@ -93,13 +102,22 @@ long wxGetNumberFromUser(const wxString& message,
                          long value,
                          long min = 0, long max = 100,
                          wxWindow *parent = NULL,
-                         const wxPoint& pos = wxPyDefaultPosition);
+                         const wxPoint& pos = wxDefaultPosition);
 
 //---------------------------------------------------------------------------
 // GDI Functions
 
 bool wxColourDisplay();
+
 int wxDisplayDepth();
+int wxGetDisplayDepth();
+
+void wxDisplaySize(int* OUTPUT, int* OUTPUT);
+wxSize wxGetDisplaySize();
+
+void wxDisplaySizeMM(int* OUTPUT, int* OUTPUT);
+wxSize wxGetDisplaySizeMM();
+
 void wxSetCursor(wxCursor& cursor);
 
 //----------------------------------------------------------------------
@@ -613,6 +631,13 @@ void wxLogSysError(const char *szFormat);
 
 //----------------------------------------------------------------------
 
+
+enum {
+    /* event type */
+    wxEVT_END_PROCESS
+};
+
+
 class wxProcessEvent : public wxEvent {
 public:
     wxProcessEvent(int id = 0, int pid = 0, int exitcode = 0);
@@ -670,6 +695,7 @@ long wxExecute(const wxString& command,
 
 //----------------------------------------------------------------------
 
+#ifdef __WXMSW__
 class wxJoystick {
 public:
     wxJoystick(int joystick = wxJOYSTICK1);
@@ -719,6 +745,7 @@ public:
     bool SetCapture(wxWindow* win, int pollingFreq = 0);
     bool ReleaseCapture();
 };
+#endif
 
 //----------------------------------------------------------------------
 //----------------------------------------------------------------------