Next: , Previous: get-g-enum-definition, Up: Generating type definitions by introspection


4.13.6 get-g-flags-definition

— Function: get-g-flags-definition
     (get-g-flags-definition type &optional lisp-name-package) => definition
type
A string naming the GFlags type
lisp-name-package
A package that will be used as a package for generated symbols (flags name). If not specified, symbols are interned in *package*
definition
A Lisp form that when evaluated defines the GFlags.

Uses GObject introspection capabilities to automatically produce the definition of GFlags. The foreign library that defines the flags type should be loaded.

See Generating names for CLOS classes and accessors for information about used method for generating names.

Example:

     (get-g-flags-definition "GtkCalendarDisplayOptions")
     =>
     (DEFINE-G-FLAGS "GtkCalendarDisplayOptions" GTK-CALENDAR-DISPLAY-OPTIONS
                     (:EXPORT T :TYPE-INITIALIZER
                      "gtk_calendar_display_options_get_type")
                     (:SHOW-HEADING 1) (:SHOW-DAY-NAMES 2) (:NO-MONTH-CHANGE 4)
                     (:SHOW-WEEK-NUMBERS 8) (:WEEK-START-MONDAY 16)
                     (:SHOW-DETAILS 32))