summaryrefslogtreecommitdiff
path: root/glib/src/gobject_enums.defs
blob: 3ace3c733eefda0b0e94e81e362b67c010afe309 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
;; From gbinding.h

;; Original typedef:
;; typedef enum { /*< prefix=G_BINDING >*/
;;   G_BINDING_DEFAULT        = 0,
;; 
;;   G_BINDING_BIDIRECTIONAL  = 1 << 0,
;;   G_BINDING_SYNC_CREATE    = 1 << 1,
;;   G_BINDING_INVERT_BOOLEAN = 1 << 2
;; } GBindingFlags;

(define-flags-extended BindingFlags
  (in-module "G")
  (c-name "GBindingFlags")
  (values
    '("default" "G_BINDING_DEFAULT" "0x0")
    '("bidirectional" "G_BINDING_BIDIRECTIONAL" "1 << 0")
    '("sync-create" "G_BINDING_SYNC_CREATE" "1 << 1")
    '("invert-boolean" "G_BINDING_INVERT_BOOLEAN" "1 << 2")
  )
)

;; From gparam.h

;; Original typedef:
;; typedef enum
;; {
;;   G_PARAM_READABLE            = 1 << 0,
;;   G_PARAM_WRITABLE            = 1 << 1,
;;   G_PARAM_READWRITE           = (G_PARAM_READABLE | G_PARAM_WRITABLE),
;;   G_PARAM_CONSTRUCT	      = 1 << 2,
;;   G_PARAM_CONSTRUCT_ONLY      = 1 << 3,
;;   G_PARAM_LAX_VALIDATION      = 1 << 4,
;;   G_PARAM_STATIC_NAME	      = 1 << 5,
;;   G_PARAM_PRIVATE GLIB_DEPRECATED_ENUMERATOR_IN_2_26 = G_PARAM_STATIC_NAME,
;;   G_PARAM_STATIC_NICK	      = 1 << 6,
;;   G_PARAM_STATIC_BLURB	      = 1 << 7,
;;   /* User defined flags go here */
;;   G_PARAM_EXPLICIT_NOTIFY     = 1 << 30,
;;   /* Avoid warning with -Wpedantic for gcc6 */
;;   G_PARAM_DEPRECATED          = (gint)(1u << 31)
;; } GParamFlags;

(define-flags-extended ParamFlags
  (in-module "G")
  (c-name "GParamFlags")
  (values
    '("readable" "G_PARAM_READABLE" "1 << 0")
    '("writable" "G_PARAM_WRITABLE" "1 << 1")
    '("readwrite" "G_PARAM_READWRITE" "0x3")
    '("construct" "G_PARAM_CONSTRUCT" "1 << 2")
    '("construct-only" "G_PARAM_CONSTRUCT_ONLY" "1 << 3")
    '("lax-validation" "G_PARAM_LAX_VALIDATION" "1 << 4")
    '("static-name" "G_PARAM_STATIC_NAME" "1 << 5")
    '("private" "G_PARAM_PRIVATE" "0x20")
    '("static-nick" "G_PARAM_STATIC_NICK" "1 << 6")
    '("static-blurb" "G_PARAM_STATIC_BLURB" "1 << 7")
    '("explicit-notify" "G_PARAM_EXPLICIT_NOTIFY" "1 << 30")
    '("deprecated" "G_PARAM_DEPRECATED" "(gint)(1u << 31)")
  )
)

;; From gsignal.h

;; Original typedef:
;; typedef enum
;; {
;;   G_SIGNAL_RUN_FIRST	= 1 << 0,
;;   G_SIGNAL_RUN_LAST	= 1 << 1,
;;   G_SIGNAL_RUN_CLEANUP	= 1 << 2,
;;   G_SIGNAL_NO_RECURSE	= 1 << 3,
;;   G_SIGNAL_DETAILED	= 1 << 4,
;;   G_SIGNAL_ACTION	= 1 << 5,
;;   G_SIGNAL_NO_HOOKS	= 1 << 6,
;;   G_SIGNAL_MUST_COLLECT = 1 << 7,
;;   G_SIGNAL_DEPRECATED   = 1 << 8,
;;   /* normal signal flags until 1 << 16 */
;;   G_SIGNAL_ACCUMULATOR_FIRST_RUN    = 1 << 17,
;; } GSignalFlags;

(define-flags-extended SignalFlags
  (in-module "G")
  (c-name "GSignalFlags")
  (values
    '("run-first" "G_SIGNAL_RUN_FIRST" "1 << 0")
    '("run-last" "G_SIGNAL_RUN_LAST" "1 << 1")
    '("run-cleanup" "G_SIGNAL_RUN_CLEANUP" "1 << 2")
    '("no-recurse" "G_SIGNAL_NO_RECURSE" "1 << 3")
    '("detailed" "G_SIGNAL_DETAILED" "1 << 4")
    '("action" "G_SIGNAL_ACTION" "1 << 5")
    '("no-hooks" "G_SIGNAL_NO_HOOKS" "1 << 6")
    '("must-collect" "G_SIGNAL_MUST_COLLECT" "1 << 7")
    '("deprecated" "G_SIGNAL_DEPRECATED" "1 << 8")
    '("accumulator-first-run" "G_SIGNAL_ACCUMULATOR_FIRST_RUN" "1 << 17")
  )
)

;; Original typedef:
;; typedef enum
;; {
;;   G_CONNECT_DEFAULT GLIB_AVAILABLE_ENUMERATOR_IN_2_74 = 0,
;;   G_CONNECT_AFTER	= 1 << 0,
;;   G_CONNECT_SWAPPED	= 1 << 1
;; } GConnectFlags;

(define-flags-extended ConnectFlags
  (in-module "G")
  (c-name "GConnectFlags")
  (values
    '("default" "G_CONNECT_DEFAULT" "0x0")
    '("after" "G_CONNECT_AFTER" "1 << 0")
    '("swapped" "G_CONNECT_SWAPPED" "1 << 1")
  )
)

;; Original typedef:
;; typedef enum
;; {
;;   G_SIGNAL_MATCH_ID	   = 1 << 0,
;;   G_SIGNAL_MATCH_DETAIL	   = 1 << 1,
;;   G_SIGNAL_MATCH_CLOSURE   = 1 << 2,
;;   G_SIGNAL_MATCH_FUNC	   = 1 << 3,
;;   G_SIGNAL_MATCH_DATA	   = 1 << 4,
;;   G_SIGNAL_MATCH_UNBLOCKED = 1 << 5
;; } GSignalMatchType;

(define-flags-extended SignalMatchType
  (in-module "G")
  (c-name "GSignalMatchType")
  (values
    '("id" "G_SIGNAL_MATCH_ID" "1 << 0")
    '("detail" "G_SIGNAL_MATCH_DETAIL" "1 << 1")
    '("closure" "G_SIGNAL_MATCH_CLOSURE" "1 << 2")
    '("func" "G_SIGNAL_MATCH_FUNC" "1 << 3")
    '("data" "G_SIGNAL_MATCH_DATA" "1 << 4")
    '("unblocked" "G_SIGNAL_MATCH_UNBLOCKED" "1 << 5")
  )
)

;; From gtype.h

;; Original typedef:
;; typedef enum	/*< skip >*/
;; {
;;   G_TYPE_DEBUG_NONE	= 0,
;;   G_TYPE_DEBUG_OBJECTS	= 1 << 0,
;;   G_TYPE_DEBUG_SIGNALS	= 1 << 1,
;;   G_TYPE_DEBUG_INSTANCE_COUNT = 1 << 2,
;;   G_TYPE_DEBUG_MASK	= 0x07
;; } GTypeDebugFlags GLIB_DEPRECATED_TYPE_IN_2_36;

(define-flags-extended TypeDebugFlags
  (in-module "G")
  (c-name "GTypeDebugFlags")
  (values
    '("none" "G_TYPE_DEBUG_NONE" "0x0")
    '("objects" "G_TYPE_DEBUG_OBJECTS" "1 << 0")
    '("signals" "G_TYPE_DEBUG_SIGNALS" "1 << 1")
    '("instance-count" "G_TYPE_DEBUG_INSTANCE_COUNT" "1 << 2")
    '("mask" "G_TYPE_DEBUG_MASK" "0x07")
  )
)

;; Original typedef:
;; typedef enum    /*< skip >*/
;; {
;;   /* There is no G_TYPE_FUNDAMENTAL_FLAGS_NONE: this is implemented to use
;;    * the same bits as GTypeFlags */
;;   G_TYPE_FLAG_CLASSED           = (1 << 0),
;;   G_TYPE_FLAG_INSTANTIATABLE    = (1 << 1),
;;   G_TYPE_FLAG_DERIVABLE         = (1 << 2),
;;   G_TYPE_FLAG_DEEP_DERIVABLE    = (1 << 3)
;; } GTypeFundamentalFlags;

(define-flags-extended TypeFundamentalFlags
  (in-module "G")
  (c-name "GTypeFundamentalFlags")
  (values
    '("classed" "G_TYPE_FLAG_CLASSED" "(1 << 0)")
    '("instantiatable" "G_TYPE_FLAG_INSTANTIATABLE" "(1 << 1)")
    '("derivable" "G_TYPE_FLAG_DERIVABLE" "(1 << 2)")
    '("deep-derivable" "G_TYPE_FLAG_DEEP_DERIVABLE" "(1 << 3)")
  )
)

;; Original typedef:
;; typedef enum    /*< skip >*/
;; {
;;   G_TYPE_FLAG_NONE GLIB_AVAILABLE_ENUMERATOR_IN_2_74 = 0,
;;   G_TYPE_FLAG_ABSTRACT = (1 << 4),
;;   G_TYPE_FLAG_VALUE_ABSTRACT = (1 << 5),
;;   G_TYPE_FLAG_FINAL GLIB_AVAILABLE_ENUMERATOR_IN_2_70 = (1 << 6)
;; } GTypeFlags;

(define-flags-extended TypeFlags
  (in-module "G")
  (c-name "GTypeFlags")
  (values
    '("none" "G_TYPE_FLAG_NONE" "0x0")
    '("abstract" "G_TYPE_FLAG_ABSTRACT" "(1 << 4)")
    '("value-abstract" "G_TYPE_FLAG_VALUE_ABSTRACT" "(1 << 5)")
    '("final" "G_TYPE_FLAG_FINAL" "(1 << 6)")
  )
)