/[pcsx2_0.9.7]/trunk/3rdparty/wxWidgets/include/wx/encinfo.h
ViewVC logotype

Contents of /trunk/3rdparty/wxWidgets/include/wx/encinfo.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10 - (show annotations) (download)
Mon Sep 6 11:40:06 2010 UTC (9 years, 5 months ago) by william
File MIME type: text/plain
File size: 2619 byte(s)
exported r3113 from ./upstream/trunk
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/encinfo.h
3 // Purpose: declares wxNativeEncodingInfo struct
4 // Author: Vadim Zeitlin
5 // Modified by:
6 // Created: 19.09.2003 (extracted from wx/fontenc.h)
7 // RCS-ID: $Id: encinfo.h 40865 2006-08-27 09:42:42Z VS $
8 // Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwidgets.org>
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_ENCINFO_H_
13 #define _WX_ENCINFO_H_
14
15 #include "wx/string.h"
16
17 // ----------------------------------------------------------------------------
18 // wxNativeEncodingInfo contains all encoding parameters for this platform
19 // ----------------------------------------------------------------------------
20
21 // This private structure specifies all the parameters needed to create a font
22 // with the given encoding on this platform.
23 //
24 // Under X, it contains the last 2 elements of the font specifications
25 // (registry and encoding).
26 //
27 // Under Windows, it contains a number which is one of predefined CHARSET_XXX
28 // values.
29 //
30 // Under all platforms it also contains a facename string which should be
31 // used, if not empty, to create fonts in this encoding (this is the only way
32 // to create a font of non-standard encoding (like KOI8) under Windows - the
33 // facename specifies the encoding then)
34
35 struct WXDLLEXPORT wxNativeEncodingInfo
36 {
37 wxString facename; // may be empty meaning "any"
38 #ifndef __WXPALMOS__
39 wxFontEncoding encoding; // so that we know what this struct represents
40
41 #if defined(__WXMSW__) || \
42 defined(__WXPM__) || \
43 defined(__WXMAC__) || \
44 defined(__WXCOCOA__) // FIXME: __WXCOCOA__
45
46 wxNativeEncodingInfo()
47 : facename()
48 , encoding(wxFONTENCODING_SYSTEM)
49 , charset(0) /* ANSI_CHARSET */
50 { }
51
52 int charset;
53 #elif defined(_WX_X_FONTLIKE)
54 wxString xregistry,
55 xencoding;
56 #elif defined(__WXGTK20__)
57 // No way to specify this in Pango as this
58 // seems to be handled internally.
59 #elif defined(__WXMGL__)
60 int mglEncoding;
61 #elif defined(__WXDFB__)
62 // DirectFB uses UTF-8 internally, doesn't use font encodings
63 #else
64 #error "Unsupported toolkit"
65 #endif
66 #endif // !__WXPALMOS__
67 // this struct is saved in config by wxFontMapper, so it should know to
68 // serialise itself (implemented in platform-specific code)
69 bool FromString(const wxString& s);
70 wxString ToString() const;
71 };
72
73 #endif // _WX_ENCINFO_H_
74

  ViewVC Help
Powered by ViewVC 1.1.22