]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/font.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_GTK_FONT_H_
11 #define _WX_GTK_FONT_H_
13 // ----------------------------------------------------------------------------
15 // ----------------------------------------------------------------------------
17 class WXDLLIMPEXP_CORE wxFont
: public wxFontBase
23 wxFont(const wxString
& fontname
)
28 wxFont(const wxNativeFontInfo
& info
);
34 bool underlined
= false,
35 const wxString
& face
= wxEmptyString
,
36 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
)
38 (void)Create(size
, family
, style
, weight
, underlined
, face
, encoding
);
45 bool underlined
= false,
46 const wxString
& face
= wxEmptyString
,
47 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
);
50 bool Create(const wxString
& fontname
);
54 // implement base class pure virtuals
55 virtual int GetPointSize() const;
56 virtual int GetFamily() const;
57 virtual int GetStyle() const;
58 virtual int GetWeight() const;
59 virtual wxString
GetFaceName() const;
60 virtual bool GetUnderlined() const;
61 virtual wxFontEncoding
GetEncoding() const;
62 virtual const wxNativeFontInfo
*GetNativeFontInfo() const;
63 virtual bool IsFixedWidth() const;
65 virtual void SetPointSize( int pointSize
);
66 virtual void SetFamily( int family
);
67 virtual void SetStyle( int style
);
68 virtual void SetWeight( int weight
);
69 virtual bool SetFaceName( const wxString
& faceName
);
70 virtual void SetUnderlined( bool underlined
);
71 virtual void SetEncoding(wxFontEncoding encoding
);
73 virtual void SetNoAntiAliasing( bool no
= true );
74 virtual bool GetNoAntiAliasing() const ;
76 // implementation from now on
82 virtual void DoSetNativeFontInfo( const wxNativeFontInfo
& info
);
84 // common part of all ctors
88 DECLARE_DYNAMIC_CLASS(wxFont
)
91 #endif // _WX_GTK_FONT_H_