1
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3
* enums.c: various enumerated types + enum -> str helpers
5
* Copyright 2007 Novell, Inc. (http://www.novell.com)
7
* See the LICENSE file included with the distribution for details.
11
#ifndef __MOON_ENUMS_H__
12
#define __MOON_ENUMS_H__
29
FontStretchesUltraCondensed = 1,
30
FontStretchesExtraCondensed = 2,
31
FontStretchesCondensed = 3,
32
FontStretchesSemiCondensed = 4,
33
FontStretchesNormal = 5,
34
FontStretchesMedium = 5,
35
FontStretchesSemiExpanded = 6,
36
FontStretchesExpanded = 7,
37
FontStretchesExtraExpanded = 8,
38
FontStretchesUltraExpanded = 9
48
FontWeightsThin = 100,
49
FontWeightsExtraLight = 200,
50
FontWeightsLight = 300,
51
FontWeightsNormal = 400,
52
FontWeightsMedium = 500,
53
FontWeightsSemiBold = 600,
54
FontWeightsBold = 700,
55
FontWeightsExtraBold = 800,
56
FontWeightsBlack = 900,
57
FontWeightsExtraBlack = 950,
60
enum LineStackingStrategy {
61
LineStackingStrategyMaxHeight,
62
LineStackingStrategyBlockLineHeight
65
enum StyleSimulations {
75
// TextDecorations would appear to be a collection of bit flags rather
76
// than a normal enumeration of values
77
enum TextDecorations {
78
TextDecorationsNone = 0,
79
TextDecorationsUnderline = (1 << 0)
85
TextWrappingWrapWithOverflow
113
enum SweepDirection {
114
SweepDirectionCounterclockwise,
115
SweepDirectionClockwise
125
OrientationHorizontal
128
// make sure this stays in sync with System.Windows/System.Windows.Input/Cursor.cs (CursorType enum)
228
// Silverlight 2.0 Enums:
237
enum HorizontalAlignment {
238
HorizontalAlignmentLeft,
239
HorizontalAlignmentCenter,
240
HorizontalAlignmentRight,
241
HorizontalAlignmentStretch
244
enum KeyboardNavigationMode {
245
KeyboardNavigationModeLocal,
246
KeyboardNavigationModeCycle,
247
KeyboardNavigationModeOnce
252
ModifierKeyAlt = (1 << 0),
253
ModifierKeyControl = (1 << 1),
254
ModifierKeyShift = (1 << 2),
255
ModifierKeyWindows = (1 << 3),
256
ModifierKeyApple = (1 << 3)
259
enum ScrollBarVisibility {
260
ScrollBarVisibilityDisabled,
261
ScrollBarVisibilityAuto,
262
ScrollBarVisibilityHidden,
263
ScrollBarVisibilityVisible
266
enum VerticalAlignment {
267
VerticalAlignmentTop,
268
VerticalAlignmentCenter,
269
VerticalAlignmentBottom,
270
VerticalAlignmentStretch
273
enum CrossDomainAccess {
274
CrossDomainAccessNoAccess,
275
CrossDomainAccessFullAccess,
276
CrossDomainAccessScriptableOnly,
281
int enums_str_to_int (const char *prop_name, const char *str, bool sl2);
282
const char *enums_int_to_str (const char *prop_name, int e, bool sl2);