X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4d9de11075ad9523c34d7c8401b8eea9d35e57d0..dbe6f5f00beefc0901945758693b6d79295904ad:/wxPython/src/_app.i diff --git a/wxPython/src/_app.i b/wxPython/src/_app.i index 4ffdbe075d..4c7ff5f139 100644 --- a/wxPython/src/_app.i +++ b/wxPython/src/_app.i @@ -153,6 +153,11 @@ all top level windows have been closed and destroyed.", ""); :see: `wx.Exit`", ""); + DocDeclStr( + virtual wxLayoutDirection , GetLayoutDirection() const, + "Return the layout direction for the current locale.", ""); + + DocDeclStr( virtual void, ExitMainLoop(), "Exit the main GUI loop during the next iteration of the main @@ -262,13 +267,13 @@ systems where more than one is available, (Sun, SGI, XFree86 4, etc.)", ""); "Get the current OnAssert behaviour setting.", ""); - static bool GetMacSupportPCMenuShortcuts(); + static bool GetMacSupportPCMenuShortcuts(); // TODO, deprecate this static long GetMacAboutMenuItemId(); static long GetMacPreferencesMenuItemId(); static long GetMacExitMenuItemId(); static wxString GetMacHelpMenuTitleName(); - static void SetMacSupportPCMenuShortcuts(bool val); + static void SetMacSupportPCMenuShortcuts(bool val); // TODO, deprecate this static void SetMacAboutMenuItemId(long val); static void SetMacPreferencesMenuItemId(long val); static void SetMacExitMenuItemId(long val); @@ -292,7 +297,7 @@ it wasn't found at all. Raises an exception on non-Windows platforms.", ""); #endif %extend { - DocStr(DisplayAvailable, + DocStr(IsDisplayAvailable, "Tests if it is possible to create a GUI in the current environment. This will mean different things on the different platforms. @@ -307,10 +312,24 @@ This will mean different things on the different platforms. * On MS Windows... ", ""); - static bool DisplayAvailable() { + static bool IsDisplayAvailable() { return wxPyTestDisplayAvailable(); } } + + + %property(AppName, GetAppName, SetAppName, doc="See `GetAppName` and `SetAppName`"); + %property(AssertMode, GetAssertMode, SetAssertMode, doc="See `GetAssertMode` and `SetAssertMode`"); + %property(ClassName, GetClassName, SetClassName, doc="See `GetClassName` and `SetClassName`"); + %property(ExitOnFrameDelete, GetExitOnFrameDelete, SetExitOnFrameDelete, doc="See `GetExitOnFrameDelete` and `SetExitOnFrameDelete`"); + %property(LayoutDirection, GetLayoutDirection, doc="See `GetLayoutDirection`"); + %property(PrintMode, GetPrintMode, SetPrintMode, doc="See `GetPrintMode` and `SetPrintMode`"); + %property(TopWindow, GetTopWindow, SetTopWindow, doc="See `GetTopWindow` and `SetTopWindow`"); + %property(Traits, GetTraits, doc="See `GetTraits`"); + %property(UseBestVisual, GetUseBestVisual, SetUseBestVisual, doc="See `GetUseBestVisual` and `SetUseBestVisual`"); + %property(VendorName, GetVendorName, SetVendorName, doc="See `GetVendorName` and `SetVendorName`"); + + %property(Active, IsActive); };