Use helper GetPickerWidget() function in wxFontPickerCtrl.
No real changes, just use a helper function instead of an ugly M_PICKER macro. See #11614. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76159 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -133,7 +133,7 @@ public: // public API
|
||||
|
||||
// get the font chosen
|
||||
wxFont GetSelectedFont() const
|
||||
{ return ((wxFontPickerWidget *)m_picker)->GetSelectedFont(); }
|
||||
{ return GetPickerWidget()->GetSelectedFont(); }
|
||||
|
||||
// sets currently displayed font
|
||||
void SetSelectedFont(const wxFont& f);
|
||||
@@ -166,6 +166,9 @@ protected:
|
||||
unsigned int m_nMaxPointSize;
|
||||
|
||||
private:
|
||||
wxFontPickerWidget* GetPickerWidget() const
|
||||
{ return static_cast<wxFontPickerWidget*>(m_picker); }
|
||||
|
||||
DECLARE_DYNAMIC_CLASS(wxFontPickerCtrl)
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user