Commit 207eecc4 authored by Tim Janik's avatar Tim Janik Committed by Tim Janik

wrapped enum definitions with glib macros.

Mon Jun  8 02:52:37 1998  Tim Janik  <timj@gtk.org>

        * gdk/gdkprivate.h:
        * gdk/gdktypes.h:
        * gtk/gtkprivate.h:
        * gtk/gtkwidget.h:
        * gtk/gtkobject.h: wrapped enum definitions with glib macros.

        * reworked enum value array generation code. gtk.defs is a generated
        file now.
parent 1e32cc3d
Mon Jun 8 02:52:37 1998 Tim Janik <timj@gtk.org>
* gdk/gdkprivate.h:
* gdk/gdktypes.h:
* gtk/gtkprivate.h:
* gtk/gtkwidget.h:
* gtk/gtkobject.h: wrapped enum definitions with glib macros.
* reworked enum value array generation code. gtk.defs is a generated
file now.
Sun Jun 7 14:34:31 1998 Tim Janik <timj@gtk.org>
* gtk/gtkitemfactory.c (gtk_item_factory_create_menu_entries): feature
......
Mon Jun 8 02:52:37 1998 Tim Janik <timj@gtk.org>
* gdk/gdkprivate.h:
* gdk/gdktypes.h:
* gtk/gtkprivate.h:
* gtk/gtkwidget.h:
* gtk/gtkobject.h: wrapped enum definitions with glib macros.
* reworked enum value array generation code. gtk.defs is a generated
file now.
Sun Jun 7 14:34:31 1998 Tim Janik <timj@gtk.org>
* gtk/gtkitemfactory.c (gtk_item_factory_create_menu_entries): feature
......
Mon Jun 8 02:52:37 1998 Tim Janik <timj@gtk.org>
* gdk/gdkprivate.h:
* gdk/gdktypes.h:
* gtk/gtkprivate.h:
* gtk/gtkwidget.h:
* gtk/gtkobject.h: wrapped enum definitions with glib macros.
* reworked enum value array generation code. gtk.defs is a generated
file now.
Sun Jun 7 14:34:31 1998 Tim Janik <timj@gtk.org>
* gtk/gtkitemfactory.c (gtk_item_factory_create_menu_entries): feature
......
Mon Jun 8 02:52:37 1998 Tim Janik <timj@gtk.org>
* gdk/gdkprivate.h:
* gdk/gdktypes.h:
* gtk/gtkprivate.h:
* gtk/gtkwidget.h:
* gtk/gtkobject.h: wrapped enum definitions with glib macros.
* reworked enum value array generation code. gtk.defs is a generated
file now.
Sun Jun 7 14:34:31 1998 Tim Janik <timj@gtk.org>
* gtk/gtkitemfactory.c (gtk_item_factory_create_menu_entries): feature
......
Mon Jun 8 02:52:37 1998 Tim Janik <timj@gtk.org>
* gdk/gdkprivate.h:
* gdk/gdktypes.h:
* gtk/gtkprivate.h:
* gtk/gtkwidget.h:
* gtk/gtkobject.h: wrapped enum definitions with glib macros.
* reworked enum value array generation code. gtk.defs is a generated
file now.
Sun Jun 7 14:34:31 1998 Tim Janik <timj@gtk.org>
* gtk/gtkitemfactory.c (gtk_item_factory_create_menu_entries): feature
......
Mon Jun 8 02:52:37 1998 Tim Janik <timj@gtk.org>
* gdk/gdkprivate.h:
* gdk/gdktypes.h:
* gtk/gtkprivate.h:
* gtk/gtkwidget.h:
* gtk/gtkobject.h: wrapped enum definitions with glib macros.
* reworked enum value array generation code. gtk.defs is a generated
file now.
Sun Jun 7 14:34:31 1998 Tim Janik <timj@gtk.org>
* gtk/gtkitemfactory.c (gtk_item_factory_create_menu_entries): feature
......
Mon Jun 8 02:52:37 1998 Tim Janik <timj@gtk.org>
* gdk/gdkprivate.h:
* gdk/gdktypes.h:
* gtk/gtkprivate.h:
* gtk/gtkwidget.h:
* gtk/gtkobject.h: wrapped enum definitions with glib macros.
* reworked enum value array generation code. gtk.defs is a generated
file now.
Sun Jun 7 14:34:31 1998 Tim Janik <timj@gtk.org>
* gtk/gtkitemfactory.c (gtk_item_factory_create_menu_entries): feature
......
......@@ -204,12 +204,12 @@ struct _GdkRegionPrivate
};
typedef enum {
GDK_DEBUG_MISC = 1<<0,
GDK_DEBUG_EVENTS = 1 << 1,
GDK_DEBUG_DND = 1<<2,
GDK_DEBUG_COLOR_CONTEXT = 1<<3,
GDK_DEBUG_XIM = 1<<4
} GdkDebugFlag;
G_NV (GDK_DEBUG_MISC, misc, 1 << 0),
G_NV (GDK_DEBUG_EVENTS, events, 1 << 1),
G_NV (GDK_DEBUG_DND, dnd, 1 << 2),
G_NV (GDK_DEBUG_COLOR_CONTEXT,color-context, 1 << 3),
G_NV (GDK_DEBUG_XIM, xim, 1 << 4)
} G_FLAGS (GdkDebugFlag);
void gdk_window_init (void);
void gdk_visual_init (void);
......
This diff is collapsed.
Mon Jun 8 01:06:47 1998 Tim Janik <timj@gtk.org>
* glib.h: added enum-helper macros for code generation.
added G_BREAKPOINT().
Sat Jun 6 14:09:22 PDT 1998 Manish Singh <yosh@gimp.org>
* gmem.c: commented out MEM_PROFILE and MEM_CHECK, causing weird
......
......@@ -117,6 +117,23 @@
#undef CLAMP
#define CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x)))
/* Provide simple enum value macro wrappers that ease automated enum value
* stringification code.
*/
#if !defined (G_CODE_GENERATION)
#define G_ENUM( EnumerationName ) EnumerationName
#define G_FLAGS( EnumerationName ) EnumerationName
#define G_NV( VALUE_NAME , value_nick, VALUE) VALUE_NAME = (VALUE)
#define G_SV( VALUE_NAME, value_nick ) VALUE_NAME
#else /* G_CODE_GENERATION */
#define G_ENUM( EnumerationName ) G_ENUM_E + EnumerationName +
#define G_FLAGS( EnumerationName ) G_ENUM_F + EnumerationName +
#define G_NV( VALUE_NAME , value_nick, VALUE) G_ENUM_V + VALUE_NAME + value_nick +
#define G_SV( VALUE_NAME, value_nick ) G_ENUM_V + VALUE_NAME + value_nick +
#endif /* G_CODE_GENERATION */
/* Provide simple macro statement wrappers (adapted from Pearl):
* G_STMT_START { statements; } G_STMT_END;
* can be used as a single statement, as in
......
......@@ -202,19 +202,38 @@ gtkinclude_HEADERS = \
gtkwindow.h \
gtktypebuiltins.h
$(srcdir)/gtktypebuiltins.h: @MAINT@ $(srcdir)/gtk.defs $(srcdir)/gentypeinfo.el
$(SHELL) $(srcdir)/runelisp $(srcdir)/gentypeinfo.el idmac $< $@
auto-files:
make $(srcdir)/gtk.defs
make $(srcdir)/gtktypebuiltins1.c
make $(srcdir)/gtktypebuiltins2.c
make $(srcdir)/gtktypebuiltins.h
$(srcdir)/gtk.defs: @MAINT@
$(COMPILE) -E -DG_CODE_GENERATION $(srcdir)/makeenums.h $(CFLAGS) | \
awk -f $(srcdir)/makeenums.awk - defs > $@
cat $(srcdir)/gtk-boxed.defs >> $@
$(srcdir)/gtktypebuiltins1.c: @MAINT@
$(COMPILE) -E -DG_CODE_GENERATION $(srcdir)/makeenums.h $(CFLAGS) | \
awk -f $(srcdir)/makeenums.awk - arrays > $@
$(srcdir)/gtktypebuiltins.c: @MAINT@ $(srcdir)/gtk.defs $(srcdir)/gentypeinfo.el
$(srcdir)/gtktypebuiltins2.c: @MAINT@ $(srcdir)/gtk.defs $(srcdir)/gentypeinfo.el
$(SHELL) $(srcdir)/runelisp $(srcdir)/gentypeinfo.el id $< $@
$(srcdir)/gtkenumvalues.c: @MAINT@ $(srcdir)/gtk.defs $(srcdir)/makeenums.awk
awk -f makeenums.awk $(srcdir)/gtk.defs > $@
$(srcdir)/gtktypebuiltins.h: @MAINT@ $(srcdir)/gtk.defs $(srcdir)/gentypeinfo.el
$(SHELL) $(srcdir)/runelisp $(srcdir)/gentypeinfo.el idmac $< $@
# special remake rules
$(srcdir)/gtktypeutils.h: @MAINT@ $(srcdir)/gtktypebuiltins.h
$(srcdir)/gtktypeutils.c: @MAINT@ $(srcdir)/gtktypebuiltins.c
$(srcdir)/gtktypeutils.c: @MAINT@ $(srcdir)/gtkenumvalues.c
$(srcdir)/gtk.defs: @MAINT@ $(srcdir)/makeenums.awk
$(srcdir)/gtk.defs: @MAINT@ $(srcdir)/makeenums.h
$(srcdir)/gtk.defs: @MAINT@ $(srcdir)/gtk-boxed.defs
$(srcdir)/gtktypebuiltins1.c: @MAINT@ $(srcdir)/gtk.defs
$(srcdir)/gtktypebuiltins1.c: @MAINT@ $(srcdir)/makeenums.awk
$(srcdir)/gtktypebuiltins1.c: @MAINT@ $(srcdir)/makeenums.h
$(srcdir)/gtktypebuiltins2.c: @MAINT@ $(srcdir)/gtk.defs
$(srcdir)/gtktypebuiltins2.c: @MAINT@ $(srcdir)/gentypeinfo.el
$(srcdir)/gtktypebuiltins.h: @MAINT@ $(srcdir)/gtk.defs
$(srcdir)/gtktypebuiltins.h: @MAINT@ $(srcdir)/gentypeinfo.el
libgtk_1_1_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
......@@ -223,13 +242,15 @@ EXTRA_DIST = \
line-wrap.xbm \
testgtkrc \
testgtkrc2 \
gtk.defs \
gtkfeatures.h.in \
makeenums.awk \
makeenums.h \
runelisp \
gentypeinfo.el \
makeenums.awk \
gtktypebuiltins.c \
gtkenumvalues.c \
gtktypebuiltins1.c \
gtktypebuiltins2.c \
gtk-boxed.defs \
gtk.defs \
test.xpm \
marble.xpm \
3DRings.xpm \
......
This diff is collapsed.
;; -*- scheme -*-
;; generated by makeenums.awk ; -*- scheme -*-
(define-enum GdkWindowType
(root GDK_WINDOW_ROOT)
(toplevel GDK_WINDOW_TOPLEVEL)
(child GDK_WINDOW_CHILD)
(dialog GDK_WINDOW_DIALOG)
(temp GDK_WINDOW_TEMP)
(pixmap GDK_WINDOW_PIXMAP)
(foreign GDK_WINDOW_FOREIGN))
(define-enum GdkWindowClass
(input-output GDK_INPUT_OUTPUT)
(input-only GDK_INPUT_ONLY))
(define-enum GdkImageType
(normal GDK_IMAGE_NORMAL)
(shared GDK_IMAGE_SHARED)
(fastest GDK_IMAGE_FASTEST))
(define-enum GdkVisualType
(static-gray GDK_VISUAL_STATIC_GRAY)
(grayscale GDK_VISUAL_GRAYSCALE)
(static-color GDK_VISUAL_STATIC_COLOR)
(pseudo-color GDK_VISUAL_PSEUDO_COLOR)
(true-color GDK_VISUAL_TRUE_COLOR)
(direct-color GDK_VISUAL_DIRECT_COLOR))
(define-enum GdkFontType
(font GDK_FONT_FONT)
(fontset GDK_FONT_FONTSET))
(define-flags GdkWindowAttributesType
(title GDK_WA_TITLE)
(x GDK_WA_X)
(y GDK_WA_Y)
(cursor GDK_WA_CURSOR)
(colormap GDK_WA_COLORMAP)
(visual GDK_WA_VISUAL)
(wmclass GDK_WA_WMCLASS)
(noredir GDK_WA_NOREDIR))
(define-flags GdkWindowHints
(pos GDK_HINT_POS)
(min-size GDK_HINT_MIN_SIZE)
(max-size GDK_HINT_MAX_SIZE))
(define-enum GdkFunction
(copy GDK_COPY)
(invert GDK_INVERT)
(xor GDK_XOR))
(define-enum GdkFill
(solid GDK_SOLID)
(tiled GDK_TILED)
(stippled GDK_STIPPLED)
(opaque-stippled GDK_OPAQUE_STIPPLED))
(define-enum GdkFillRule
(even-odd-rule GDK_EVEN_ODD_RULE)
(winding-rule GDK_WINDING_RULE))
(define-enum GdkLineStyle
(solid GDK_LINE_SOLID)
(on-off-dash GDK_LINE_ON_OFF_DASH)
(double-dash GDK_LINE_DOUBLE_DASH))
(define-enum GdkCapStyle
(not-last GDK_CAP_NOT_LAST)
(butt GDK_CAP_BUTT)
(round GDK_CAP_ROUND)
(projecting GDK_CAP_PROJECTING))
(define-enum GdkJoinStyle
(miter GDK_JOIN_MITER)
(round GDK_JOIN_ROUND)
(bevel GDK_JOIN_BEVEL))
(define-enum GdkFilterReturn
(continue GDK_FILTER_CONTINUE)
(translate GDK_FILTER_TRANSLATE)
(remove GDK_FILTER_REMOVE))
(define-enum GdkVisibilityState
(unobscured GDK_VISIBILITY_UNOBSCURED)
(partial GDK_VISIBILITY_PARTIAL)
(fully-obscured GDK_VISIBILITY_FULLY_OBSCURED))
(define-enum GdkEventType
(nothing GDK_NOTHING)
(delete GDK_DELETE)
(destroy GDK_DESTROY)
(expose GDK_EXPOSE)
(motion-notify GDK_MOTION_NOTIFY)
(button-press GDK_BUTTON_PRESS)
(2button-press GDK_2BUTTON_PRESS)
(3button-press GDK_3BUTTON_PRESS)
(button-release GDK_BUTTON_RELEASE)
(key-press GDK_KEY_PRESS)
(key-release GDK_KEY_RELEASE)
(enter-notify GDK_ENTER_NOTIFY)
(leave-notify GDK_LEAVE_NOTIFY)
(focus-change GDK_FOCUS_CHANGE)
(configure GDK_CONFIGURE)
(map GDK_MAP)
(unmap GDK_UNMAP)
(property-notify GDK_PROPERTY_NOTIFY)
(selection-clear GDK_SELECTION_CLEAR)
(selection-request GDK_SELECTION_REQUEST)
(selection-notify GDK_SELECTION_NOTIFY)
(proximity-in GDK_PROXIMITY_IN)
(proximity-out GDK_PROXIMITY_OUT)
(drag-begin GDK_DRAG_BEGIN)
(drag-request GDK_DRAG_REQUEST)
(drop-enter GDK_DROP_ENTER)
(drop-leave GDK_DROP_LEAVE)
(drop-data-avail GDK_DROP_DATA_AVAIL)
(client-event GDK_CLIENT_EVENT)
(visibility-notify GDK_VISIBILITY_NOTIFY)
(no-expose GDK_NO_EXPOSE)
(other-event GDK_OTHER_EVENT))
(define-flags GdkEventMask
(exposure-mask GDK_EXPOSURE_MASK)
(pointer-motion-mask GDK_POINTER_MOTION_MASK)
(pointer-motion-hint-mask GDK_POINTER_MOTION_HINT_MASK)
(button-motion-mask GDK_BUTTON_MOTION_MASK)
(button1-motion-mask GDK_BUTTON1_MOTION_MASK)
(button2-motion-mask GDK_BUTTON2_MOTION_MASK)
(button3-motion-mask GDK_BUTTON3_MOTION_MASK)
(button-press-mask GDK_BUTTON_PRESS_MASK)
(button-release-mask GDK_BUTTON_RELEASE_MASK)
(key-press-mask GDK_KEY_PRESS_MASK)
(key-release-mask GDK_KEY_RELEASE_MASK)
(enter-notify-mask GDK_ENTER_NOTIFY_MASK)
(leave-notify-mask GDK_LEAVE_NOTIFY_MASK)
(focus-change-mask GDK_FOCUS_CHANGE_MASK)
(structure-mask GDK_STRUCTURE_MASK)
(property-change-mask GDK_PROPERTY_CHANGE_MASK)
(visibility-notify-mask GDK_VISIBILITY_NOTIFY_MASK)
(proximity-in-mask GDK_PROXIMITY_IN_MASK)
(proximity-out-mask GDK_PROXIMITY_OUT_MASK)
(substructure-mask GDK_SUBSTRUCTURE_MASK)
(all-events-mask GDK_ALL_EVENTS_MASK))
(define-enum GdkNotifyType
(ancestor GDK_NOTIFY_ANCESTOR)
(virtual GDK_NOTIFY_VIRTUAL)
(inferior GDK_NOTIFY_INFERIOR)
(nonlinear GDK_NOTIFY_NONLINEAR)
(nonlinear-virtual GDK_NOTIFY_NONLINEAR_VIRTUAL)
(unknown GDK_NOTIFY_UNKNOWN))
;;; Gtk enums from gtkenums.h
(define-enum GdkCrossingMode
(crossing-normal GDK_CROSSING_NORMAL)
(crossing-grab GDK_CROSSING_GRAB)
(crossing-ungrab GDK_CROSSING_UNGRAB))
(define-flags GdkModifierType
(shift-mask GDK_SHIFT_MASK)
(lock-mask GDK_LOCK_MASK)
(control-mask GDK_CONTROL_MASK)
(mod1-mask GDK_MOD1_MASK)
(mod2-mask GDK_MOD2_MASK)
(mod3-mask GDK_MOD3_MASK)
(mod4-mask GDK_MOD4_MASK)
(mod5-mask GDK_MOD5_MASK)
(button1-mask GDK_BUTTON1_MASK)
(button2-mask GDK_BUTTON2_MASK)
(button3-mask GDK_BUTTON3_MASK)
(button4-mask GDK_BUTTON4_MASK)
(button5-mask GDK_BUTTON5_MASK)
(after-mask GDK_AFTER_MASK)
(modifier-mask GDK_MODIFIER_MASK))
(define-enum GdkSubwindowMode
(clip-by-children GDK_CLIP_BY_CHILDREN)
(include-inferiors GDK_INCLUDE_INFERIORS))
(define-flags GdkInputCondition
(read GDK_INPUT_READ)
(write GDK_INPUT_WRITE)
(exception GDK_INPUT_EXCEPTION))
(define-enum GdkStatus
(ok GDK_OK)
(error GDK_ERROR)
(error-param GDK_ERROR_PARAM)
(error-file GDK_ERROR_FILE)
(error-mem GDK_ERROR_MEM))
(define-enum GdkByteOrder
(lsb-first GDK_LSB_FIRST)
(msb-first GDK_MSB_FIRST))
(define-flags GdkGCValuesMask
(foreground GDK_GC_FOREGROUND)
(background GDK_GC_BACKGROUND)
(font GDK_GC_FONT)
(function GDK_GC_FUNCTION)
(fill GDK_GC_FILL)
(tile GDK_GC_TILE)
(stipple GDK_GC_STIPPLE)
(clip-mask GDK_GC_CLIP_MASK)
(subwindow GDK_GC_SUBWINDOW)
(ts-x-origin GDK_GC_TS_X_ORIGIN)
(ts-y-origin GDK_GC_TS_Y_ORIGIN)
(clip-x-origin GDK_GC_CLIP_X_ORIGIN)
(clip-y-origin GDK_GC_CLIP_Y_ORIGIN)
(exposures GDK_GC_EXPOSURES)
(line-width GDK_GC_LINE_WIDTH)
(line-style GDK_GC_LINE_STYLE)
(cap-style GDK_GC_CAP_STYLE)
(join-style GDK_GC_JOIN_STYLE))
(define-enum GdkSelection
(primary GDK_SELECTION_PRIMARY)
(secondary GDK_SELECTION_SECONDARY))
(define-enum GdkPropertyState
(new-value GDK_PROPERTY_NEW_VALUE)
(delete GDK_PROPERTY_DELETE))
(define-enum GdkPropMode
(replace GDK_PROP_MODE_REPLACE)
(prepend GDK_PROP_MODE_PREPEND)
(append GDK_PROP_MODE_APPEND))
(define-enum GdkDndType
(notdnd GDK_DNDTYPE_NOTDND)
(unknown GDK_DNDTYPE_UNKNOWN)
(rawdata GDK_DNDTYPE_RAWDATA)
(file GDK_DNDTYPE_FILE)
(files GDK_DNDTYPE_FILES)
(text GDK_DNDTYPE_TEXT)
(dir GDK_DNDTYPE_DIR)
(link GDK_DNDTYPE_LINK)
(exe GDK_DNDTYPE_EXE)
(url GDK_DNDTYPE_URL)
(mime GDK_DNDTYPE_MIME)
(end GDK_DNDTYPE_END))
(define-enum GdkInputSource
(mouse GDK_SOURCE_MOUSE)
(pen GDK_SOURCE_PEN)
(eraser GDK_SOURCE_ERASER)
(cursor GDK_SOURCE_CURSOR))
(define-enum GdkInputMode
(disabled GDK_MODE_DISABLED)
(screen GDK_MODE_SCREEN)
(window GDK_MODE_WINDOW))
(define-enum GdkAxisUse
(ignore GDK_AXIS_IGNORE)
(x GDK_AXIS_X)
(y GDK_AXIS_Y)
(pressure GDK_AXIS_PRESSURE)
(xtilt GDK_AXIS_XTILT)
(ytilt GDK_AXIS_YTILT)
(last GDK_AXIS_LAST))
(define-enum GdkTarget
(bitmap GDK_TARGET_BITMAP)
(colormap GDK_TARGET_COLORMAP)
(drawable GDK_TARGET_DRAWABLE)
(pixmap GDK_TARGET_PIXMAP)
(string GDK_TARGET_STRING))
(define-enum GdkSelectionType
(atom GDK_SELECTION_TYPE_ATOM)
(bitmap GDK_SELECTION_TYPE_BITMAP)
(colormap GDK_SELECTION_TYPE_COLORMAP)
(drawable GDK_SELECTION_TYPE_DRAWABLE)
(integer GDK_SELECTION_TYPE_INTEGER)
(pixmap GDK_SELECTION_TYPE_PIXMAP)
(window GDK_SELECTION_TYPE_WINDOW)
(string GDK_SELECTION_TYPE_STRING))
(define-enum GdkExtensionMode
(none GDK_EXTENSION_EVENTS_NONE)
(all GDK_EXTENSION_EVENTS_ALL)
(cursor GDK_EXTENSION_EVENTS_CURSOR))
(define-flags GdkWMDecoration
(all GDK_DECOR_ALL)
(border GDK_DECOR_BORDER)
(resizeh GDK_DECOR_RESIZEH)
(title GDK_DECOR_TITLE)
(menu GDK_DECOR_MENU)
(minimize GDK_DECOR_MINIMIZE)
(maximize GDK_DECOR_MAXIMIZE))
(define-flags GdkWMFunction
(all GDK_FUNC_ALL)
(resize GDK_FUNC_RESIZE)
(move GDK_FUNC_MOVE)
(minimize GDK_FUNC_MINIMIZE)
(maximize GDK_FUNC_MAXIMIZE)
(close GDK_FUNC_CLOSE))
(define-enum GdkColorContextMode
(undefined GDK_CC_MODE_UNDEFINED)
(bw GDK_CC_MODE_BW)
(std-cmap GDK_CC_MODE_STD_CMAP)
(true GDK_CC_MODE_TRUE)
(my-gray GDK_CC_MODE_MY_GRAY)
(palette GDK_CC_MODE_PALETTE))
(define-enum GdkOverlapType
(in GDK_OVERLAP_RECTANGLE_IN)
(out GDK_OVERLAP_RECTANGLE_OUT)
(part GDK_OVERLAP_RECTANGLE_PART))
(define-flags GtkAccelFlags
(visible GTK_ACCEL_VISIBLE)
......@@ -26,6 +337,11 @@
(start GTK_BUTTONBOX_START)
(end GTK_BUTTONBOX_END))
(define-enum GtkCurveType
(linear GTK_CURVE_TYPE_LINEAR)
(spline GTK_CURVE_TYPE_SPLINE)
(free GTK_CURVE_TYPE_FREE))
(define-enum GtkDirectionType
(tab-forward GTK_DIR_TAB_FORWARD)
(tab-backward GTK_DIR_TAB_BACKWARD)
......@@ -91,7 +407,8 @@
(define-enum GtkPreviewType
(color GTK_PREVIEW_COLOR)
(grayscale GTK_PREVIEW_GRAYSCALE))
(grayscale GTK_PREVIEW_GRAYSCALE)
(greyscale GTK_PREVIEW_GREYSCALE))
(define-enum GtkReliefStyle
(normal GTK_RELIEF_NORMAL)
......@@ -158,8 +475,8 @@
(define-enum GtkVisibility
(none GTK_VISIBILITY_NONE)
(discontinuous GTK_UPDATE_DISCONTINUOUS)
(delayed GTK_UPDATE_DELAYED))
(partial GTK_VISIBILITY_PARTIAL)
(full GTK_VISIBILITY_FULL))
(define-enum GtkWindowPosition
(none GTK_WIN_POS_NONE)
......@@ -171,7 +488,33 @@
(dialog GTK_WINDOW_DIALOG)
(popup GTK_WINDOW_POPUP))
;;; Gtk enums from gtkobject.h
(define-enum GtkFundamentalType
(invalid GTK_TYPE_INVALID)
(none GTK_TYPE_NONE)
(char GTK_TYPE_CHAR)
(bool GTK_TYPE_BOOL)
(int GTK_TYPE_INT)
(uint GTK_TYPE_UINT)
(long GTK_TYPE_LONG)
(ulong GTK_TYPE_ULONG)
(float GTK_TYPE_FLOAT)
(double GTK_TYPE_DOUBLE)
(string GTK_TYPE_STRING)
(enum GTK_TYPE_ENUM)
(flags GTK_TYPE_FLAGS)
(boxed GTK_TYPE_BOXED)
(foreign GTK_TYPE_FOREIGN)
(callback GTK_TYPE_CALLBACK)
(args GTK_TYPE_ARGS)
(pointer GTK_TYPE_POINTER)
(signal GTK_TYPE_SIGNAL)
(c-callback GTK_TYPE_C_CALLBACK)
(object GTK_TYPE_OBJECT))
(define-flags GtkDebugFlag
(objects GTK_DEBUG_OBJECTS)
(misc GTK_DEBUG_MISC)
(signals GTK_DEBUG_SIGNALS))
(define-flags GtkObjectFlags
(destroyed GTK_DESTROYED)
......@@ -186,8 +529,6 @@
(mask GTK_ARG_MASK)
(readwrite GTK_ARG_READWRITE))
;;; Gtk enums from gtkwidget.h
(define-flags GtkWidgetFlags
(toplevel GTK_TOPLEVEL)
(no-window GTK_NO_WINDOW)
......@@ -204,8 +545,6 @@
(rc-style GTK_RC_STYLE)
(basic GTK_BASIC))
;;; Gtk enums from gtkprivate.h
(define-flags GtkPrivateFlags
(user-style PRIVATE_GTK_USER_STYLE)
(redraw-pending PRIVATE_GTK_REDRAW_PENDING)
......@@ -215,243 +554,21 @@
(has-shape-mask PRIVATE_GTK_HAS_SHAPE_MASK)
(in-reparent PRIVATE_GTK_IN_REPARENT))
(define-enum GtkCurveType
(linear GTK_CURVE_TYPE_LINEAR)
(spline GTK_CURVE_TYPE_SPLINE)
(free GTK_CURVE_TYPE_FREE))
(define-flags GdkDebugFlag
(misc GDK_DEBUG_MISC)
(events GDK_DEBUG_EVENTS)
(dnd GDK_DEBUG_DND)
(color-context GDK_DEBUG_COLOR_CONTEXT)
(xim GDK_DEBUG_XIM))
(define-enum GtkFundamentalType
(invalid GTK_TYPE_INVALID)
(none GTK_TYPE_NONE)
(char GTK_TYPE_CHAR)
(bool GTK_TYPE_BOOL)
(int GTK_TYPE_INT)
(uint GTK_TYPE_UINT)
(long GTK_TYPE_LONG)
(ulong GTK_TYPE_ULONG)
(float GTK_TYPE_FLOAT)
(double GTK_TYPE_DOUBLE)
(string GTK_TYPE_STRING)
(enum GTK_TYPE_ENUM)
(flags GTK_TYPE_FLAGS)
(boxed GTK_TYPE_BOXED)
(foreign GTK_TYPE_FOREIGN)
(callback GTK_TYPE_CALLBACK)
(args GTK_TYPE_ARGS)
(pointer GTK_TYPE_POINTER)
(signal GTK_TYPE_SIGNAL)
(c-callback GTK_TYPE_C_CALLBACK)
(object GTK_TYPE_OBJECT))
;;; Gdk enums
(define-enum GdkWindowType
(root GDK_WINDOW_ROOT)
(toplevel GDK_WINDOW_TOPLEVEL)
(child GDK_WINDOW_CHILD)
(dialog GDK_WINDOW_DIALOG)
(temp GDK_WINDOW_TEMP)
(pixmap GDK_WINDOW_PIXMAP))
(define-enum GdkWindowClass
(input-output GDK_INPUT_OUTPUT)
(input-only GDK_INPUT_ONLY))
(define-enum GdkImageType
(normal GDK_IMAGE_NORMAL)
(shared GDK_IMAGE_SHARED)
(fastest GDK_IMAGE_FASTEST))
(define-enum GdkVisualType
(static-gray GDK_VISUAL_STATIC_GRAY)
(grayscale GDK_VISUAL_GRAYSCALE)
(static-color GDK_VISUAL_STATIC_COLOR)
(pseudo-color GDK_VISUAL_PSEUDO_COLOR)
(true-color GDK_VISUAL_TRUE_COLOR)
(direct-color GDK_VISUAL_DIRECT_COLOR))
(define-flags GdkWindowAttributesType
(title GDK_WA_TITLE)
(x GDK_WA_X)
(y GDK_WA_Y)
(cursor GDK_WA_CURSOR)
(colormap GDK_WA_COLORMAP)
(visual GDK_WA_VISUAL))
(define-flags GdkWindowHints
(pos GDK_HINT_POS)
(min-size GDK_HINT_MIN_SIZE)
(max-size GDK_HINT_MAX_SIZE))
(define-enum GdkFunction
(copy GDK_COPY)
(invert GDK_INVERT)
(xor GDK_XOR))
(define-enum GdkFill
(solid GDK_SOLID)
(tiled GDK_TILED)
(stippled GDK_STIPPLED)
(opaque-stippled GDK_OPAQUE_STIPPLED))
(define-enum GdkLineStyle
(solid GDK_LINE_SOLID)
(on-off-dash GDK_LINE_ON_OFF_DASH)
(double-dash GDK_LINE_DOUBLE_DASH))
(define-enum GdkCapStyle
(not-last GDK_CAP_NOT_LAST)
(butt GDK_CAP_BUTT)
(round GDK_CAP_ROUND)
(projecting GDK_CAP_PROJECTING))
(define-enum GdkJoinStyle
(miter GDK_JOIN_MITER)
(round GDK_JOIN_ROUND)
(bevel GDK_JOIN_BEVEL))
(define-enum GdkCursorType
(cursor GDK_LAST_CURSOR))
(define-enum GdkEventType
(nothing GDK_NOTHING)
(delete GDK_DELETE)
(destroy GDK_DESTROY)
(expose GDK_EXPOSE)
(motion-notify GDK_MOTION_NOTIFY)
(button-press GDK_BUTTON_PRESS)
(2button-press GDK_2BUTTON_PRESS)
(3button-press GDK_3BUTTON_PRESS)
(button-release GDK_BUTTON_RELEASE)
(key-press GDK_KEY_PRESS)