]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/font.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
19 // ----------------------------------------------------------------------------
21 // ----------------------------------------------------------------------------
29 // ----------------------------------------------------------------------------
31 // ----------------------------------------------------------------------------
33 class wxFont
: public wxFontBase
38 wxFont(const wxFont
& font
) { Init(); Ref(font
); }
39 wxFont(const wxString
& fontname
, const wxFontData
& fontdata
);
42 wxFont
& operator=(const wxFont
& font
);
48 bool underlined
= FALSE
,
49 const wxString
& face
= wxEmptyString
,
50 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
)
54 (void)Create(size
, family
, style
, weight
, underlined
, face
, encoding
);
61 bool underlined
= FALSE
,
62 const wxString
& face
= wxEmptyString
,
63 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
);
67 // implement base class pure virtuals
68 virtual int GetPointSize() const;
69 virtual int GetFamily() const;
70 virtual int GetStyle() const;
71 virtual int GetWeight() const;
72 virtual wxString
GetFaceName() const;
73 virtual bool GetUnderlined() const;
74 virtual wxFontEncoding
GetEncoding() const;
76 virtual void SetPointSize( int pointSize
);
77 virtual void SetFamily( int family
);
78 virtual void SetStyle( int style
);
79 virtual void SetWeight( int weight
);
80 virtual void SetFaceName( const wxString
& faceName
);
81 virtual void SetUnderlined( bool underlined
);
82 virtual void SetEncoding(wxFontEncoding encoding
);
84 // implementation from now on
87 GdkFont
* GetInternalFont(float scale
= 1.0) const;
92 // common part of all ctors
96 DECLARE_DYNAMIC_CLASS(wxFont
)
99 #endif // __GTKFONTH__