]>
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 /////////////////////////////////////////////////////////////////////////////
18 #include "wx/object.h"
19 #include "wx/string.h"
21 #include "wx/gdiobj.h"
23 // ----------------------------------------------------------------------------
25 // ----------------------------------------------------------------------------
33 // ----------------------------------------------------------------------------
35 // ----------------------------------------------------------------------------
37 extern const wxChar
* wxEmptyString
;
39 // ----------------------------------------------------------------------------
41 // ----------------------------------------------------------------------------
43 class wxFont
: public wxFontBase
48 wxFont(const wxFont
& font
) { Init(); Ref(font
); }
51 wxFont
& operator=(const wxFont
& font
);
57 bool underlined
= FALSE
,
58 const wxString
& face
= wxEmptyString
,
59 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
)
63 (void)Create(size
, family
, style
, weight
, underlined
, face
, encoding
);
70 bool underlined
= FALSE
,
71 const wxString
& face
= wxEmptyString
,
72 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
);
76 // implement base class pure virtuals
77 virtual int GetPointSize() const;
78 virtual int GetFamily() const;
79 virtual int GetStyle() const;
80 virtual int GetWeight() const;
81 virtual wxString
GetFaceName() const;
82 virtual bool GetUnderlined() const;
83 virtual wxFontEncoding
GetEncoding() const;
85 virtual void SetPointSize( int pointSize
);
86 virtual void SetFamily( int family
);
87 virtual void SetStyle( int style
);
88 virtual void SetWeight( int weight
);
89 virtual void SetFaceName( const wxString
& faceName
);
90 virtual void SetUnderlined( bool underlined
);
91 virtual void SetEncoding(wxFontEncoding encoding
);
93 // implementation from now on
94 wxFont( GdkFont
* font
, char *xFontName
);
97 GdkFont
* GetInternalFont(float scale
= 1.0) const;
102 // common part of all ctors
106 DECLARE_DYNAMIC_CLASS(wxFont
)
109 #endif // __GTKFONTH__