]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/dfb/font.h
04909177db47128a8f28ef637c2c46c45b0cf93f
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/ifacehelpers.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 // implementation from now on:
67 IDirectFBFontPtr
GetDirectFBFont() const;
71 virtual wxObjectRefData
*CreateRefData() const;
72 virtual wxObjectRefData
*CloneRefData(const wxObjectRefData
*data
) const;
75 DECLARE_DYNAMIC_CLASS(wxFont
)
78 #endif // _WX_DFB_FONT_H_