// ctors and such
wxFont() { }
+ wxFont(const wxFontInfo& info);
+
#if FUTURE_WXWIN_COMPATIBILITY_3_0
wxFont(int size,
int family,
{
Create(size, family, style, weight, underlined, face, encoding);
}
-
- wxFont(const wxSize& pixelSize,
- wxFontFamily family,
- wxFontStyle style,
- wxFontWeight weight,
- bool underlined = false,
- const wxString& face = wxEmptyString,
- wxFontEncoding encoding = wxFONTENCODING_DEFAULT)
- {
- Create(10, family, style, weight, underlined, face, encoding);
- SetPixelSize(pixelSize);
- }
-
+
bool Create(int size,
wxFontFamily family,
wxFontStyle style,
virtual ~wxFont();
- // wxFontBase overridden functions
- virtual wxString GetNativeFontInfoDesc() const;
- virtual wxString GetNativeFontInfoUserDesc() const;
-
// implement base class pure virtuals
virtual int GetPointSize() const;
virtual wxSize GetPixelSize() const;
virtual bool IsUsingSizeInPixels() const;
- virtual wxFontFamily GetFamily() const;
virtual wxFontStyle GetStyle() const;
virtual wxFontWeight GetWeight() const;
virtual bool GetUnderlined() const;
+ virtual bool GetStrikethrough() const;
virtual wxString GetFaceName() const;
virtual wxFontEncoding GetEncoding() const;
virtual const wxNativeFontInfo *GetNativeFontInfo() const;
virtual void SetWeight(wxFontWeight weight);
virtual bool SetFaceName(const wxString& faceName);
virtual void SetUnderlined(bool underlined);
+ virtual void SetStrikethrough(bool strikethrough);
virtual void SetEncoding(wxFontEncoding encoding);
- WXDECLARE_COMPAT_SETTERS
+ wxDECLARE_COMMON_FONT_METHODS();
virtual bool IsFixedWidth() const;
wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
virtual void DoSetNativeFontInfo(const wxNativeFontInfo& info);
+ virtual wxFontFamily DoGetFamily() const;
// implement wxObject virtuals which are used by AllocExclusive()
virtual wxGDIRefData *CreateGDIRefData() const;