acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
_constant.h
1#pragma once
2
3
4enum enum_image_selection
5{
6
7 e_image_selection_default,
8 e_image_selection_prefer_largest = e_image_selection_default,
9 e_image_selection_prefer_at_least_2x_larger,
10 e_image_selection_prefer_larger,
11 e_image_selection_prefer_smaller,
12 e_image_selection_prefer_at_least_2x_smaller,
13 e_image_selection_prefer_at_least_4x_smaller,
14 e_image_selection_prefer_at_least_8x_smaller,
15
16};
17
18
19enum enum_font
20{
21
22 e_font_none,
23
24 e_font_default,
25
26 e_font_with_family_name,
27
28 e_font_sans,
29 e_font_sans_ui,
30 e_font_sans_ex,
31 e_font_sans_fx,
32
33 e_font_serif,
34 e_font_serif_ui,
35 e_font_serif_ex,
36 e_font_serif_fx,
37
38 e_font_monospace,
39 e_font_monospace_ui,
40 e_font_monospace_ex,
41 e_font_monospace_fx,
42
43};
44
45
46enum enum_image
47{
48
49 e_image_none,
50 e_image_grayscale,
51
52};
53
54
55enum enum_rotate_flip
56{
57 e_rotate_none_flip_none = 0,
58 e_rotate_90_flip_none = 1,
59 e_rotate_180_flip_none = 2,
60 e_rotate_270_flip_none = 3,
61
62 e_rotate_none_flip_x = 4,
63 e_rotate_90_flip_x = 5,
64 e_rotate_180_flip_x = 6,
65 e_rotate_270_flip_x = 7,
66
67 e_rotate_none_flip_y = e_rotate_180_flip_x,
68 e_rotate_90_flip_y = e_rotate_270_flip_x,
69 e_rotate_180_flip_y = e_rotate_none_flip_x,
70 e_rotate_270_flip_y = e_rotate_90_flip_x,
71
72 e_rotate_none_flip_xy = e_rotate_180_flip_none,
73 e_rotate_90_flip_xy = e_rotate_270_flip_none,
74 e_rotate_180_flip_xy = e_rotate_none_flip_none,
75 e_rotate_270_flip_xy = e_rotate_90_flip_none
76};
77
78enum enum_stock_icon
79{
80
81 e_stock_icon_none,
82 e_stock_icon_control_box_begin,
83 e_stock_icon_close = e_stock_icon_control_box_begin, // button_close
84 e_stock_icon_level_up, // button_up
85 e_stock_icon_level_down, // button_down
86 e_stock_icon_iconify, // button_minimize
87 e_stock_icon_restore, // button_restore
88 e_stock_icon_zoom, // button_maximize
89 e_stock_icon_notify, // button_notify_icon
90 e_stock_icon_transparent_frame, // button_transparent_frame
91 e_stock_icon_dock, // button_dock
92 e_stock_icon_control_box_end = e_stock_icon_dock
93
94};
95
96
97enum enum_plain_color
98{
99
100 e_plain_color_none, // 0
101 e_plain_color_red, // 1
102 e_plain_color_green, // 2
103 e_plain_color_blue, // 3
104 e_plain_color_yellow, // 4
105 e_plain_color_cyan, // 5
106 e_plain_color_magenta, // 6
107 e_plain_color_black, // 7
108 e_plain_color_white, // 8
109 e_plain_color_gray, // 9
110
111};
112
113
114namespace draw2d
115{
116
117 enum enum_default_object
118 {
119
120 e_default_object = 0,
121
122 };
123
124
125 enum enum_item
126 {
127
128 e_item_none,
129 e_item_line,
130 e_item_rectangle,
131 e_item_ellipse,
132 e_item_arc,
133 e_item_lines,
134 e_item_polygon,
135 e_item_poly_polygon,
136 e_item_round_rect,
137 e_item_combine,
138 e_item_close_figure,
139 e_item_begin_figure,
140 e_item_end_figure,
141 e_item_intersect_clip,
142
143 e_item_text_out,
144 e_item_draw_text,
145
146 };
147
148
149 enum enum_combine
150 {
151
152 e_combine_add,
153 e_combine_exclude,
154 e_combine_intersect,
155 e_combine_xor,
156 e_combine_copy,
157
158 };
159
160
161 enum enum_smooth_mode
162 {
163 e_smooth_mode_none,
164 e_smooth_mode_high,
165 e_smooth_mode_anti_alias_8x4,
166 e_smooth_mode_anti_alias_8x8,
167 };
168
169
170 enum enum_interpolation_mode
171 {
172
173 e_interpolation_mode_none = 0,
174 e_interpolation_mode_nearest_neighbor,
175 e_interpolation_mode_low_quality,
176 e_interpolation_mode_high_quality_bicubic,
177
178 };
179
180
181 enum enum_compositing_quality
182 {
183 e_compositing_quality_none,
184 e_compositing_quality_high_speed,
185 e_compositing_quality_high_quality,
186 };
187
188
189 enum enum_disposal
190 {
191 e_disposal_undefined = 0,
192 e_disposal_none = 1,
193 e_disposal_background = 2,
194 e_disposal_previous = 3
195 };
196
197
198 enum enum_alpha_mode
199 {
200
201 e_alpha_mode_none,
202 e_alpha_mode_set,
203 e_alpha_mode_blend
204
205 };
206
207
208 enum enum_fill_mode
209 {
210
211 e_fill_mode_winding,
212 e_fill_mode_alternate
213
214 };
215
216
217
218
219
220 enum enum_pen
221 {
222
223 e_pen_null,
224 e_pen_solid,
225 e_pen_dot,
226 e_pen_brush,
227 e_pen_dash
228
229 };
230
231
232
233 enum enum_brush
234 {
235
236 e_brush_null,
237 e_brush_solid,
238 e_brush_linear_gradient_point_color,
239 e_brush_radial_gradient_color,
240 e_brush_pattern,
241 e_brush_box_gradient,
242
243 };
244
245
246
247 enum enum_line_cap
248 {
249
250 e_line_cap_flat,
251 e_line_cap_round,
252 e_line_cap_square,
253
254 };
255
256
257 enum enum_pen_align
258 {
259
260 e_pen_align_center,
261 e_pen_align_inset,
262
263 };
264
265
266 enum enum_line_join
267 {
268
269 e_line_join_miter,
270 e_line_join_bevel,
271 e_line_join_round,
272 e_line_join_miter_clipped
273
274 };
275
276
277} // namespace draw2d
278
279
280namespace write_text
281{
282
283
284 enum enum_rendering
285 {
286
287 e_rendering_undefined,
288 e_rendering_none,
289 e_rendering_system_default,
290 e_rendering_anti_alias,
291 e_rendering_anti_alias_grid_fit,
292 e_rendering_single_bit_per_pixel,
293 e_rendering_single_bit_per_pixel_grid_fit,
294 e_rendering_clear_type_grid_fit
295
296 };
297
298
299} // namespace write_text
300
301
302
303enum enum_draw_text
304{
305
306 e_draw_text_none,
307 e_draw_text_no_prefix = 1,
308 e_draw_text_word_break = 2,
309 e_draw_text_path_ellipsis = 4,
310 e_draw_text_end_ellipsis = 8,
311 e_draw_text_single_line = 16,
312 e_draw_text_expand_tabs = 32,
313
314};
315
316
317DECLARE_C_FLAG(e_draw_text, enum_draw_text);
318
319
320