make sure that wxSystemSettings::GetFont/GetColour return values are always valid

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59820 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2009-03-24 23:13:02 +00:00
parent ecde8361cc
commit e3527f7bc5
15 changed files with 240 additions and 8 deletions

View File

@@ -217,8 +217,9 @@ enum wxSystemScreenType
@class wxSystemSettings
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.
This can include settings such as standard colours, fonts, and user interface
element sizes.
@library{wxcore}
@category{cfg}
@@ -238,13 +239,23 @@ public:
/**
Returns a system colour.
@a index can be one of the ::wxSystemColour enum values.
@param index
Can be one of the ::wxSystemColour enum values.
@return
The returned colour is always valid.
*/
static wxColour GetColour(wxSystemColour index);
/**
Returns a system font.
@a index can be one of the ::wxSystemFont enum values.
@param index
Can be one of the ::wxSystemFont enum values.
@return
The returned font is always valid.
*/
static wxFont GetFont(wxSystemFont index);