Next: get-g-enum-definition, Previous: define-g-enum, Up: Generating type definitions by introspection
(define-g-flags g-name name (&key (export t) type-initializer) &body value*)
value ::= :keyword
value ::= (:keyword integer)
name
flags_get_type.
Macro that defines CFFI bitfield, registers it with GValue, and calls the type initializer.
Example:
(define-g-flags "GtkAttachOptions" attach-options
(:export t :type-initializer "gtk_attach_options_get_type")
(:expand 1) (:shrink 2) (:fill 4))
(define-g-flags "GtkButtonAction" button-action
(:export t :type-initializer "gtk_button_action_get_type")
:ignored :selects :drags :expands)