| ---
tgtkenums.h (3733B)
---
1 /************************************************************************
2 * gtkenums.h Enumerated types for gtkport code *
3 * Copyright (C) 2002-2004 Ben Webb *
4 * Email: benwebb@users.sf.net *
5 * WWW: https://dopewars.sourceforge.io/ *
6 * *
7 * This program is free software; you can redistribute it and/or *
8 * modify it under the terms of the GNU General Public License *
9 * as published by the Free Software Foundation; either version 2 *
10 * of the License, or (at your option) any later version. *
11 * *
12 * This program is distributed in the hope that it will be useful, *
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15 * GNU General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU General Public License *
18 * along with this program; if not, write to the Free Software *
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, *
20 * MA 02111-1307, USA. *
21 ************************************************************************/
22
23 #ifndef __GTKENUMS_H__
24 #define __GTKENUMS_H__
25
26 #ifdef HAVE_CONFIG_H
27 #include
28 #endif
29
30 #ifdef CYGWIN
31
32 typedef enum {
33 GTK_WINDOW_TOPLEVEL, GTK_WINDOW_DIALOG, GTK_WINDOW_POPUP
34 } GtkWindowType;
35
36 typedef enum {
37 GTK_ACCEL_VISIBLE = 1 << 0,
38 GTK_ACCEL_SIGNAL_VISIBLE = 1 << 1
39 } GtkAccelFlags;
40
41 typedef enum {
42 GTK_BUTTONBOX_SPREAD,
43 GTK_BUTTONBOX_EDGE,
44 GTK_BUTTONBOX_START,
45 GTK_BUTTONBOX_END
46 } GtkButtonBoxStyle;
47
48 typedef enum {
49 GTK_STATE_NORMAL,
50 GTK_STATE_ACTIVE,
51 GTK_STATE_PRELIGHT,
52 GTK_STATE_SELECTED,
53 GTK_STATE_INSENSITIVE
54 } GtkStateType;
55
56 typedef enum {
57 GTK_VISIBILITY_NONE,
58 GTK_VISIBILITY_PARTIAL,
59 GTK_VISIBILITY_FULL
60 } GtkVisibility;
61
62 typedef enum {
63 GTK_PROGRESS_LEFT_TO_RIGHT,
64 GTK_PROGRESS_RIGHT_TO_LEFT,
65 GTK_PROGRESS_BOTTOM_TO_TOP,
66 GTK_PROGRESS_TOP_TO_BOTTOM
67 } GtkProgressBarOrientation;
68
69 typedef enum {
70 GTK_EXPAND = 1 << 0,
71 GTK_SHRINK = 1 << 1,
72 GTK_FILL = 1 << 2
73 } GtkAttachOptions;
74
75 typedef enum {
76 GTK_SELECTION_SINGLE,
77 GTK_SELECTION_BROWSE,
78 GTK_SELECTION_MULTIPLE,
79 GTK_SELECTION_EXTENDED
80 } GtkSelectionMode;
81
82 typedef enum {
83 GTK_SHADOW_NONE,
84 GTK_SHADOW_IN,
85 GTK_SHADOW_OUT,
86 GTK_SHADOW_ETCHED_IN,
87 GTK_SHADOW_ETCHED_OUT
88 } GtkShadowType;
89
90 typedef enum {
91 GTK_JUSTIFY_LEFT,
92 GTK_JUSTIFY_RIGHT,
93 GTK_JUSTIFY_CENTER,
94 GTK_JUSTIFY_FILL
95 } GtkJustification;
96
97 typedef enum {
98 GTK_REALIZED = 1 << 6,
99 GTK_VISIBLE = 1 << 8,
100 GTK_SENSITIVE = 1 << 10,
101 GTK_CAN_FOCUS = 1 << 11,
102 GTK_HAS_FOCUS = 1 << 12,
103 GTK_CAN_DEFAULT = 1 << 13,
104 GTK_IS_DEFAULT = 1 << 14
105 } GtkWidgetFlags;
106
107 typedef enum
108 {
109 GDK_WINDOW_TYPE_HINT_NORMAL,
110 GDK_WINDOW_TYPE_HINT_DIALOG,
111 GDK_WINDOW_TYPE_HINT_MENU,
112 GDK_WINDOW_TYPE_HINT_TOOLBAR
113 } GdkWindowTypeHint;
114
115 typedef enum
116 {
117 GTK_WIN_POS_NONE,
118 GTK_WIN_POS_CENTER,
119 GTK_WIN_POS_MOUSE,
120 GTK_WIN_POS_CENTER_ALWAYS,
121 GTK_WIN_POS_CENTER_ON_PARENT
122 } GtkWindowPosition;
123
124 typedef enum
125 {
126 GTK_ORIENTATION_HORIZONTAL,
127 GTK_ORIENTATION_VERTICAL
128 } GtkOrientation;
129
130 typedef enum
131 {
132 GTK_SORT_ASCENDING,
133 GTK_SORT_DESCENDING
134 } GtkSortType;
135
136 enum
137 {
138 G_TYPE_STRING,
139 G_TYPE_UINT,
140 G_TYPE_INT,
141 G_TYPE_POINTER
142 };
143
144 #endif /* CYGWIN */
145
146 #endif /* __GTKENUMS_H__ */ |