//---------------------------------------------------------------------------
-%{
- DECLARE_DEF_STRING(FileSelectorPromptStr);
- DECLARE_DEF_STRING(FileSelectorDefaultWildcardStr);
- DECLARE_DEF_STRING(DirSelectorPromptStr);
-%}
+MAKE_CONST_WXSTRING(FileSelectorPromptStr);
+MAKE_CONST_WXSTRING(FileSelectorDefaultWildcardStr);
+MAKE_CONST_WXSTRING(DirSelectorPromptStr);
//---------------------------------------------------------------------------
%newgroup;
void wxEndBusyCursor();
long wxGetElapsedTime(bool resetTimer = True);
-void wxGetMousePosition(int* OUTPUT, int* OUTPUT);
+
+DocDeclA(
+ void, wxGetMousePosition(int* OUTPUT, int* OUTPUT),
+ "GetMousePosition() -> (x,y)");
+
bool wxIsBusy();
wxString wxNow();
bool wxShell(const wxString& command = wxPyEmptyString);
void wxStartTimer();
-int wxGetOsVersion(int *OUTPUT, int *OUTPUT);
+
+DocDeclA(
+ int, wxGetOsVersion(int *OUTPUT, int *OUTPUT),
+ "GetOsVersion() -> (platform, major, minor)");
+
wxString wxGetOsDescription();
#if defined(__WXMSW__) || defined(__WXMAC__)
#else
%inline %{
long wxGetFreeMemory()
- { PyErr_SetNone(PyExc_NotImplementedError); return 0; }
+ { wxPyRaiseNotImplemented(); return 0; }
%}
#endif
int wxDisplayDepth();
int wxGetDisplayDepth();
-void wxDisplaySize(int* OUTPUT, int* OUTPUT);
+DocDeclA(
+ void, wxDisplaySize(int* OUTPUT, int* OUTPUT),
+ "DisplaySize() -> (width, height)");
wxSize wxGetDisplaySize();
-void wxDisplaySizeMM(int* OUTPUT, int* OUTPUT);
+DocDeclA(
+ void, wxDisplaySizeMM(int* OUTPUT, int* OUTPUT),
+ "DisplaySizeMM() -> (width, height)");
wxSize wxGetDisplaySizeMM();
-void wxClientDisplayRect(int *OUTPUT, int *OUTPUT, int *OUTPUT, int *OUTPUT);
+DocDeclA(
+ void, wxClientDisplayRect(int *OUTPUT, int *OUTPUT, int *OUTPUT, int *OUTPUT),
+ "ClientDisplayRect() -> (x, y, width, height)");
wxRect wxGetClientDisplayRect();
void wxSetCursor(wxCursor& cursor);
+
+// Get the state of a key (true if pressed, false if not)
+// This is generally most useful getting the state of
+// the modifier or toggle keys.
+bool wxGetKeyState(wxKeyCode key);
+
+
//---------------------------------------------------------------------------
#if defined(__WXMSW__) || defined(__WXMAC__)