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:
@@ -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.
|
||||
|
Reference in New Issue
Block a user