added static wxPlatformInfo::Get() and use it (patch 1549176)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
		| @@ -110,7 +110,8 @@ public: | ||||
|     virtual GSocketGUIFunctionsTable* GetSocketGUIFunctionsTable() = 0; | ||||
| #endif | ||||
|  | ||||
|     // return information about the (native) toolkit currently used; | ||||
|     // return information about the (native) toolkit currently used and its | ||||
|     // runtime (not compile-time) version. | ||||
|     // returns wxPORT_BASE for console applications and one of the remaining | ||||
|     // wxPORT_* values for GUI applications. | ||||
|     virtual wxPortId GetToolkitVersion(int *majVer, int *minVer) const = 0; | ||||
|   | ||||
| @@ -130,6 +130,11 @@ public: | ||||
|     bool operator!=(const wxPlatformInfo &t) const | ||||
|         { return !(*this == t); } | ||||
|  | ||||
|     // Gets a wxPlatformInfo already initialized with the values for | ||||
|     // the currently running platform. | ||||
|     static const wxPlatformInfo& Get(); | ||||
|  | ||||
|  | ||||
|  | ||||
|     // string -> enum conversions | ||||
|     // --------------------------------- | ||||
| @@ -246,6 +251,9 @@ protected: | ||||
|         return majorCur > major || (majorCur == major && minorCur >= minor); | ||||
|     } | ||||
|  | ||||
|     void InitForCurrentPlatform(); | ||||
|  | ||||
|  | ||||
|     // OS stuff | ||||
|     // ----------------- | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user