summaryrefslogtreecommitdiff
path: root/freetype/qfontdata_p.h
authorkergoth <kergoth>2002-01-25 22:14:26 (UTC)
committer kergoth <kergoth>2002-01-25 22:14:26 (UTC)
commit15318cad33835e4e2dc620d033e43cd930676cdd (patch) (unidiff)
treec2fa0399a2c47fda8e2cd0092c73a809d17f68eb /freetype/qfontdata_p.h
downloadopie-15318cad33835e4e2dc620d033e43cd930676cdd.zip
opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.gz
opie-15318cad33835e4e2dc620d033e43cd930676cdd.tar.bz2
Initial revision
Diffstat (limited to 'freetype/qfontdata_p.h') (more/less context) (ignore whitespace changes)
-rw-r--r--freetype/qfontdata_p.h94
1 files changed, 94 insertions, 0 deletions
diff --git a/freetype/qfontdata_p.h b/freetype/qfontdata_p.h
new file mode 100644
index 0000000..fc22c72
--- a/dev/null
+++ b/freetype/qfontdata_p.h
@@ -0,0 +1,94 @@
1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved.
3**
4** This file is part of Qtopia Environment.
5**
6** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software
8** Foundation and appearing in the file LICENSE.GPL included in the
9** packaging of this file.
10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15**
16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you.
18**
19**********************************************************************/
20
21
22#ifndef QFONTDATA_P_H
23#define QFONTDATA_P_H
24
25
26//
27// W A R N I N G
28// -------------
29//
30// This file is not part of the Qt API. It exists for the convenience
31// of qmenudata.cpp, qmenubar.cpp, qmenubar.cpp, qpopupmenu.cpp,
32// qmotifstyle.cpp and qwindowssstyle.cpp. This header file may change
33// from version to version without notice, or even be removed.
34//
35// We mean it.
36//
37//
38
39#ifndef QT_H
40#endif // QT_H
41
42 struct QFontDef { // font definition
43 QStringfamily;
44 QStringaddStyle;
45 int pointSize;
46 uint styleHint: 8;
47 uint styleStrategy: 8;
48 uint charSet : 8;
49 uint weight : 8;
50 uint italic : 1;
51 uint underline: 1;
52 uint strikeOut: 1;
53 uint fixedPitch: 1;
54 uint hintSetByUser: 1;
55 uint rawMode : 1;
56 uint dirty : 1;
57 shortlbearing;
58 shortrbearing;
59};
60
61
62class QFontInternal;
63class QTextCodec;
64
65struct QFontData : public QShared {
66 QFontData()
67 : exactMatch(FALSE), fin(0), printerHackFont( 0 )
68 {}
69 QFontData( const QFontData &d )
70 : QShared(d), req(d.req), exactMatch(d.exactMatch), fin(d.fin),
71 printerHackFont(0)
72 // Copy the QShared count as well. The count may need to be
73 // reset when using the QFontData class, see QFont::QFont(QFontData*)
74 {}
75 ~QFontData()
76 {}
77 QFontData &operator=( const QFontData &d )
78 {
79 req = d.req;
80 exactMatch = d.exactMatch;
81 fin = d.fin;
82 printerHackFont=d.printerHackFont;
83 return *this;
84 }
85 QFontDef req; // requested font
86 bool exactMatch;
87 QFontInternal *fin;
88 QFont *printerHackFont;
89 const QTextCodec *mapper() const;
90 void *fontSet() const;
91};
92
93
94#endif // QFONTDATA_P_H