Add font colour support to wxFontPickerCtrl.

Currently this is only really implemented under Windows, just as the colour
support in wxFontDialog, but make the API available under all platforms for
consistency.

Closes #11614.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2014-03-18 17:23:13 +00:00
parent 9e7dbef726
commit 399371921f
7 changed files with 78 additions and 4 deletions

View File

@@ -109,6 +109,17 @@ public:
*/
unsigned int GetMaxPointSize() const;
/**
Returns the currently selected colour.
Note that the colour of the font can only be set by the user under
Windows currently, elsewhere this method simply returns the colour
previously set by SetSelectedColour() or black if it hadn't been called.
@since 3.1.0
*/
wxColour GetSelectedColour() const;
/**
Returns the currently selected font.
Note that this function is completely different from wxWindow::GetFont.
@@ -126,6 +137,16 @@ public:
*/
void SetMaxPointSize(unsigned int max);
/**
Sets the font colour.
The font colour is actually only used under Windows currently, but this
function is available under all platforms for consistency.
@since 3.1.0
*/
void SetSelectedColour(const wxColour& colour);
/**
Sets the currently selected font.
Note that this function is completely different from wxWindow::SetFont.