Changeset View
Changeset View
Standalone View
Standalone View
kcms/fonts/kxftconfig.h
Show First 20 Lines • Show All 58 Lines • ▼ Show 20 Line(s) | 55 | enum Type { | |||
---|---|---|---|---|---|
59 | Bgr, | 59 | Bgr, | ||
60 | Vrgb, | 60 | Vrgb, | ||
61 | Vbgr | 61 | Vbgr | ||
62 | }; | 62 | }; | ||
63 | 63 | | |||
64 | SubPixel(Type t, QDomNode &n) : Item(n), type(t) {} | 64 | SubPixel(Type t, QDomNode &n) : Item(n), type(t) {} | ||
65 | SubPixel(Type t = NotSet) : type(t) {} | 65 | SubPixel(Type t = NotSet) : type(t) {} | ||
66 | 66 | | |||
67 | void reset() Q_DECL_OVERRIDE | 67 | void reset() | ||
68 | { | 68 | { | ||
69 | Item::reset(); | 69 | Item::reset(); | ||
70 | type = NotSet; | 70 | type = NotSet; | ||
71 | } | 71 | } | ||
72 | 72 | | |||
73 | Type type; | 73 | Type type; | ||
74 | }; | 74 | }; | ||
75 | 75 | | |||
76 | struct Exclude : public Item { | 76 | struct Exclude : public Item { | ||
77 | Exclude(double f, double t, QDomNode &n) : Item(n), from(f), to(t) {} | 77 | Exclude(double f, double t, QDomNode &n) : Item(n), from(f), to(t) {} | ||
78 | Exclude(double f = 0, double t = 0) : from(f), to(t) {} | 78 | Exclude(double f = 0, double t = 0) : from(f), to(t) {} | ||
79 | 79 | | |||
80 | void reset() Q_DECL_OVERRIDE | 80 | void reset() | ||
81 | { | 81 | { | ||
82 | Item::reset(); | 82 | Item::reset(); | ||
83 | from = to = 0; | 83 | from = to = 0; | ||
84 | } | 84 | } | ||
85 | 85 | | |||
86 | double from, | 86 | double from, | ||
87 | to; | 87 | to; | ||
88 | }; | 88 | }; | ||
89 | 89 | | |||
90 | struct Hint : public Item { | 90 | struct Hint : public Item { | ||
91 | enum Style { | 91 | enum Style { | ||
92 | NotSet, | 92 | NotSet, | ||
93 | None, | 93 | None, | ||
94 | Slight, | 94 | Slight, | ||
95 | Medium, | 95 | Medium, | ||
96 | Full | 96 | Full | ||
97 | }; | 97 | }; | ||
98 | 98 | | |||
99 | Hint(Style s, QDomNode &n) : Item(n), style(s) {} | 99 | Hint(Style s, QDomNode &n) : Item(n), style(s) {} | ||
100 | Hint(Style s = NotSet) : style(s) {} | 100 | Hint(Style s = NotSet) : style(s) {} | ||
101 | 101 | | |||
102 | void reset() Q_DECL_OVERRIDE | 102 | void reset() | ||
103 | { | 103 | { | ||
104 | Item::reset(); | 104 | Item::reset(); | ||
105 | style = NotSet; | 105 | style = NotSet; | ||
106 | } | 106 | } | ||
107 | 107 | | |||
108 | Style style; | 108 | Style style; | ||
109 | }; | 109 | }; | ||
110 | 110 | | |||
111 | struct Hinting : public Item { | 111 | struct Hinting : public Item { | ||
112 | Hinting(bool s, QDomNode &n) : Item(n), set(s) {} | 112 | Hinting(bool s, QDomNode &n) : Item(n), set(s) {} | ||
113 | Hinting(bool s = true) : set(s) {} | 113 | Hinting(bool s = true) : set(s) {} | ||
114 | 114 | | |||
115 | void reset() Q_DECL_OVERRIDE | 115 | void reset() | ||
116 | { | 116 | { | ||
117 | Item::reset(); | 117 | Item::reset(); | ||
118 | set = true; | 118 | set = true; | ||
119 | } | 119 | } | ||
120 | 120 | | |||
121 | bool set; | 121 | bool set; | ||
122 | }; | 122 | }; | ||
123 | 123 | | |||
124 | struct AntiAliasing : public Item { | 124 | struct AntiAliasing : public Item { | ||
125 | enum State { | 125 | enum State { | ||
126 | NotSet, | 126 | NotSet, | ||
127 | Enabled, | 127 | Enabled, | ||
128 | Disabled | 128 | Disabled | ||
129 | }; | 129 | }; | ||
130 | 130 | | |||
131 | AntiAliasing(State s, QDomNode &n) : Item(n), state(s) {} | 131 | AntiAliasing(State s, QDomNode &n) : Item(n), state(s) {} | ||
132 | AntiAliasing(State s = NotSet) : state(s) {} | 132 | AntiAliasing(State s = NotSet) : state(s) {} | ||
133 | 133 | | |||
134 | void reset() Q_DECL_OVERRIDE | 134 | void reset() | ||
135 | { | 135 | { | ||
136 | Item::reset(); | 136 | Item::reset(); | ||
137 | state = NotSet; | 137 | state = NotSet; | ||
138 | } | 138 | } | ||
139 | 139 | | |||
140 | enum State state; | 140 | enum State state; | ||
141 | }; | 141 | }; | ||
142 | 142 | | |||
▲ Show 20 Lines • Show All 53 Lines • Show Last 20 Lines |