1//--------------------------------------------------------------------------- 2// This file is generated by wxPython's SIP generator. Do not edit by hand. 3// 4// Copyright: (c) 2018 by Total Control Software 5// License: wxWindows License 6// 7// This file will be included by _core.sip 8// 9//--------------------------------------------------------------------------- 10 11//--------------------------------------------------------------------------- 12 13class wxAppTraits /Abstract/ 14{ 15 %Docstring 16 The wxAppTraits class defines various configurable aspects of a wxApp. 17 %End 18 %TypeHeaderCode 19 #include <wx/apptrait.h> 20 %End 21 22public: 23 virtual 24 wxConfigBase * CreateConfig() /Factory/; 25 %Docstring 26 CreateConfig() -> ConfigBase 27 28 Called by wxWidgets to create the default configuration object for the 29 application. 30 %End 31 32 virtual 33 wxEventLoopBase * CreateEventLoop() = 0 /Factory/; 34 %Docstring 35 CreateEventLoop() -> EventLoopBase 36 37 Used by wxWidgets to create the main event loop used by 38 wxApp::OnRun(). 39 %End 40 41 virtual 42 wxLog * CreateLogTarget() = 0 /Factory/; 43 %Docstring 44 CreateLogTarget() -> Log 45 46 Creates a wxLog class for the application to use for logging errors. 47 %End 48 49 virtual 50 wxString GetDesktopEnvironment() const = 0; 51 %Docstring 52 GetDesktopEnvironment() -> String 53 54 This method returns the name of the desktop environment currently 55 running in a Unix desktop. 56 %End 57 58 virtual 59 wxStandardPaths & GetStandardPaths(); 60 %Docstring 61 GetStandardPaths() -> StandardPaths 62 63 Returns the wxStandardPaths object for the application. 64 %End 65 66 virtual 67 wxPortId GetToolkitVersion( 68 int * major = NULL, 69 int * minor = NULL 70 ) const = 0; 71 %Docstring 72 GetToolkitVersion(major=None, minor=None) -> PortId 73 74 Returns the wxWidgets port ID used by the running program and 75 eventually fills the given pointers with the values of the major and 76 minor digits of the native toolkit currently used. 77 %End 78 79 virtual 80 bool HasStderr() = 0; 81 %Docstring 82 HasStderr() -> bool 83 84 Returns true if fprintf(stderr) goes somewhere, false otherwise. 85 %End 86 87 virtual 88 bool IsUsingUniversalWidgets() const = 0; 89 %Docstring 90 IsUsingUniversalWidgets() -> bool 91 92 Returns true if the library was built as wxUniversal. 93 %End 94 95 virtual 96 bool ShowAssertDialog( 97 const wxString & msg 98 ) = 0; 99 %Docstring 100 ShowAssertDialog(msg) -> bool 101 102 Shows the assert dialog with the specified message in GUI mode or just 103 prints the string to stderr in console mode. 104 %End 105 106 public: 107 108 109 %Property(name=DesktopEnvironment, get=GetDesktopEnvironment) 110 %Property(name=StandardPaths, get=GetStandardPaths) 111 %Property(name=ToolkitVersion, get=GetToolkitVersion) 112}; // end of class wxAppTraits 113 114 115 116//--------------------------------------------------------------------------- 117 118