]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/font.h
a15d5b5dcc0f2d51ce59fa0f3e0c01fe09e38f5e
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
) { Create(fontname
, fontdata
); }
40 wxFont(const wxNativeFontInfo
& info
);
43 wxFont
& operator=(const wxFont
& font
);
49 bool underlined
= FALSE
,
50 const wxString
& face
= wxEmptyString
,
51 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
)
55 (void)Create(size
, family
, style
, weight
, underlined
, face
, encoding
);
62 bool underlined
= FALSE
,
63 const wxString
& face
= wxEmptyString
,
64 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
,
65 const wxNativeFontInfo
& info
= wxNullNativeFontInfo
);
67 bool Create(const wxString
& fontname
, const wxFontData
& fontdata
);
71 // implement base class pure virtuals
72 virtual int GetPointSize() const;
73 virtual int GetFamily() const;
74 virtual int GetStyle() const;
75 virtual int GetWeight() const;
76 virtual wxString
GetFaceName() const;
77 virtual bool GetUnderlined() const;
78 virtual wxFontEncoding
GetEncoding() const;
79 virtual wxNativeFontInfo
GetNativeFontInfo() const;
81 virtual void SetPointSize( int pointSize
);
82 virtual void SetFamily( int family
);
83 virtual void SetStyle( int style
);
84 virtual void SetWeight( int weight
);
85 virtual void SetFaceName( const wxString
& faceName
);
86 virtual void SetUnderlined( bool underlined
);
87 virtual void SetEncoding(wxFontEncoding encoding
);
88 virtual void SetNativeFontInfo( const wxNativeFontInfo
& info
);
90 // implementation from now on
93 GdkFont
* GetInternalFont(float scale
= 1.0) const;
98 // common part of all ctors
102 DECLARE_DYNAMIC_CLASS(wxFont
)
105 #endif // __GTKFONTH__