Next: get-g-flags-definition, Previous: define-g-flags, Up: Generating type definitions by introspection
(get-g-enum-definition type &optional lisp-name-package) => definition
*package*
Uses GObject introspection capabilities to automatically produce the definition of GEnum. The foreign library that defines the enum type should be loaded.
See Generating names for CLOS classes and accessors for information about used method for generating names.
Example:
(get-g-enum-definition "GtkDirectionType") => (DEFINE-G-ENUM "GtkDirectionType" GTK-DIRECTION-TYPE (:EXPORT T :TYPE-INITIALIZER "gtk_direction_type_get_type") (:TAB-FORWARD 0) (:TAB-BACKWARD 1) (:UP 2) (:DOWN 3) (:LEFT 4) (:RIGHT 5))