wxSystemSettings allows the application to ask for details about the system.
This can include settings such as standard colours, fonts, and user interface element sizes.
|Default constructor. More...|
|Public Member Functions inherited from wxObject|
|Default ctor; initializes to NULL the internal reference data. More...|
|wxObject (const wxObject &other)|
|Copy ctor. More...|
|virtual wxClassInfo *||GetClassInfo () const|
|This virtual function is redefined for every class that requires run-time type information, when using the wxDECLARE_CLASS macro (or similar). More...|
|wxObjectRefData *||GetRefData () const|
|Returns the wxObject::m_refData pointer, i.e. the data referenced by this object. More...|
|bool||IsKindOf (const wxClassInfo *info) const|
|Determines whether this class is a subclass of (or the same class as) the given class. More...|
|bool||IsSameAs (const wxObject &obj) const|
|Returns true if this object has the same data pointer as obj. More...|
|void||Ref (const wxObject &clone)|
|Makes this object refer to the data in clone. More...|
|void||SetRefData (wxObjectRefData *data)|
|Sets the wxObject::m_refData pointer. More...|
|Decrements the reference count in the associated data, and if it is zero, deletes the data. More...|
|This is the same of AllocExclusive() but this method is public. More...|
|void||operator delete (void *buf)|
|The delete operator is defined for debugging versions of the library only, when the identifier |
|void *||operator new (size_t size, const wxString &filename=NULL, int lineNum=0)|
|The new operator is defined for debugging versions of the library only, when the identifier |
|static wxColour||GetColour (wxSystemColour index)|
|Returns a system colour. More...|
|static wxFont||GetFont (wxSystemFont index)|
|Returns a system font. More...|
|static int||GetMetric (wxSystemMetric index, wxWindow *win=NULL)|
|Returns the value of a system metric, or -1 if the metric is not supported on the current system. More...|
|static wxSystemScreenType||GetScreenType ()|
|Returns the screen type. More...|
|static bool||HasFeature (wxSystemFeature index)|
|Returns true if the port has certain feature. More...|
|Protected Member Functions inherited from wxObject|
|Ensure that this object's data is not shared with any other object. More...|
|virtual wxObjectRefData *||CreateRefData () const|
|Creates a new instance of the wxObjectRefData-derived class specific to this object and returns it. More...|
|virtual wxObjectRefData *||CloneRefData (const wxObjectRefData *data) const|
|Creates a new instance of the wxObjectRefData-derived class specific to this object and initializes it copying data. More...|
|Protected Attributes inherited from wxObject|
|Pointer to an object which is the object's reference-counted data. More...|
You don't need to create an instance of wxSystemSettings since all of its functions are static.
Returns a system colour.
|index||Can be one of the wxSystemColour enum values.|
Returns a system font.
|index||Can be one of the wxSystemFont enum values.|
Returns the value of a system metric, or -1 if the metric is not supported on the current system.
The value of win determines if the metric returned is a global value or a wxWindow based value, in which case it might determine the widget, the display the window is on, or something similar. The window given should be as close to the metric as possible (e.g. a wxTopLevelWindow in case of the wxSYS_CAPTION_Y metric).
index can be one of the wxSystemMetric enum values.
win is a pointer to the window for which the metric is requested. Specifying the win parameter is encouraged, because some metrics on some ports are not supported without one,or they might be capable of reporting better values if given one. If a window does not make sense for a metric, one should still be given, as for example it might determine which displays cursor width is requested with wxSYS_CURSOR_X.
Returns the screen type.
The return value is one of the wxSystemScreenType enum values.