]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/dfb/font.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Author: Vaclav Slavik
4 // Purpose: wxFont declaration
7 // Copyright: (c) 2006 REA Elektronik GmbH
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_DFB_FONT_H_
12 #define _WX_DFB_FONT_H_
14 #include "wx/dfb/dfbptr.h"
16 wxDFB_DECLARE_INTERFACE(IDirectFBFont
);
18 // ----------------------------------------------------------------------------
20 // ----------------------------------------------------------------------------
22 class WXDLLIMPEXP_CORE wxFont
: public wxFontBase
26 wxFont(const wxNativeFontInfo
& info
) { Create(info
); }
31 bool underlined
= false,
32 const wxString
& face
= wxEmptyString
,
33 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
)
35 Create(size
, family
, style
, weight
, underlined
, face
, encoding
);
42 bool underlined
= false,
43 const wxString
& face
= wxEmptyString
,
44 wxFontEncoding encoding
= wxFONTENCODING_DEFAULT
);
45 bool Create(const wxNativeFontInfo
& fontinfo
);
47 // implement base class pure virtuals
48 virtual int GetPointSize() const;
49 virtual int GetFamily() const;
50 virtual int GetStyle() const;
51 virtual int GetWeight() const;
52 virtual wxString
GetFaceName() const;
53 virtual bool GetUnderlined() const;
54 virtual wxFontEncoding
GetEncoding() const;
55 virtual bool IsFixedWidth() const;
56 virtual const wxNativeFontInfo
*GetNativeFontInfo() const;
58 virtual void SetPointSize(int pointSize
);
59 virtual void SetFamily(int family
);
60 virtual void SetStyle(int style
);
61 virtual void SetWeight(int weight
);
62 virtual bool SetFaceName(const wxString
& faceName
);
63 virtual void SetUnderlined(bool underlined
);
64 virtual void SetEncoding(wxFontEncoding encoding
);
66 // Unofficial API, don't use
67 virtual void SetNoAntiAliasing(bool no
= true);
68 virtual bool GetNoAntiAliasing() const;
70 // implementation from now on:
71 wxIDirectFBFontPtr
GetDirectFBFont(bool antialiased
) const;
74 virtual wxGDIRefData
*CreateGDIRefData() const;
75 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
78 DECLARE_DYNAMIC_CLASS(wxFont
)
81 #endif // _WX_DFB_FONT_H_