[gtkmm] Fix the build with GTK+ git master.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Fix the build with GTK+ git master.
- Date: Sat, 29 May 2010 14:15:11 +0000 (UTC)
commit 235ea7fde790a7d10c6aa15a51666cf9af5604d7
Author: Murray Cumming <murrayc murrayc com>
Date: Sat May 29 16:15:00 2010 +0200
Fix the build with GTK+ git master.
* gdk/src/device.hg: Regenerate with h2defs.py
* gdk/src/gdk_methods.defs: get_history(): Change an int* parameter to
guint* to fix the build with git master of GTK+.
ChangeLog | 8 +
gdk/src/device.hg | 5 +-
gdk/src/gdk_methods.defs | 2697 +++++++++++++++++++++++++++++++++++++---------
3 files changed, 2197 insertions(+), 513 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index e7e7146..b5f557c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-05-29 Murray Cumming <murrayc murrayc com>
+
+ Fix the build with GTK+ git master.
+
+ * gdk/src/device.hg: Regenerate with h2defs.py
+ * gdk/src/gdk_methods.defs: get_history(): Change an int* parameter to
+ guint* to fix the build with git master of GTK+.
+
2.90.0 (unstable):
2010-05-18 Murray Cumming <murrayc murrayc com>
diff --git a/gdk/src/device.hg b/gdk/src/device.hg
index bae3197..6d25ba0 100644
--- a/gdk/src/device.hg
+++ b/gdk/src/device.hg
@@ -48,7 +48,10 @@ public:
_WRAP_METHOD(void set_key(guint index_, guint keyval, ModifierType modifiers), gdk_device_set_key)
_WRAP_METHOD(void set_axis_use(guint index_, AxisUse use), gdk_device_set_axis_use)
_WRAP_METHOD(void get_state(const Glib::RefPtr<Window>& window, double& axes, ModifierType& mask), gdk_device_get_state)
- _WRAP_METHOD(bool get_history(const Glib::RefPtr<Window>& window, guint32 start, guint32 stop, GdkTimeCoord**& events, int& n_events), gdk_device_get_history)
+
+ //TODO: Return a list instead because this is ugly and C-like:
+ _WRAP_METHOD(bool get_history(const Glib::RefPtr<Window>& window, guint32 start, guint32 stop, GdkTimeCoord**& events, guint& n_events), gdk_device_get_history)
+
_WRAP_METHOD(bool get_axis(double& axes, AxisUse use, double& value) const, gdk_device_get_axis)
/** Gets the name of this device.
diff --git a/gdk/src/gdk_methods.defs b/gdk/src/gdk_methods.defs
index 9d8493f..2f47a75 100644
--- a/gdk/src/gdk_methods.defs
+++ b/gdk/src/gdk_methods.defs
@@ -7,6 +7,13 @@
(gtype-id "GDK_TYPE_COLORMAP")
)
+(define-object DeviceManager
+ (in-module "Gdk")
+ (parent "GObject")
+ (c-name "GdkDeviceManager")
+ (gtype-id "GDK_TYPE_DEVICE_MANAGER")
+)
+
(define-object Display
(in-module "Gdk")
(parent "GObject")
@@ -49,12 +56,6 @@
(gtype-id "GDK_TYPE_KEYMAP")
)
-(define-object Paintable
- (in-module "Gdk")
- (c-name "GdkPaintable")
- (gtype-id "GDK_TYPE_PAINTABLE")
-)
-
(define-object PangoRenderer
(in-module "Gdk")
(parent "PangoRenderer")
@@ -62,6 +63,27 @@
(gtype-id "GDK_TYPE_PANGO_RENDERER")
)
+(define-object PixbufAnimation
+ (in-module "Gdk")
+ (parent "GObject")
+ (c-name "GdkPixbufAnimation")
+ (gtype-id "GDK_TYPE_PIXBUF_ANIMATION")
+)
+
+(define-object PixbufAnimationIter
+ (in-module "Gdk")
+ (parent "GObject")
+ (c-name "GdkPixbufAnimationIter")
+ (gtype-id "GDK_TYPE_PIXBUF_ANIMATION_ITER")
+)
+
+(define-object PixbufLoader
+ (in-module "Gdk")
+ (parent "GObject")
+ (c-name "GdkPixbufLoader")
+ (gtype-id "GDK_TYPE_PIXBUF_LOADER")
+)
+
(define-object PixmapObject
(in-module "Gdk")
(parent "GdkDrawable")
@@ -76,12 +98,6 @@
(gtype-id "GDK_TYPE_SCREEN")
)
-(define-object WindowImpl
- (in-module "Gdk")
- (c-name "GdkWindowImpl")
- (gtype-id "GDK_TYPE_WINDOW_IMPL")
-)
-
(define-object WindowObject
(in-module "Gdk")
(parent "GdkDrawable")
@@ -91,6 +107,68 @@
;; Enumerations and flags ...
+(define-enum ExtensionMode
+ (in-module "Gdk")
+ (c-name "GdkExtensionMode")
+ (gtype-id "GDK_TYPE_EXTENSION_MODE")
+ (values
+ '("none" "GDK_EXTENSION_EVENTS_NONE")
+ '("all" "GDK_EXTENSION_EVENTS_ALL")
+ '("cursor" "GDK_EXTENSION_EVENTS_CURSOR")
+ )
+)
+
+(define-enum InputSource
+ (in-module "Gdk")
+ (c-name "GdkInputSource")
+ (gtype-id "GDK_TYPE_INPUT_SOURCE")
+ (values
+ '("mouse" "GDK_SOURCE_MOUSE")
+ '("pen" "GDK_SOURCE_PEN")
+ '("eraser" "GDK_SOURCE_ERASER")
+ '("cursor" "GDK_SOURCE_CURSOR")
+ '("keyboard" "GDK_SOURCE_KEYBOARD")
+ )
+)
+
+(define-enum InputMode
+ (in-module "Gdk")
+ (c-name "GdkInputMode")
+ (gtype-id "GDK_TYPE_INPUT_MODE")
+ (values
+ '("disabled" "GDK_MODE_DISABLED")
+ '("screen" "GDK_MODE_SCREEN")
+ '("window" "GDK_MODE_WINDOW")
+ )
+)
+
+(define-enum AxisUse
+ (in-module "Gdk")
+ (c-name "GdkAxisUse")
+ (gtype-id "GDK_TYPE_AXIS_USE")
+ (values
+ '("ignore" "GDK_AXIS_IGNORE")
+ '("x" "GDK_AXIS_X")
+ '("y" "GDK_AXIS_Y")
+ '("pressure" "GDK_AXIS_PRESSURE")
+ '("xtilt" "GDK_AXIS_XTILT")
+ '("ytilt" "GDK_AXIS_YTILT")
+ '("wheel" "GDK_AXIS_WHEEL")
+ '("last" "GDK_AXIS_LAST")
+ )
+)
+
+(define-enum DeviceType
+ (in-module "Gdk")
+ (c-name "GdkDeviceType")
+ (gtype-id "GDK_TYPE_DEVICE_TYPE")
+ (values
+ '("master" "GDK_DEVICE_TYPE_MASTER")
+ '("slave" "GDK_DEVICE_TYPE_SLAVE")
+ '("floating" "GDK_DEVICE_TYPE_FLOATING")
+ )
+)
+
(define-flags DragAction
(in-module "Gdk")
(c-name "GdkDragAction")
@@ -178,36 +256,6 @@
)
)
-(define-flags EventMask
- (in-module "Gdk")
- (c-name "GdkEventMask")
- (gtype-id "GDK_TYPE_EVENT_MASK")
- (values
- '("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")
- '("scroll-mask" "GDK_SCROLL_MASK")
- '("all-events-mask" "GDK_ALL_EVENTS_MASK")
- )
-)
-
(define-enum VisibilityState
(in-module "Gdk")
(c-name "GdkVisibilityState")
@@ -433,111 +481,6 @@
)
)
-(define-enum ExtensionMode
- (in-module "Gdk")
- (c-name "GdkExtensionMode")
- (gtype-id "GDK_TYPE_EXTENSION_MODE")
- (values
- '("none" "GDK_EXTENSION_EVENTS_NONE")
- '("all" "GDK_EXTENSION_EVENTS_ALL")
- '("cursor" "GDK_EXTENSION_EVENTS_CURSOR")
- )
-)
-
-(define-enum InputSource
- (in-module "Gdk")
- (c-name "GdkInputSource")
- (gtype-id "GDK_TYPE_INPUT_SOURCE")
- (values
- '("mouse" "GDK_SOURCE_MOUSE")
- '("pen" "GDK_SOURCE_PEN")
- '("eraser" "GDK_SOURCE_ERASER")
- '("cursor" "GDK_SOURCE_CURSOR")
- )
-)
-
-(define-enum InputMode
- (in-module "Gdk")
- (c-name "GdkInputMode")
- (gtype-id "GDK_TYPE_INPUT_MODE")
- (values
- '("disabled" "GDK_MODE_DISABLED")
- '("screen" "GDK_MODE_SCREEN")
- '("window" "GDK_MODE_WINDOW")
- )
-)
-
-(define-enum AxisUse
- (in-module "Gdk")
- (c-name "GdkAxisUse")
- (gtype-id "GDK_TYPE_AXIS_USE")
- (values
- '("ignore" "GDK_AXIS_IGNORE")
- '("x" "GDK_AXIS_X")
- '("y" "GDK_AXIS_Y")
- '("pressure" "GDK_AXIS_PRESSURE")
- '("xtilt" "GDK_AXIS_XTILT")
- '("ytilt" "GDK_AXIS_YTILT")
- '("wheel" "GDK_AXIS_WHEEL")
- '("last" "GDK_AXIS_LAST")
- )
-)
-
-(define-flags ColorInfoFlags
- (in-module "Gdk")
- (c-name "GdkColorInfoFlags")
- (gtype-id "GDK_TYPE_COLOR_INFO_FLAGS")
- (values
- '("writeable" "GDK_COLOR_WRITEABLE")
- )
-)
-
-(define-flags DebugFlag
- (in-module "Gdk")
- (c-name "GdkDebugFlag")
- (gtype-id "GDK_TYPE_DEBUG_FLAG")
- (values
- '("misc" "GDK_DEBUG_MISC")
- '("events" "GDK_DEBUG_EVENTS")
- '("dnd" "GDK_DEBUG_DND")
- '("xim" "GDK_DEBUG_XIM")
- '("nograbs" "GDK_DEBUG_NOGRABS")
- '("colormap" "GDK_DEBUG_COLORMAP")
- '("gdkrgb" "GDK_DEBUG_GDKRGB")
- '("gc" "GDK_DEBUG_GC")
- '("pixmap" "GDK_DEBUG_PIXMAP")
- '("image" "GDK_DEBUG_IMAGE")
- '("input" "GDK_DEBUG_INPUT")
- '("cursor" "GDK_DEBUG_CURSOR")
- '("multihead" "GDK_DEBUG_MULTIHEAD")
- '("xinerama" "GDK_DEBUG_XINERAMA")
- '("draw" "GDK_DEBUG_DRAW")
- '("eventloop" "GDK_DEBUG_EVENTLOOP")
- )
-)
-
-(define-enum ArgType
- (in-module "Gdk")
- (c-name "GdkArgType")
- (gtype-id "GDK_TYPE_ARG_TYPE")
- (values
- '("string" "GDK_ARG_STRING")
- '("int" "GDK_ARG_INT")
- '("bool" "GDK_ARG_BOOL")
- '("nobool" "GDK_ARG_NOBOOL")
- '("callback" "GDK_ARG_CALLBACK")
- )
-)
-
-(define-flags EventFlags
- (in-module "Gdk")
- (c-name "GdkEventFlags")
- (gtype-id "GDK_TYPE_EVENT_FLAGS")
- (values
- '("pending" "GDK_EVENT_PENDING")
- )
-)
-
(define-enum PropMode
(in-module "Gdk")
(c-name "GdkPropMode")
@@ -654,6 +597,47 @@
)
)
+(define-enum GrabOwnership
+ (in-module "Gdk")
+ (c-name "GdkGrabOwnership")
+ (gtype-id "GDK_TYPE_GRAB_OWNERSHIP")
+ (values
+ '("none" "GDK_OWNERSHIP_NONE")
+ '("window" "GDK_OWNERSHIP_WINDOW")
+ '("application" "GDK_OWNERSHIP_APPLICATION")
+ )
+)
+
+(define-flags EventMask
+ (in-module "Gdk")
+ (c-name "GdkEventMask")
+ (gtype-id "GDK_TYPE_EVENT_MASK")
+ (values
+ '("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")
+ '("scroll-mask" "GDK_SCROLL_MASK")
+ '("all-events-mask" "GDK_ALL_EVENTS_MASK")
+ )
+)
+
(define-enum VisualType
(in-module "Gdk")
(c-name "GdkVisualType")
@@ -812,9 +796,105 @@
)
)
+(define-enum PixbufAlphaMode
+ (in-module "Gdk")
+ (c-name "GdkPixbufAlphaMode")
+ (gtype-id "GDK_TYPE_PIXBUF_ALPHA_MODE")
+ (values
+ '("bilevel" "GDK_PIXBUF_ALPHA_BILEVEL")
+ '("full" "GDK_PIXBUF_ALPHA_FULL")
+ )
+)
-;; From gdkalias.h
+(define-enum Colorspace
+ (in-module "Gdk")
+ (c-name "GdkColorspace")
+ (gtype-id "GDK_TYPE_COLORSPACE")
+ (values
+ '("rgb" "GDK_COLORSPACE_RGB")
+ )
+)
+(define-enum PixbufError
+ (in-module "Gdk")
+ (c-name "GdkPixbufError")
+ (gtype-id "GDK_TYPE_PIXBUF_ERROR")
+ (values
+ '("corrupt-image" "GDK_PIXBUF_ERROR_CORRUPT_IMAGE")
+ '("insufficient-memory" "GDK_PIXBUF_ERROR_INSUFFICIENT_MEMORY")
+ '("bad-option" "GDK_PIXBUF_ERROR_BAD_OPTION")
+ '("unknown-type" "GDK_PIXBUF_ERROR_UNKNOWN_TYPE")
+ '("unsupported-operation" "GDK_PIXBUF_ERROR_UNSUPPORTED_OPERATION")
+ '("failed" "GDK_PIXBUF_ERROR_FAILED")
+ )
+)
+
+(define-flags PixbufFormatFlags
+ (in-module "Gdk")
+ (c-name "GdkPixbufFormatFlags")
+ (gtype-id "GDK_TYPE_PIXBUF_FORMAT_FLAGS")
+ (values
+ '("writable" "GDK_PIXBUF_FORMAT_WRITABLE")
+ '("scalable" "GDK_PIXBUF_FORMAT_SCALABLE")
+ '("threadsafe" "GDK_PIXBUF_FORMAT_THREADSAFE")
+ )
+)
+
+(define-enum InterpType
+ (in-module "Gdk")
+ (c-name "GdkInterpType")
+ (gtype-id "GDK_TYPE_INTERP_TYPE")
+ (values
+ '("nearest" "GDK_INTERP_NEAREST")
+ '("tiles" "GDK_INTERP_TILES")
+ '("bilinear" "GDK_INTERP_BILINEAR")
+ '("hyper" "GDK_INTERP_HYPER")
+ )
+)
+
+(define-enum PixbufRotation
+ (in-module "Gdk")
+ (c-name "GdkPixbufRotation")
+ (gtype-id "GDK_TYPE_PIXBUF_ROTATION")
+ (values
+ '("none" "GDK_PIXBUF_ROTATE_NONE")
+ '("counterclockwise" "GDK_PIXBUF_ROTATE_COUNTERCLOCKWISE")
+ '("upsidedown" "GDK_PIXBUF_ROTATE_UPSIDEDOWN")
+ '("clockwise" "GDK_PIXBUF_ROTATE_CLOCKWISE")
+ )
+)
+
+(define-flags PixdataType
+ (in-module "Gdk")
+ (c-name "GdkPixdataType")
+ (gtype-id "GDK_TYPE_PIXDATA_TYPE")
+ (values
+ '("color-type-rgb" "GDK_PIXDATA_COLOR_TYPE_RGB")
+ '("color-type-rgba" "GDK_PIXDATA_COLOR_TYPE_RGBA")
+ '("color-type-mask" "GDK_PIXDATA_COLOR_TYPE_MASK")
+ '("sample-width-8" "GDK_PIXDATA_SAMPLE_WIDTH_8")
+ '("sample-width-mask" "GDK_PIXDATA_SAMPLE_WIDTH_MASK")
+ '("encoding-raw" "GDK_PIXDATA_ENCODING_RAW")
+ '("encoding-rle" "GDK_PIXDATA_ENCODING_RLE")
+ '("encoding-mask" "GDK_PIXDATA_ENCODING_MASK")
+ )
+)
+
+(define-flags PixdataDumpType
+ (in-module "Gdk")
+ (c-name "GdkPixdataDumpType")
+ (gtype-id "GDK_TYPE_PIXDATA_DUMP_TYPE")
+ (values
+ '("pixdata-stream" "GDK_PIXDATA_DUMP_PIXDATA_STREAM")
+ '("pixdata-struct" "GDK_PIXDATA_DUMP_PIXDATA_STRUCT")
+ '("macros" "GDK_PIXDATA_DUMP_MACROS")
+ '("gtypes" "GDK_PIXDATA_DUMP_GTYPES")
+ '("ctypes" "GDK_PIXDATA_DUMP_CTYPES")
+ '("static" "GDK_PIXDATA_DUMP_STATIC")
+ '("const" "GDK_PIXDATA_DUMP_CONST")
+ '("rle-decoder" "GDK_PIXDATA_DUMP_RLE_DECODER")
+ )
+)
;; From gdkapplaunchcontext.h
@@ -1179,10 +1259,6 @@
-;; From gdkconfig.h
-
-
-
;; From gdkcursor.h
(define-function gdk_cursor_get_type
@@ -1267,6 +1343,245 @@
+;; From gdkdevice.h
+
+(define-function gdk_device_get_type
+ (c-name "gdk_device_get_type")
+ (return-type "GType")
+)
+
+(define-method get_name
+ (of-object "GdkDevice")
+ (c-name "gdk_device_get_name")
+ (return-type "const-gchar*")
+)
+
+(define-method get_has_cursor
+ (of-object "GdkDevice")
+ (c-name "gdk_device_get_has_cursor")
+ (return-type "gboolean")
+)
+
+(define-method get_source
+ (of-object "GdkDevice")
+ (c-name "gdk_device_get_source")
+ (return-type "GdkInputSource")
+)
+
+(define-method set_source
+ (of-object "GdkDevice")
+ (c-name "gdk_device_set_source")
+ (return-type "none")
+ (parameters
+ '("GdkInputSource" "source")
+ )
+)
+
+(define-method get_mode
+ (of-object "GdkDevice")
+ (c-name "gdk_device_get_mode")
+ (return-type "GdkInputMode")
+)
+
+(define-method set_mode
+ (of-object "GdkDevice")
+ (c-name "gdk_device_set_mode")
+ (return-type "gboolean")
+ (parameters
+ '("GdkInputMode" "mode")
+ )
+)
+
+(define-method get_key
+ (of-object "GdkDevice")
+ (c-name "gdk_device_get_key")
+ (return-type "gboolean")
+ (parameters
+ '("guint" "index_")
+ '("guint*" "keyval")
+ '("GdkModifierType*" "modifiers")
+ )
+)
+
+(define-method set_key
+ (of-object "GdkDevice")
+ (c-name "gdk_device_set_key")
+ (return-type "none")
+ (parameters
+ '("guint" "index_")
+ '("guint" "keyval")
+ '("GdkModifierType" "modifiers")
+ )
+)
+
+(define-method get_axis_use
+ (of-object "GdkDevice")
+ (c-name "gdk_device_get_axis_use")
+ (return-type "GdkAxisUse")
+ (parameters
+ '("guint" "index_")
+ )
+)
+
+(define-method set_axis_use
+ (of-object "GdkDevice")
+ (c-name "gdk_device_set_axis_use")
+ (return-type "none")
+ (parameters
+ '("guint" "index_")
+ '("GdkAxisUse" "use")
+ )
+)
+
+(define-method get_state
+ (of-object "GdkDevice")
+ (c-name "gdk_device_get_state")
+ (return-type "none")
+ (parameters
+ '("GdkWindow*" "window")
+ '("gdouble*" "axes")
+ '("GdkModifierType*" "mask")
+ )
+)
+
+(define-method get_history
+ (of-object "GdkDevice")
+ (c-name "gdk_device_get_history")
+ (return-type "gboolean")
+ (parameters
+ '("GdkWindow*" "window")
+ '("guint32" "start")
+ '("guint32" "stop")
+ '("GdkTimeCoord***" "events")
+ '("guint*" "n_events")
+ )
+)
+
+(define-function gdk_device_free_history
+ (c-name "gdk_device_free_history")
+ (return-type "none")
+ (parameters
+ '("GdkTimeCoord**" "events")
+ '("gint" "n_events")
+ )
+)
+
+(define-method get_n_axes
+ (of-object "GdkDevice")
+ (c-name "gdk_device_get_n_axes")
+ (return-type "guint")
+)
+
+(define-method list_axes
+ (of-object "GdkDevice")
+ (c-name "gdk_device_list_axes")
+ (return-type "GList*")
+)
+
+(define-method get_axis_value
+ (of-object "GdkDevice")
+ (c-name "gdk_device_get_axis_value")
+ (return-type "gboolean")
+ (parameters
+ '("gdouble*" "axes")
+ '("GdkAtom" "axis_label")
+ '("gdouble*" "value")
+ )
+)
+
+(define-method get_axis
+ (of-object "GdkDevice")
+ (c-name "gdk_device_get_axis")
+ (return-type "gboolean")
+ (parameters
+ '("gdouble*" "axes")
+ '("GdkAxisUse" "use")
+ '("gdouble*" "value")
+ )
+)
+
+(define-method get_display
+ (of-object "GdkDevice")
+ (c-name "gdk_device_get_display")
+ (return-type "GdkDisplay*")
+)
+
+(define-method get_associated_device
+ (of-object "GdkDevice")
+ (c-name "gdk_device_get_associated_device")
+ (return-type "GdkDevice*")
+)
+
+(define-method get_device_type
+ (of-object "GdkDevice")
+ (c-name "gdk_device_get_device_type")
+ (return-type "GdkDeviceType")
+)
+
+(define-method grab
+ (of-object "GdkDevice")
+ (c-name "gdk_device_grab")
+ (return-type "GdkGrabStatus")
+ (parameters
+ '("GdkWindow*" "window")
+ '("GdkGrabOwnership" "grab_ownership")
+ '("gboolean" "owner_events")
+ '("GdkEventMask" "event_mask")
+ '("GdkCursor*" "cursor")
+ '("guint32" "time_")
+ )
+)
+
+(define-method ungrab
+ (of-object "GdkDevice")
+ (c-name "gdk_device_ungrab")
+ (return-type "none")
+ (parameters
+ '("guint32" "time_")
+ )
+)
+
+(define-function gdk_device_grab_info_libgtk_only
+ (c-name "gdk_device_grab_info_libgtk_only")
+ (return-type "gboolean")
+ (parameters
+ '("GdkDisplay*" "display")
+ '("GdkDevice*" "device")
+ '("GdkWindow**" "grab_window")
+ '("gboolean*" "owner_events")
+ )
+)
+
+
+
+;; From gdkdevicemanager.h
+
+(define-function gdk_device_manager_get_type
+ (c-name "gdk_device_manager_get_type")
+ (return-type "GType")
+)
+
+(define-method get_display
+ (of-object "GdkDeviceManager")
+ (c-name "gdk_device_manager_get_display")
+ (return-type "GdkDisplay*")
+)
+
+(define-method list_devices
+ (of-object "GdkDeviceManager")
+ (c-name "gdk_device_manager_list_devices")
+ (return-type "GList*")
+ (parameters
+ '("GdkDeviceType" "type")
+ )
+)
+
+
+
+;; From gdkdeviceprivate.h
+
+
+
;; From gdkdisplay.h
(define-function gdk_display_get_type
@@ -1333,6 +1648,15 @@
(return-type "gboolean")
)
+(define-method device_is_grabbed
+ (of-object "GdkDisplay")
+ (c-name "gdk_display_device_is_grabbed")
+ (return-type "gboolean")
+ (parameters
+ '("GdkDevice*" "device")
+ )
+)
+
(define-method beep
(of-object "GdkDisplay")
(c-name "gdk_display_beep")
@@ -1457,6 +1781,42 @@
)
)
+(define-method get_device_state
+ (of-object "GdkDisplay")
+ (c-name "gdk_display_get_device_state")
+ (return-type "none")
+ (parameters
+ '("GdkDevice*" "device")
+ '("GdkScreen**" "screen")
+ '("gint*" "x")
+ '("gint*" "y")
+ '("GdkModifierType*" "mask")
+ )
+)
+
+(define-method get_window_at_device_position
+ (of-object "GdkDisplay")
+ (c-name "gdk_display_get_window_at_device_position")
+ (return-type "GdkWindow*")
+ (parameters
+ '("GdkDevice*" "device")
+ '("gint*" "win_x")
+ '("gint*" "win_y")
+ )
+)
+
+(define-method warp_device
+ (of-object "GdkDisplay")
+ (c-name "gdk_display_warp_device")
+ (return-type "none")
+ (parameters
+ '("GdkDevice*" "device")
+ '("GdkScreen*" "screen")
+ '("gint" "x")
+ '("gint" "y")
+ )
+)
+
(define-method set_pointer_hooks
(of-object "GdkDisplay")
(c-name "gdk_display_set_pointer_hooks")
@@ -1466,6 +1826,15 @@
)
)
+(define-method set_device_hooks
+ (of-object "GdkDisplay")
+ (c-name "gdk_display_set_device_hooks")
+ (return-type "GdkDisplayDeviceHooks*")
+ (parameters
+ '("const-GdkDisplayDeviceHooks*" "new_hooks")
+ )
+)
+
(define-function gdk_display_open_default_libgtk_only
(c-name "gdk_display_open_default_libgtk_only")
(return-type "GdkDisplay*")
@@ -1556,6 +1925,12 @@
(return-type "gboolean")
)
+(define-method get_device_manager
+ (of-object "GdkDisplay")
+ (c-name "gdk_display_get_device_manager")
+ (return-type "GdkDeviceManager*")
+)
+
;; From gdkdisplaymanager.h
@@ -1606,16 +1981,43 @@
(return-type "GdkDragContext*")
)
-(define-method ref
+(define-method set_device
(of-object "GdkDragContext")
- (c-name "gdk_drag_context_ref")
+ (c-name "gdk_drag_context_set_device")
(return-type "none")
+ (parameters
+ '("GdkDevice*" "device")
+ )
)
-(define-method unref
+(define-method get_device
(of-object "GdkDragContext")
- (c-name "gdk_drag_context_unref")
- (return-type "none")
+ (c-name "gdk_drag_context_get_device")
+ (return-type "GdkDevice*")
+)
+
+(define-method list_targets
+ (of-object "GdkDragContext")
+ (c-name "gdk_drag_context_list_targets")
+ (return-type "GList*")
+)
+
+(define-method get_actions
+ (of-object "GdkDragContext")
+ (c-name "gdk_drag_context_get_actions")
+ (return-type "GdkDragAction")
+)
+
+(define-method get_suggested_action
+ (of-object "GdkDragContext")
+ (c-name "gdk_drag_context_get_suggested_action")
+ (return-type "GdkDragAction")
+)
+
+(define-method get_action
+ (of-object "GdkDragContext")
+ (c-name "gdk_drag_context_get_action")
+ (return-type "GdkDragAction")
)
(define-function gdk_drag_status
@@ -2171,6 +2573,31 @@
(return-type "GType")
)
+(define-function gdk_extension_mode_get_type
+ (c-name "gdk_extension_mode_get_type")
+ (return-type "GType")
+)
+
+(define-function gdk_input_source_get_type
+ (c-name "gdk_input_source_get_type")
+ (return-type "GType")
+)
+
+(define-function gdk_input_mode_get_type
+ (c-name "gdk_input_mode_get_type")
+ (return-type "GType")
+)
+
+(define-function gdk_axis_use_get_type
+ (c-name "gdk_axis_use_get_type")
+ (return-type "GType")
+)
+
+(define-function gdk_device_type_get_type
+ (c-name "gdk_device_type_get_type")
+ (return-type "GType")
+)
+
(define-function gdk_drag_action_get_type
(c-name "gdk_drag_action_get_type")
(return-type "GType")
@@ -2191,11 +2618,6 @@
(return-type "GType")
)
-(define-function gdk_event_mask_get_type
- (c-name "gdk_event_mask_get_type")
- (return-type "GType")
-)
-
(define-function gdk_visibility_state_get_type
(c-name "gdk_visibility_state_get_type")
(return-type "GType")
@@ -2281,26 +2703,6 @@
(return-type "GType")
)
-(define-function gdk_extension_mode_get_type
- (c-name "gdk_extension_mode_get_type")
- (return-type "GType")
-)
-
-(define-function gdk_input_source_get_type
- (c-name "gdk_input_source_get_type")
- (return-type "GType")
-)
-
-(define-function gdk_input_mode_get_type
- (c-name "gdk_input_mode_get_type")
- (return-type "GType")
-)
-
-(define-function gdk_axis_use_get_type
- (c-name "gdk_axis_use_get_type")
- (return-type "GType")
-)
-
(define-function gdk_prop_mode_get_type
(c-name "gdk_prop_mode_get_type")
(return-type "GType")
@@ -2346,6 +2748,16 @@
(return-type "GType")
)
+(define-function gdk_grab_ownership_get_type
+ (c-name "gdk_grab_ownership_get_type")
+ (return-type "GType")
+)
+
+(define-function gdk_event_mask_get_type
+ (c-name "gdk_event_mask_get_type")
+ (return-type "GType")
+)
+
(define-function gdk_visual_type_get_type
(c-name "gdk_visual_type_get_type")
(return-type "GType")
@@ -2420,14 +2832,6 @@
(return-type "GdkEvent*")
)
-(define-function gdk_event_get_graphics_expose
- (c-name "gdk_event_get_graphics_expose")
- (return-type "GdkEvent*")
- (parameters
- '("GdkWindow*" "window")
- )
-)
-
(define-method put
(of-object "GdkEvent")
(c-name "gdk_event_put")
@@ -2500,6 +2904,21 @@
)
)
+(define-method set_device
+ (of-object "GdkEvent")
+ (c-name "gdk_event_set_device")
+ (return-type "none")
+ (parameters
+ '("GdkDevice*" "device")
+ )
+)
+
+(define-method get_device
+ (of-object "GdkEvent")
+ (c-name "gdk_event_get_device")
+ (return-type "GdkDevice*")
+)
+
(define-function gdk_event_request_motions
(c-name "gdk_event_request_motions")
(return-type "none")
@@ -2508,6 +2927,37 @@
)
)
+(define-method s_get_distance
+ (of-object "GdkEvent")
+ (c-name "gdk_events_get_distance")
+ (return-type "gboolean")
+ (parameters
+ '("GdkEvent*" "event2")
+ '("gdouble*" "distance")
+ )
+)
+
+(define-method s_get_angle
+ (of-object "GdkEvent")
+ (c-name "gdk_events_get_angle")
+ (return-type "gboolean")
+ (parameters
+ '("GdkEvent*" "event2")
+ '("gdouble*" "angle")
+ )
+)
+
+(define-method s_get_center
+ (of-object "GdkEvent")
+ (c-name "gdk_events_get_center")
+ (return-type "gboolean")
+ (parameters
+ '("GdkEvent*" "event2")
+ '("gdouble*" "x")
+ '("gdouble*" "y")
+ )
+)
+
(define-function gdk_event_handler_set
(c-name "gdk_event_handler_set")
(return-type "none")
@@ -2833,18 +3283,6 @@
)
)
-(define-method ref
- (of-object "GdkGC")
- (c-name "gdk_gc_ref")
- (return-type "GdkGC*")
-)
-
-(define-method unref
- (of-object "GdkGC")
- (c-name "gdk_gc_unref")
- (return-type "none")
-)
-
(define-method get_values
(of-object "GdkGC")
(c-name "gdk_gc_get_values")
@@ -2882,15 +3320,6 @@
)
)
-(define-method set_font
- (of-object "GdkGC")
- (c-name "gdk_gc_set_font")
- (return-type "none")
- (parameters
- '("GdkFont*" "font")
- )
-)
-
(define-method set_function
(of-object "GdkGC")
(c-name "gdk_gc_set_function")
@@ -3077,6 +3506,11 @@
;; From gdk.h
+(define-function gdk_enable_multidevice
+ (c-name "gdk_enable_multidevice")
+ (return-type "none")
+)
+
(define-function gdk_parse_args
(c-name "gdk_parse_args")
(return-type "none")
@@ -3117,14 +3551,6 @@
(return-type "none")
)
-(define-function gdk_exit
- (c-name "gdk_exit")
- (return-type "none")
- (parameters
- '("gint" "error_code")
- )
-)
-
(define-function gdk_set_locale
(c-name "gdk_set_locale")
(return-type "gchar*")
@@ -3153,19 +3579,6 @@
(return-type "gint")
)
-(define-function gdk_set_use_xshm
- (c-name "gdk_set_use_xshm")
- (return-type "none")
- (parameters
- '("gboolean" "use_xshm")
- )
-)
-
-(define-function gdk_get_use_xshm
- (c-name "gdk_get_use_xshm")
- (return-type "gboolean")
-)
-
(define-function gdk_get_display
(c-name "gdk_get_display")
(return-type "gchar*")
@@ -3230,26 +3643,6 @@
)
)
-(define-function gdk_pointer_grab_info_libgtk_only
- (c-name "gdk_pointer_grab_info_libgtk_only")
- (return-type "gboolean")
- (parameters
- '("GdkDisplay*" "display")
- '("GdkWindow**" "grab_window")
- '("gboolean*" "owner_events")
- )
-)
-
-(define-function gdk_keyboard_grab_info_libgtk_only
- (c-name "gdk_keyboard_grab_info_libgtk_only")
- (return-type "gboolean")
- (parameters
- '("GdkDisplay*" "display")
- '("GdkWindow**" "grab_window")
- '("gboolean*" "owner_events")
- )
-)
-
(define-function gdk_pointer_ungrab
(c-name "gdk_pointer_ungrab")
(return-type "none")
@@ -3480,10 +3873,6 @@
-;; From gdki18n.h
-
-
-
;; From gdkimage.h
(define-function gdk_image_get_type
@@ -3503,30 +3892,6 @@
)
)
-(define-function gdk_image_get
- (c-name "gdk_image_get")
- (return-type "GdkImage*")
- (parameters
- '("GdkDrawable*" "drawable")
- '("gint" "x")
- '("gint" "y")
- '("gint" "width")
- '("gint" "height")
- )
-)
-
-(define-method ref
- (of-object "GdkImage")
- (c-name "gdk_image_ref")
- (return-type "GdkImage*")
-)
-
-(define-method unref
- (of-object "GdkImage")
- (c-name "gdk_image_unref")
- (return-type "none")
-)
-
(define-method put_pixel
(of-object "GdkImage")
(c-name "gdk_image_put_pixel")
@@ -3563,122 +3928,67 @@
(return-type "GdkColormap*")
)
-(define-function gdk_image_new_bitmap
- (c-name "gdk_image_new_bitmap")
- (return-type "GdkImage*")
- (parameters
- '("GdkVisual*" "visual")
- '("gpointer" "data")
- '("gint" "width")
- '("gint" "height")
- )
+(define-method get_image_type
+ (of-object "GdkImage")
+ (c-name "gdk_image_get_image_type")
+ (return-type "GdkImageType")
)
-
-
-;; From gdkinput.h
-
-(define-function gdk_device_get_type
- (c-name "gdk_device_get_type")
- (return-type "GType")
+(define-method get_visual
+ (of-object "GdkImage")
+ (c-name "gdk_image_get_visual")
+ (return-type "GdkVisual*")
)
-(define-function gdk_devices_list
- (c-name "gdk_devices_list")
- (return-type "GList*")
+(define-method get_byte_order
+ (of-object "GdkImage")
+ (c-name "gdk_image_get_byte_order")
+ (return-type "GdkByteOrder")
)
-(define-method set_source
- (of-object "GdkDevice")
- (c-name "gdk_device_set_source")
- (return-type "none")
- (parameters
- '("GdkInputSource" "source")
- )
+(define-method get_width
+ (of-object "GdkImage")
+ (c-name "gdk_image_get_width")
+ (return-type "gint")
)
-(define-method set_mode
- (of-object "GdkDevice")
- (c-name "gdk_device_set_mode")
- (return-type "gboolean")
- (parameters
- '("GdkInputMode" "mode")
- )
+(define-method get_height
+ (of-object "GdkImage")
+ (c-name "gdk_image_get_height")
+ (return-type "gint")
)
-(define-method set_key
- (of-object "GdkDevice")
- (c-name "gdk_device_set_key")
- (return-type "none")
- (parameters
- '("guint" "index_")
- '("guint" "keyval")
- '("GdkModifierType" "modifiers")
- )
+(define-method get_depth
+ (of-object "GdkImage")
+ (c-name "gdk_image_get_depth")
+ (return-type "guint16")
)
-(define-method set_axis_use
- (of-object "GdkDevice")
- (c-name "gdk_device_set_axis_use")
- (return-type "none")
- (parameters
- '("guint" "index_")
- '("GdkAxisUse" "use")
- )
+(define-method get_bytes_per_pixel
+ (of-object "GdkImage")
+ (c-name "gdk_image_get_bytes_per_pixel")
+ (return-type "guint16")
)
-(define-method get_state
- (of-object "GdkDevice")
- (c-name "gdk_device_get_state")
- (return-type "none")
- (parameters
- '("GdkWindow*" "window")
- '("gdouble*" "axes")
- '("GdkModifierType*" "mask")
- )
+(define-method get_bytes_per_line
+ (of-object "GdkImage")
+ (c-name "gdk_image_get_bytes_per_line")
+ (return-type "guint16")
)
-(define-method get_history
- (of-object "GdkDevice")
- (c-name "gdk_device_get_history")
- (return-type "gboolean")
- (parameters
- '("GdkWindow*" "window")
- '("guint32" "start")
- '("guint32" "stop")
- '("GdkTimeCoord***" "events")
- '("gint*" "n_events")
- )
+(define-method get_bits_per_pixel
+ (of-object "GdkImage")
+ (c-name "gdk_image_get_bits_per_pixel")
+ (return-type "guint16")
)
-(define-function gdk_device_free_history
- (c-name "gdk_device_free_history")
- (return-type "none")
- (parameters
- '("GdkTimeCoord**" "events")
- '("gint" "n_events")
- )
-)
-(define-method get_axis
- (of-object "GdkDevice")
- (c-name "gdk_device_get_axis")
- (return-type "gboolean")
- (parameters
- '("gdouble*" "axes")
- '("GdkAxisUse" "use")
- '("gdouble*" "value")
- )
-)
-(define-function gdk_input_set_extension_events
- (c-name "gdk_input_set_extension_events")
- (return-type "none")
- (parameters
- '("GdkWindow*" "window")
- '("gint" "mask")
- '("GdkExtensionMode" "mode")
- )
+;; From gdkinput.h
+
+(define-function gdk_devices_list
+ (c-name "gdk_devices_list")
+ (return-type "GList*")
)
(define-function gdk_device_get_core_pointer
@@ -3686,29 +3996,16 @@
(return-type "GdkDevice*")
)
-
-
-;; From gdkinternals.h
-
-(define-function gdk_synthesize_window_state
- (c-name "gdk_synthesize_window_state")
+(define-function gdk_input_set_extension_events
+ (c-name "gdk_input_set_extension_events")
(return-type "none")
(parameters
'("GdkWindow*" "window")
- '("GdkWindowState" "unset_flags")
- '("GdkWindowState" "set_flags")
+ '("gint" "mask")
+ '("GdkExtensionMode" "mode")
)
)
-(define-function gdk_offscreen_window_get_type
- (c-name "gdk_offscreen_window_get_type")
- (return-type "GType")
-)
-
-
-
-;; From gdkintl.h
-
;; From gdkkeys.h
@@ -3894,14 +4191,6 @@
-;; From gdkmarshalers.h
-
-
-
-;; From gdkmedialib.h
-
-
-
;; From gdkpango.h
(define-function gdk_pango_renderer_get_type
@@ -3977,15 +4266,6 @@
(return-type "PangoContext*")
)
-(define-function gdk_pango_context_set_colormap
- (c-name "gdk_pango_context_set_colormap")
- (return-type "none")
- (parameters
- '("PangoContext*" "context")
- '("GdkColormap*" "colormap")
- )
-)
-
(define-function gdk_pango_layout_line_get_clip_region
(c-name "gdk_pango_layout_line_get_clip_region")
(return-type "GdkRegion*")
@@ -4057,45 +4337,6 @@
)
)
-(define-method render_to_drawable
- (of-object "GdkPixbuf")
- (c-name "gdk_pixbuf_render_to_drawable")
- (return-type "none")
- (parameters
- '("GdkDrawable*" "drawable")
- '("GdkGC*" "gc")
- '("int" "src_x")
- '("int" "src_y")
- '("int" "dest_x")
- '("int" "dest_y")
- '("int" "width")
- '("int" "height")
- '("GdkRgbDither" "dither")
- '("int" "x_dither")
- '("int" "y_dither")
- )
-)
-
-(define-method render_to_drawable_alpha
- (of-object "GdkPixbuf")
- (c-name "gdk_pixbuf_render_to_drawable_alpha")
- (return-type "none")
- (parameters
- '("GdkDrawable*" "drawable")
- '("int" "src_x")
- '("int" "src_y")
- '("int" "dest_x")
- '("int" "dest_y")
- '("int" "width")
- '("int" "height")
- '("GdkPixbufAlphaMode" "alpha_mode")
- '("int" "alpha_threshold")
- '("GdkRgbDither" "dither")
- '("int" "x_dither")
- '("int" "y_dither")
- )
-)
-
(define-method render_pixmap_and_mask_for_colormap
(of-object "GdkPixbuf")
(c-name "gdk_pixbuf_render_pixmap_and_mask_for_colormap")
@@ -4292,10 +4533,6 @@
-;; From gdkpoly-generic.h
-
-
-
;; From gdkprivate.h
(define-method destroy_notify
@@ -4507,10 +4744,6 @@
-;; From gdkregion-generic.h
-
-
-
;; From gdkregion.h
(define-function gdk_region_new
@@ -4693,37 +4926,6 @@
;; From gdkrgb.h
-(define-function gdk_rgb_init
- (c-name "gdk_rgb_init")
- (return-type "none")
-)
-
-(define-function gdk_rgb_xpixel_from_rgb
- (c-name "gdk_rgb_xpixel_from_rgb")
- (return-type "gulong")
- (parameters
- '("guint32" "rgb")
- )
-)
-
-(define-function gdk_rgb_gc_set_foreground
- (c-name "gdk_rgb_gc_set_foreground")
- (return-type "none")
- (parameters
- '("GdkGC*" "gc")
- '("guint32" "rgb")
- )
-)
-
-(define-function gdk_rgb_gc_set_background
- (c-name "gdk_rgb_gc_set_background")
- (return-type "none")
- (parameters
- '("GdkGC*" "gc")
- '("guint32" "rgb")
- )
-)
-
(define-function gdk_rgb_find_color
(c-name "gdk_rgb_find_color")
(return-type "none")
@@ -5422,6 +5624,69 @@
(return-type "GdkScreen*")
)
+(define-method get_visual_type
+ (of-object "GdkVisual")
+ (c-name "gdk_visual_get_visual_type")
+ (return-type "GdkVisualType")
+)
+
+(define-method get_depth
+ (of-object "GdkVisual")
+ (c-name "gdk_visual_get_depth")
+ (return-type "gint")
+)
+
+(define-method get_byte_order
+ (of-object "GdkVisual")
+ (c-name "gdk_visual_get_byte_order")
+ (return-type "GdkByteOrder")
+)
+
+(define-method get_colormap_size
+ (of-object "GdkVisual")
+ (c-name "gdk_visual_get_colormap_size")
+ (return-type "gint")
+)
+
+(define-method get_bits_per_rgb
+ (of-object "GdkVisual")
+ (c-name "gdk_visual_get_bits_per_rgb")
+ (return-type "gint")
+)
+
+(define-method get_red_pixel_details
+ (of-object "GdkVisual")
+ (c-name "gdk_visual_get_red_pixel_details")
+ (return-type "none")
+ (parameters
+ '("guint32*" "mask")
+ '("gint*" "shift")
+ '("gint*" "precision")
+ )
+)
+
+(define-method get_green_pixel_details
+ (of-object "GdkVisual")
+ (c-name "gdk_visual_get_green_pixel_details")
+ (return-type "none")
+ (parameters
+ '("guint32*" "mask")
+ '("gint*" "shift")
+ '("gint*" "precision")
+ )
+)
+
+(define-method get_blue_pixel_details
+ (of-object "GdkVisual")
+ (c-name "gdk_visual_get_blue_pixel_details")
+ (return-type "none")
+ (parameters
+ '("guint32*" "mask")
+ '("gint*" "shift")
+ '("gint*" "precision")
+ )
+)
+
;; From gdkwindow.h
@@ -5614,6 +5879,12 @@
)
)
+(define-method get_accept_focus
+ (of-object "GdkWindow")
+ (c-name "gdk_window_get_accept_focus")
+ (return-type "gboolean")
+)
+
(define-method set_accept_focus
(of-object "GdkWindow")
(c-name "gdk_window_set_accept_focus")
@@ -5623,6 +5894,12 @@
)
)
+(define-method get_focus_on_map
+ (of-object "GdkWindow")
+ (c-name "gdk_window_get_focus_on_map")
+ (return-type "gboolean")
+)
+
(define-method set_focus_on_map
(of-object "GdkWindow")
(c-name "gdk_window_set_focus_on_map")
@@ -5707,6 +5984,12 @@
(return-type "none")
)
+(define-method get_composited
+ (of-object "GdkWindow")
+ (c-name "gdk_window_get_composited")
+ (return-type "gboolean")
+)
+
(define-method set_composited
(of-object "GdkWindow")
(c-name "gdk_window_set_composited")
@@ -5768,6 +6051,18 @@
(return-type "gboolean")
)
+(define-method is_input_only
+ (of-object "GdkWindow")
+ (c-name "gdk_window_is_input_only")
+ (return-type "gboolean")
+)
+
+(define-method is_shaped
+ (of-object "GdkWindow")
+ (c-name "gdk_window_is_shaped")
+ (return-type "gboolean")
+)
+
(define-method get_state
(of-object "GdkWindow")
(c-name "gdk_window_get_state")
@@ -5818,21 +6113,6 @@
)
)
-(define-method set_hints
- (of-object "GdkWindow")
- (c-name "gdk_window_set_hints")
- (return-type "none")
- (parameters
- '("gint" "x")
- '("gint" "y")
- '("gint" "min_width")
- '("gint" "min_height")
- '("gint" "max_width")
- '("gint" "max_height")
- '("gint" "flags")
- )
-)
-
(define-method set_type_hint
(of-object "GdkWindow")
(c-name "gdk_window_set_type_hint")
@@ -5848,6 +6128,12 @@
(return-type "GdkWindowTypeHint")
)
+(define-method get_modal_hint
+ (of-object "GdkWindow")
+ (c-name "gdk_window_get_modal_hint")
+ (return-type "gboolean")
+)
+
(define-method set_modal_hint
(of-object "GdkWindow")
(c-name "gdk_window_set_modal_hint")
@@ -5968,6 +6254,15 @@
)
)
+(define-method get_background
+ (of-object "GdkWindow")
+ (c-name "gdk_window_get_background")
+ (return-type "none")
+ (parameters
+ '("GdkColor*" "color")
+ )
+)
+
(define-method set_background
(of-object "GdkWindow")
(c-name "gdk_window_set_background")
@@ -5977,6 +6272,16 @@
)
)
+(define-method get_back_pixmap
+ (of-object "GdkWindow")
+ (c-name "gdk_window_get_back_pixmap")
+ (return-type "none")
+ (parameters
+ '("GdkPixmap**" "pixmap")
+ '("gboolean*" "parent_relative")
+ )
+)
+
(define-method set_back_pixmap
(of-object "GdkWindow")
(c-name "gdk_window_set_back_pixmap")
@@ -6002,6 +6307,25 @@
(return-type "GdkCursor*")
)
+(define-method set_device_cursor
+ (of-object "GdkWindow")
+ (c-name "gdk_window_set_device_cursor")
+ (return-type "none")
+ (parameters
+ '("GdkDevice*" "device")
+ '("GdkCursor*" "cursor")
+ )
+)
+
+(define-method get_device_cursor
+ (of-object "GdkWindow")
+ (c-name "gdk_window_get_device_cursor")
+ (return-type "GdkCursor*")
+ (parameters
+ '("GdkDevice*" "device")
+ )
+)
+
(define-method get_user_data
(of-object "GdkWindow")
(c-name "gdk_window_get_user_data")
@@ -6056,6 +6380,30 @@
)
)
+(define-method coords_to_parent
+ (of-object "GdkWindow")
+ (c-name "gdk_window_coords_to_parent")
+ (return-type "none")
+ (parameters
+ '("gdouble" "x")
+ '("gdouble" "y")
+ '("gdouble*" "parent_x")
+ '("gdouble*" "parent_y")
+ )
+)
+
+(define-method coords_from_parent
+ (of-object "GdkWindow")
+ (c-name "gdk_window_coords_from_parent")
+ (return-type "none")
+ (parameters
+ '("gdouble" "parent_x")
+ '("gdouble" "parent_y")
+ '("gdouble*" "x")
+ '("gdouble*" "y")
+ )
+)
+
(define-method get_deskrelative_origin
(of-object "GdkWindow")
(c-name "gdk_window_get_deskrelative_origin")
@@ -6096,6 +6444,18 @@
)
)
+(define-method get_device_position
+ (of-object "GdkWindow")
+ (c-name "gdk_window_get_device_position")
+ (return-type "GdkWindow*")
+ (parameters
+ '("GdkDevice*" "device")
+ '("gint*" "x")
+ '("gint*" "y")
+ '("GdkModifierType*" "mask")
+ )
+)
+
(define-method get_parent
(of-object "GdkWindow")
(c-name "gdk_window_get_parent")
@@ -6108,6 +6468,18 @@
(return-type "GdkWindow*")
)
+(define-method get_effective_parent
+ (of-object "GdkWindow")
+ (c-name "gdk_window_get_effective_parent")
+ (return-type "GdkWindow*")
+)
+
+(define-method get_effective_toplevel
+ (of-object "GdkWindow")
+ (c-name "gdk_window_get_effective_toplevel")
+ (return-type "GdkWindow*")
+)
+
(define-method get_children
(of-object "GdkWindow")
(c-name "gdk_window_get_children")
@@ -6135,6 +6507,25 @@
)
)
+(define-method set_device_events
+ (of-object "GdkWindow")
+ (c-name "gdk_window_set_device_events")
+ (return-type "none")
+ (parameters
+ '("GdkDevice*" "device")
+ '("GdkEventMask" "event_mask")
+ )
+)
+
+(define-method get_device_events
+ (of-object "GdkWindow")
+ (c-name "gdk_window_get_device_events")
+ (return-type "GdkEventMask")
+ (parameters
+ '("GdkDevice*" "device")
+ )
+)
+
(define-method set_icon_list
(of-object "GdkWindow")
(c-name "gdk_window_set_icon_list")
@@ -6206,11 +6597,6 @@
)
)
-(define-function gdk_window_get_toplevels
- (c-name "gdk_window_get_toplevels")
- (return-type "GList*")
-)
-
(define-method beep
(of-object "GdkWindow")
(c-name "gdk_window_beep")
@@ -6349,7 +6735,7 @@
(return-type "none")
(parameters
'("const-GdkRegion*" "region")
- '("somefunc" "child_func")
+ '("somefunc "child_func")
)
)
@@ -6506,13 +6892,1300 @@
(return-type "none")
)
+(define-method set_support_multidevice
+ (of-object "GdkWindow")
+ (c-name "gdk_window_set_support_multidevice")
+ (return-type "none")
+ (parameters
+ '("gboolean" "support_multidevice")
+ )
+)
+
+(define-method get_support_multidevice
+ (of-object "GdkWindow")
+ (c-name "gdk_window_get_support_multidevice")
+ (return-type "gboolean")
+)
+
+
+
+;; From gdkx.h
+
+(define-function gdk_x11_drawable_get_xdisplay
+ (c-name "gdk_x11_drawable_get_xdisplay")
+ (return-type "Display*")
+ (parameters
+ '("GdkDrawable*" "drawable")
+ )
+)
+
+(define-function gdk_x11_drawable_get_xid
+ (c-name "gdk_x11_drawable_get_xid")
+ (return-type "XID")
+ (parameters
+ '("GdkDrawable*" "drawable")
+ )
+)
+
+(define-function gdk_x11_window_get_drawable_impl
+ (c-name "gdk_x11_window_get_drawable_impl")
+ (return-type "GdkDrawable*")
+ (parameters
+ '("GdkWindow*" "window")
+ )
+)
+
+(define-function gdk_x11_pixmap_get_drawable_impl
+ (c-name "gdk_x11_pixmap_get_drawable_impl")
+ (return-type "GdkDrawable*")
+ (parameters
+ '("GdkPixmap*" "pixmap")
+ )
+)
+
+(define-function gdk_x11_image_get_xdisplay
+ (c-name "gdk_x11_image_get_xdisplay")
+ (return-type "Display*")
+ (parameters
+ '("GdkImage*" "image")
+ )
+)
+
+(define-function gdk_x11_image_get_ximage
+ (c-name "gdk_x11_image_get_ximage")
+ (return-type "XImage*")
+ (parameters
+ '("GdkImage*" "image")
+ )
+)
+(define-function gdk_x11_colormap_get_xdisplay
+ (c-name "gdk_x11_colormap_get_xdisplay")
+ (return-type "Display*")
+ (parameters
+ '("GdkColormap*" "colormap")
+ )
+)
-;; From gdkwindowimpl.h
+(define-function gdk_x11_colormap_get_xcolormap
+ (c-name "gdk_x11_colormap_get_xcolormap")
+ (return-type "Colormap")
+ (parameters
+ '("GdkColormap*" "colormap")
+ )
+)
+
+(define-function gdk_x11_cursor_get_xdisplay
+ (c-name "gdk_x11_cursor_get_xdisplay")
+ (return-type "Display*")
+ (parameters
+ '("GdkCursor*" "cursor")
+ )
+)
+
+(define-function gdk_x11_cursor_get_xcursor
+ (c-name "gdk_x11_cursor_get_xcursor")
+ (return-type "Cursor")
+ (parameters
+ '("GdkCursor*" "cursor")
+ )
+)
+
+(define-function gdk_x11_display_get_xdisplay
+ (c-name "gdk_x11_display_get_xdisplay")
+ (return-type "Display*")
+ (parameters
+ '("GdkDisplay*" "display")
+ )
+)
+
+(define-function gdk_x11_visual_get_xvisual
+ (c-name "gdk_x11_visual_get_xvisual")
+ (return-type "Visual*")
+ (parameters
+ '("GdkVisual*" "visual")
+ )
+)
+
+(define-function gdk_x11_gc_get_xdisplay
+ (c-name "gdk_x11_gc_get_xdisplay")
+ (return-type "Display*")
+ (parameters
+ '("GdkGC*" "gc")
+ )
+)
+
+(define-function gdk_x11_gc_get_xgc
+ (c-name "gdk_x11_gc_get_xgc")
+ (return-type "GC")
+ (parameters
+ '("GdkGC*" "gc")
+ )
+)
+
+(define-function gdk_x11_screen_get_xscreen
+ (c-name "gdk_x11_screen_get_xscreen")
+ (return-type "Screen*")
+ (parameters
+ '("GdkScreen*" "screen")
+ )
+)
+
+(define-function gdk_x11_screen_get_screen_number
+ (c-name "gdk_x11_screen_get_screen_number")
+ (return-type "int")
+ (parameters
+ '("GdkScreen*" "screen")
+ )
+)
+
+(define-function gdk_x11_window_set_user_time
+ (c-name "gdk_x11_window_set_user_time")
+ (return-type "none")
+ (parameters
+ '("GdkWindow*" "window")
+ '("guint32" "timestamp")
+ )
+)
+
+(define-function gdk_x11_window_move_to_current_desktop
+ (c-name "gdk_x11_window_move_to_current_desktop")
+ (return-type "none")
+ (parameters
+ '("GdkWindow*" "window")
+ )
+)
-(define-function gdk_window_impl_get_type
- (c-name "gdk_window_impl_get_type")
+(define-function gdk_x11_screen_get_window_manager_name
+ (c-name "gdk_x11_screen_get_window_manager_name")
+ (return-type "const-char*")
+ (parameters
+ '("GdkScreen*" "screen")
+ )
+)
+
+(define-function gdk_x11_get_default_root_xwindow
+ (c-name "gdk_x11_get_default_root_xwindow")
+ (return-type "Window")
+)
+
+(define-function gdk_x11_get_default_xdisplay
+ (c-name "gdk_x11_get_default_xdisplay")
+ (return-type "Display*")
+)
+
+(define-function gdk_x11_get_default_screen
+ (c-name "gdk_x11_get_default_screen")
+ (return-type "gint")
+)
+
+(define-function gdk_x11_screen_lookup_visual
+ (c-name "gdk_x11_screen_lookup_visual")
+ (return-type "GdkVisual*")
+ (parameters
+ '("GdkScreen*" "screen")
+ '("VisualID" "xvisualid")
+ )
+)
+
+(define-function gdkx_visual_get
+ (c-name "gdkx_visual_get")
+ (return-type "GdkVisual*")
+ (parameters
+ '("VisualID" "xvisualid")
+ )
+)
+
+(define-function gdkx_colormap_get
+ (c-name "gdkx_colormap_get")
+ (return-type "GdkColormap*")
+ (parameters
+ '("Colormap" "xcolormap")
+ )
+)
+
+(define-function gdk_x11_colormap_foreign_new
+ (c-name "gdk_x11_colormap_foreign_new")
+ (is-constructor-of "GdkX11ColormapForeign")
+ (return-type "GdkColormap*")
+ (parameters
+ '("GdkVisual*" "visual")
+ '("Colormap" "xcolormap")
+ )
+)
+
+(define-function gdk_xid_table_lookup_for_display
+ (c-name "gdk_xid_table_lookup_for_display")
+ (return-type "gpointer")
+ (parameters
+ '("GdkDisplay*" "display")
+ '("XID" "xid")
+ )
+)
+
+(define-function gdk_x11_get_server_time
+ (c-name "gdk_x11_get_server_time")
+ (return-type "guint32")
+ (parameters
+ '("GdkWindow*" "window")
+ )
+)
+
+(define-function gdk_x11_display_get_user_time
+ (c-name "gdk_x11_display_get_user_time")
+ (return-type "guint32")
+ (parameters
+ '("GdkDisplay*" "display")
+ )
+)
+
+(define-function gdk_x11_display_get_startup_notification_id
+ (c-name "gdk_x11_display_get_startup_notification_id")
+ (return-type "const-gchar*")
+ (parameters
+ '("GdkDisplay*" "display")
+ )
+)
+
+(define-function gdk_x11_display_set_cursor_theme
+ (c-name "gdk_x11_display_set_cursor_theme")
+ (return-type "none")
+ (parameters
+ '("GdkDisplay*" "display")
+ '("const-gchar*" "theme")
+ '("const-gint" "size")
+ )
+)
+
+(define-function gdk_x11_display_broadcast_startup_message
+ (c-name "gdk_x11_display_broadcast_startup_message")
+ (return-type "none")
+ (parameters
+ '("GdkDisplay*" "display")
+ '("const-char*" "message_type")
+ )
+ (varargs #t)
+)
+
+(define-function gdk_x11_screen_supports_net_wm_hint
+ (c-name "gdk_x11_screen_supports_net_wm_hint")
+ (return-type "gboolean")
+ (parameters
+ '("GdkScreen*" "screen")
+ '("GdkAtom" "property")
+ )
+)
+
+(define-function gdk_x11_screen_get_monitor_output
+ (c-name "gdk_x11_screen_get_monitor_output")
+ (return-type "XID")
+ (parameters
+ '("GdkScreen*" "screen")
+ '("gint" "monitor_num")
+ )
+)
+
+(define-function gdk_xid_table_lookup
+ (c-name "gdk_xid_table_lookup")
+ (return-type "gpointer")
+ (parameters
+ '("XID" "xid")
+ )
+)
+
+(define-function gdk_net_wm_supports
+ (c-name "gdk_net_wm_supports")
+ (return-type "gboolean")
+ (parameters
+ '("GdkAtom" "property")
+ )
+)
+
+(define-function gdk_x11_grab_server
+ (c-name "gdk_x11_grab_server")
+ (return-type "none")
+)
+
+(define-function gdk_x11_ungrab_server
+ (c-name "gdk_x11_ungrab_server")
+ (return-type "none")
+)
+
+(define-function gdk_x11_lookup_xdisplay
+ (c-name "gdk_x11_lookup_xdisplay")
+ (return-type "GdkDisplay*")
+ (parameters
+ '("Display*" "xdisplay")
+ )
+)
+
+(define-function gdk_x11_atom_to_xatom_for_display
+ (c-name "gdk_x11_atom_to_xatom_for_display")
+ (return-type "Atom")
+ (parameters
+ '("GdkDisplay*" "display")
+ '("GdkAtom" "atom")
+ )
+)
+
+(define-function gdk_x11_xatom_to_atom_for_display
+ (c-name "gdk_x11_xatom_to_atom_for_display")
+ (return-type "GdkAtom")
+ (parameters
+ '("GdkDisplay*" "display")
+ '("Atom" "xatom")
+ )
+)
+
+(define-function gdk_x11_get_xatom_by_name_for_display
+ (c-name "gdk_x11_get_xatom_by_name_for_display")
+ (return-type "Atom")
+ (parameters
+ '("GdkDisplay*" "display")
+ '("const-gchar*" "atom_name")
+ )
+)
+
+(define-function gdk_x11_get_xatom_name_for_display
+ (c-name "gdk_x11_get_xatom_name_for_display")
+ (return-type "const-gchar*")
+ (parameters
+ '("GdkDisplay*" "display")
+ '("Atom" "xatom")
+ )
+)
+
+(define-function gdk_x11_atom_to_xatom
+ (c-name "gdk_x11_atom_to_xatom")
+ (return-type "Atom")
+ (parameters
+ '("GdkAtom" "atom")
+ )
+)
+
+(define-function gdk_x11_xatom_to_atom
+ (c-name "gdk_x11_xatom_to_atom")
+ (return-type "GdkAtom")
+ (parameters
+ '("Atom" "xatom")
+ )
+)
+
+(define-function gdk_x11_get_xatom_by_name
+ (c-name "gdk_x11_get_xatom_by_name")
+ (return-type "Atom")
+ (parameters
+ '("const-gchar*" "atom_name")
+ )
+)
+
+(define-function gdk_x11_get_xatom_name
+ (c-name "gdk_x11_get_xatom_name")
+ (return-type "const-gchar*")
+ (parameters
+ '("Atom" "xatom")
+ )
+)
+
+(define-function gdk_x11_display_grab
+ (c-name "gdk_x11_display_grab")
+ (return-type "none")
+ (parameters
+ '("GdkDisplay*" "display")
+ )
+)
+
+(define-function gdk_x11_display_ungrab
+ (c-name "gdk_x11_display_ungrab")
+ (return-type "none")
+ (parameters
+ '("GdkDisplay*" "display")
+ )
+)
+
+(define-function gdk_x11_register_standard_event_type
+ (c-name "gdk_x11_register_standard_event_type")
+ (return-type "none")
+ (parameters
+ '("GdkDisplay*" "display")
+ '("gint" "event_base")
+ '("gint" "n_events")
+ )
+)
+
+(define-function gdk_x11_font_get_xfont
+ (c-name "gdk_x11_font_get_xfont")
+ (return-type "gpointer")
+ (parameters
+ '("GdkFont*" "font")
+ )
+)
+
+(define-function gdk_x11_font_get_xdisplay
+ (c-name "gdk_x11_font_get_xdisplay")
+ (return-type "Display*")
+ (parameters
+ '("GdkFont*" "font")
+ )
+)
+
+(define-function gdk_x11_font_get_name
+ (c-name "gdk_x11_font_get_name")
+ (return-type "const-char*")
+ (parameters
+ '("GdkFont*" "font")
+ )
+)
+
+
+
+;; From gdk-pixbuf-animation.h
+
+(define-function gdk_pixbuf_animation_get_type
+ (c-name "gdk_pixbuf_animation_get_type")
(return-type "GType")
)
+(define-function gdk_pixbuf_animation_new_from_file
+ (c-name "gdk_pixbuf_animation_new_from_file")
+ (return-type "GdkPixbufAnimation*")
+ (parameters
+ '("const-char*" "filename")
+ '("GError**" "error")
+ )
+)
+
+(define-method get_width
+ (of-object "GdkPixbufAnimation")
+ (c-name "gdk_pixbuf_animation_get_width")
+ (return-type "int")
+)
+
+(define-method get_height
+ (of-object "GdkPixbufAnimation")
+ (c-name "gdk_pixbuf_animation_get_height")
+ (return-type "int")
+)
+
+(define-method is_static_image
+ (of-object "GdkPixbufAnimation")
+ (c-name "gdk_pixbuf_animation_is_static_image")
+ (return-type "gboolean")
+)
+
+(define-method get_static_image
+ (of-object "GdkPixbufAnimation")
+ (c-name "gdk_pixbuf_animation_get_static_image")
+ (return-type "GdkPixbuf*")
+)
+
+(define-method get_iter
+ (of-object "GdkPixbufAnimation")
+ (c-name "gdk_pixbuf_animation_get_iter")
+ (return-type "GdkPixbufAnimationIter*")
+ (parameters
+ '("const-GTimeVal*" "start_time")
+ )
+)
+
+(define-function gdk_pixbuf_animation_iter_get_type
+ (c-name "gdk_pixbuf_animation_iter_get_type")
+ (return-type "GType")
+)
+
+(define-method get_delay_time
+ (of-object "GdkPixbufAnimationIter")
+ (c-name "gdk_pixbuf_animation_iter_get_delay_time")
+ (return-type "int")
+)
+
+(define-method get_pixbuf
+ (of-object "GdkPixbufAnimationIter")
+ (c-name "gdk_pixbuf_animation_iter_get_pixbuf")
+ (return-type "GdkPixbuf*")
+)
+
+(define-method on_currently_loading_frame
+ (of-object "GdkPixbufAnimationIter")
+ (c-name "gdk_pixbuf_animation_iter_on_currently_loading_frame")
+ (return-type "gboolean")
+)
+
+(define-method advance
+ (of-object "GdkPixbufAnimationIter")
+ (c-name "gdk_pixbuf_animation_iter_advance")
+ (return-type "gboolean")
+ (parameters
+ '("const-GTimeVal*" "current_time")
+ )
+)
+
+(define-function gdk_pixbuf_non_anim_get_type
+ (c-name "gdk_pixbuf_non_anim_get_type")
+ (return-type "GType")
+)
+
+(define-method non_anim_new
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_non_anim_new")
+ (return-type "GdkPixbufAnimation*")
+)
+
+
+
+;; From gdk-pixbuf-core.h
+
+(define-function gdk_pixbuf_error_quark
+ (c-name "gdk_pixbuf_error_quark")
+ (return-type "GQuark")
+)
+
+(define-function gdk_pixbuf_get_type
+ (c-name "gdk_pixbuf_get_type")
+ (return-type "GType")
+)
+
+(define-method get_colorspace
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_get_colorspace")
+ (return-type "GdkColorspace")
+)
+
+(define-method get_n_channels
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_get_n_channels")
+ (return-type "int")
+)
+
+(define-method get_has_alpha
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_get_has_alpha")
+ (return-type "gboolean")
+)
+
+(define-method get_bits_per_sample
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_get_bits_per_sample")
+ (return-type "int")
+)
+
+(define-method get_pixels
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_get_pixels")
+ (return-type "guchar*")
+)
+
+(define-method get_width
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_get_width")
+ (return-type "int")
+)
+
+(define-method get_height
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_get_height")
+ (return-type "int")
+)
+
+(define-method get_rowstride
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_get_rowstride")
+ (return-type "int")
+)
+
+(define-function gdk_pixbuf_new
+ (c-name "gdk_pixbuf_new")
+ (is-constructor-of "GdkPixbuf")
+ (return-type "GdkPixbuf*")
+ (parameters
+ '("GdkColorspace" "colorspace")
+ '("gboolean" "has_alpha")
+ '("int" "bits_per_sample")
+ '("int" "width")
+ '("int" "height")
+ )
+)
+
+(define-method copy
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_copy")
+ (return-type "GdkPixbuf*")
+)
+
+(define-method new_subpixbuf
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_new_subpixbuf")
+ (return-type "GdkPixbuf*")
+ (parameters
+ '("int" "src_x")
+ '("int" "src_y")
+ '("int" "width")
+ '("int" "height")
+ )
+)
+
+(define-function gdk_pixbuf_new_from_file
+ (c-name "gdk_pixbuf_new_from_file")
+ (return-type "GdkPixbuf*")
+ (parameters
+ '("const-char*" "filename")
+ '("GError**" "error")
+ )
+)
+
+(define-function gdk_pixbuf_new_from_file_at_size
+ (c-name "gdk_pixbuf_new_from_file_at_size")
+ (return-type "GdkPixbuf*")
+ (parameters
+ '("const-char*" "filename")
+ '("int" "width")
+ '("int" "height")
+ '("GError**" "error")
+ )
+)
+
+(define-function gdk_pixbuf_new_from_file_at_scale
+ (c-name "gdk_pixbuf_new_from_file_at_scale")
+ (return-type "GdkPixbuf*")
+ (parameters
+ '("const-char*" "filename")
+ '("int" "width")
+ '("int" "height")
+ '("gboolean" "preserve_aspect_ratio")
+ '("GError**" "error")
+ )
+)
+
+(define-function gdk_pixbuf_new_from_data
+ (c-name "gdk_pixbuf_new_from_data")
+ (return-type "GdkPixbuf*")
+ (parameters
+ '("const-guchar*" "data")
+ '("GdkColorspace" "colorspace")
+ '("gboolean" "has_alpha")
+ '("int" "bits_per_sample")
+ '("int" "width")
+ '("int" "height")
+ '("int" "rowstride")
+ '("GdkPixbufDestroyNotify" "destroy_fn")
+ '("gpointer" "destroy_fn_data")
+ )
+)
+
+(define-function gdk_pixbuf_new_from_xpm_data
+ (c-name "gdk_pixbuf_new_from_xpm_data")
+ (return-type "GdkPixbuf*")
+ (parameters
+ '("const-char**" "data")
+ )
+)
+
+(define-function gdk_pixbuf_new_from_inline
+ (c-name "gdk_pixbuf_new_from_inline")
+ (return-type "GdkPixbuf*")
+ (parameters
+ '("gint" "data_length")
+ '("const-guint8*" "data")
+ '("gboolean" "copy_pixels")
+ '("GError**" "error")
+ )
+)
+
+(define-method fill
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_fill")
+ (return-type "none")
+ (parameters
+ '("guint32" "pixel")
+ )
+)
+
+(define-method save
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_save")
+ (return-type "gboolean")
+ (parameters
+ '("const-char*" "filename")
+ '("const-char*" "type")
+ '("GError**" "error")
+ )
+ (varargs #t)
+)
+
+(define-method savev
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_savev")
+ (return-type "gboolean")
+ (parameters
+ '("const-char*" "filename")
+ '("const-char*" "type")
+ '("char**" "option_keys")
+ '("char**" "option_values")
+ '("GError**" "error")
+ )
+)
+
+(define-method save_to_callback
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_save_to_callback")
+ (return-type "gboolean")
+ (parameters
+ '("GdkPixbufSaveFunc" "save_func")
+ '("gpointer" "user_data")
+ '("const-char*" "type")
+ '("GError**" "error")
+ )
+ (varargs #t)
+)
+
+(define-method save_to_callbackv
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_save_to_callbackv")
+ (return-type "gboolean")
+ (parameters
+ '("GdkPixbufSaveFunc" "save_func")
+ '("gpointer" "user_data")
+ '("const-char*" "type")
+ '("char**" "option_keys")
+ '("char**" "option_values")
+ '("GError**" "error")
+ )
+)
+
+(define-method save_to_buffer
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_save_to_buffer")
+ (return-type "gboolean")
+ (parameters
+ '("gchar**" "buffer")
+ '("gsize*" "buffer_size")
+ '("const-char*" "type")
+ '("GError**" "error")
+ )
+ (varargs #t)
+)
+
+(define-method save_to_bufferv
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_save_to_bufferv")
+ (return-type "gboolean")
+ (parameters
+ '("gchar**" "buffer")
+ '("gsize*" "buffer_size")
+ '("const-char*" "type")
+ '("char**" "option_keys")
+ '("char**" "option_values")
+ '("GError**" "error")
+ )
+)
+
+(define-function gdk_pixbuf_new_from_stream
+ (c-name "gdk_pixbuf_new_from_stream")
+ (return-type "GdkPixbuf*")
+ (parameters
+ '("GInputStream*" "stream")
+ '("GCancellable*" "cancellable")
+ '("GError**" "error")
+ )
+)
+
+(define-function gdk_pixbuf_new_from_stream_at_scale
+ (c-name "gdk_pixbuf_new_from_stream_at_scale")
+ (return-type "GdkPixbuf*")
+ (parameters
+ '("GInputStream*" "stream")
+ '("gint" "width")
+ '("gint" "height")
+ '("gboolean" "preserve_aspect_ratio")
+ '("GCancellable*" "cancellable")
+ '("GError**" "error")
+ )
+)
+
+(define-method save_to_stream
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_save_to_stream")
+ (return-type "gboolean")
+ (parameters
+ '("GOutputStream*" "stream")
+ '("const-char*" "type")
+ '("GCancellable*" "cancellable")
+ '("GError**" "error")
+ )
+ (varargs #t)
+)
+
+(define-method add_alpha
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_add_alpha")
+ (return-type "GdkPixbuf*")
+ (parameters
+ '("gboolean" "substitute_color")
+ '("guchar" "r")
+ '("guchar" "g")
+ '("guchar" "b")
+ )
+)
+
+(define-method copy_area
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_copy_area")
+ (return-type "none")
+ (parameters
+ '("int" "src_x")
+ '("int" "src_y")
+ '("int" "width")
+ '("int" "height")
+ '("GdkPixbuf*" "dest_pixbuf")
+ '("int" "dest_x")
+ '("int" "dest_y")
+ )
+)
+
+(define-method saturate_and_pixelate
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_saturate_and_pixelate")
+ (return-type "none")
+ (parameters
+ '("GdkPixbuf*" "dest")
+ '("gfloat" "saturation")
+ '("gboolean" "pixelate")
+ )
+)
+
+(define-method apply_embedded_orientation
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_apply_embedded_orientation")
+ (return-type "GdkPixbuf*")
+)
+
+(define-method get_option
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_get_option")
+ (return-type "const-gchar*")
+ (parameters
+ '("const-gchar*" "key")
+ )
+)
+
+
+
+;; From gdk-pixbuf-enum-types.h
+
+(define-function gdk_pixbuf_alpha_mode_get_type
+ (c-name "gdk_pixbuf_alpha_mode_get_type")
+ (return-type "GType")
+)
+
+(define-function gdk_colorspace_get_type
+ (c-name "gdk_colorspace_get_type")
+ (return-type "GType")
+)
+
+(define-function gdk_pixbuf_error_get_type
+ (c-name "gdk_pixbuf_error_get_type")
+ (return-type "GType")
+)
+
+(define-function gdk_interp_type_get_type
+ (c-name "gdk_interp_type_get_type")
+ (return-type "GType")
+)
+
+(define-function gdk_pixbuf_rotation_get_type
+ (c-name "gdk_pixbuf_rotation_get_type")
+ (return-type "GType")
+)
+
+
+
+;; From gdk-pixbuf-features.h
+
+
+
+;; From gdk-pixbuf.h
+
+
+
+;; From gdk-pixbuf-io.h
+
+(define-function gdk_pixbuf_get_formats
+ (c-name "gdk_pixbuf_get_formats")
+ (return-type "GSList*")
+)
+
+(define-method get_name
+ (of-object "GdkPixbufFormat")
+ (c-name "gdk_pixbuf_format_get_name")
+ (return-type "gchar*")
+)
+
+(define-method get_description
+ (of-object "GdkPixbufFormat")
+ (c-name "gdk_pixbuf_format_get_description")
+ (return-type "gchar*")
+)
+
+(define-method get_mime_types
+ (of-object "GdkPixbufFormat")
+ (c-name "gdk_pixbuf_format_get_mime_types")
+ (return-type "gchar**")
+)
+
+(define-method get_extensions
+ (of-object "GdkPixbufFormat")
+ (c-name "gdk_pixbuf_format_get_extensions")
+ (return-type "gchar**")
+)
+
+(define-method is_writable
+ (of-object "GdkPixbufFormat")
+ (c-name "gdk_pixbuf_format_is_writable")
+ (return-type "gboolean")
+)
+
+(define-method is_scalable
+ (of-object "GdkPixbufFormat")
+ (c-name "gdk_pixbuf_format_is_scalable")
+ (return-type "gboolean")
+)
+
+(define-method is_disabled
+ (of-object "GdkPixbufFormat")
+ (c-name "gdk_pixbuf_format_is_disabled")
+ (return-type "gboolean")
+)
+
+(define-method set_disabled
+ (of-object "GdkPixbufFormat")
+ (c-name "gdk_pixbuf_format_set_disabled")
+ (return-type "none")
+ (parameters
+ '("gboolean" "disabled")
+ )
+)
+
+(define-method get_license
+ (of-object "GdkPixbufFormat")
+ (c-name "gdk_pixbuf_format_get_license")
+ (return-type "gchar*")
+)
+
+(define-function gdk_pixbuf_get_file_info
+ (c-name "gdk_pixbuf_get_file_info")
+ (return-type "GdkPixbufFormat*")
+ (parameters
+ '("const-gchar*" "filename")
+ '("gint*" "width")
+ '("gint*" "height")
+ )
+)
+
+(define-method set_option
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_set_option")
+ (return-type "gboolean")
+ (parameters
+ '("const-gchar*" "key")
+ '("const-gchar*" "value")
+ )
+)
+
+
+
+;; From gdk-pixbuf-loader.h
+
+(define-function gdk_pixbuf_loader_get_type
+ (c-name "gdk_pixbuf_loader_get_type")
+ (return-type "GType")
+)
+
+(define-function gdk_pixbuf_loader_new
+ (c-name "gdk_pixbuf_loader_new")
+ (is-constructor-of "GdkPixbufLoader")
+ (return-type "GdkPixbufLoader*")
+)
+
+(define-function gdk_pixbuf_loader_new_with_type
+ (c-name "gdk_pixbuf_loader_new_with_type")
+ (return-type "GdkPixbufLoader*")
+ (parameters
+ '("const-char*" "image_type")
+ '("GError**" "error")
+ )
+)
+
+(define-function gdk_pixbuf_loader_new_with_mime_type
+ (c-name "gdk_pixbuf_loader_new_with_mime_type")
+ (return-type "GdkPixbufLoader*")
+ (parameters
+ '("const-char*" "mime_type")
+ '("GError**" "error")
+ )
+)
+
+(define-method set_size
+ (of-object "GdkPixbufLoader")
+ (c-name "gdk_pixbuf_loader_set_size")
+ (return-type "none")
+ (parameters
+ '("int" "width")
+ '("int" "height")
+ )
+)
+
+(define-method write
+ (of-object "GdkPixbufLoader")
+ (c-name "gdk_pixbuf_loader_write")
+ (return-type "gboolean")
+ (parameters
+ '("const-guchar*" "buf")
+ '("gsize" "count")
+ '("GError**" "error")
+ )
+)
+
+(define-method get_pixbuf
+ (of-object "GdkPixbufLoader")
+ (c-name "gdk_pixbuf_loader_get_pixbuf")
+ (return-type "GdkPixbuf*")
+)
+
+(define-method get_animation
+ (of-object "GdkPixbufLoader")
+ (c-name "gdk_pixbuf_loader_get_animation")
+ (return-type "GdkPixbufAnimation*")
+)
+
+(define-method close
+ (of-object "GdkPixbufLoader")
+ (c-name "gdk_pixbuf_loader_close")
+ (return-type "gboolean")
+ (parameters
+ '("GError**" "error")
+ )
+)
+
+(define-method get_format
+ (of-object "GdkPixbufLoader")
+ (c-name "gdk_pixbuf_loader_get_format")
+ (return-type "GdkPixbufFormat*")
+)
+
+
+
+;; From gdk-pixbuf-marshal.h
+
+
+
+;; From gdk-pixbuf-simple-anim.h
+
+(define-function gdk_pixbuf_simple_anim_get_type
+ (c-name "gdk_pixbuf_simple_anim_get_type")
+ (return-type "GType")
+)
+
+(define-function gdk_pixbuf_simple_anim_iter_get_type
+ (c-name "gdk_pixbuf_simple_anim_iter_get_type")
+ (return-type "GType")
+)
+
+(define-function gdk_pixbuf_simple_anim_new
+ (c-name "gdk_pixbuf_simple_anim_new")
+ (is-constructor-of "GdkPixbufSimpleAnim")
+ (return-type "GdkPixbufSimpleAnim*")
+ (parameters
+ '("gint" "width")
+ '("gint" "height")
+ '("gfloat" "rate")
+ )
+)
+
+(define-method add_frame
+ (of-object "GdkPixbufSimpleAnim")
+ (c-name "gdk_pixbuf_simple_anim_add_frame")
+ (return-type "none")
+ (parameters
+ '("GdkPixbuf*" "pixbuf")
+ )
+)
+
+(define-method set_loop
+ (of-object "GdkPixbufSimpleAnim")
+ (c-name "gdk_pixbuf_simple_anim_set_loop")
+ (return-type "none")
+ (parameters
+ '("gboolean" "loop")
+ )
+)
+
+(define-method get_loop
+ (of-object "GdkPixbufSimpleAnim")
+ (c-name "gdk_pixbuf_simple_anim_get_loop")
+ (return-type "gboolean")
+)
+
+
+
+;; From gdk-pixbuf-transform.h
+
+(define-method scale
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_scale")
+ (return-type "none")
+ (parameters
+ '("GdkPixbuf*" "dest")
+ '("int" "dest_x")
+ '("int" "dest_y")
+ '("int" "dest_width")
+ '("int" "dest_height")
+ '("double" "offset_x")
+ '("double" "offset_y")
+ '("double" "scale_x")
+ '("double" "scale_y")
+ '("GdkInterpType" "interp_type")
+ )
+)
+
+(define-method composite
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_composite")
+ (return-type "none")
+ (parameters
+ '("GdkPixbuf*" "dest")
+ '("int" "dest_x")
+ '("int" "dest_y")
+ '("int" "dest_width")
+ '("int" "dest_height")
+ '("double" "offset_x")
+ '("double" "offset_y")
+ '("double" "scale_x")
+ '("double" "scale_y")
+ '("GdkInterpType" "interp_type")
+ '("int" "overall_alpha")
+ )
+)
+
+(define-method composite_color
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_composite_color")
+ (return-type "none")
+ (parameters
+ '("GdkPixbuf*" "dest")
+ '("int" "dest_x")
+ '("int" "dest_y")
+ '("int" "dest_width")
+ '("int" "dest_height")
+ '("double" "offset_x")
+ '("double" "offset_y")
+ '("double" "scale_x")
+ '("double" "scale_y")
+ '("GdkInterpType" "interp_type")
+ '("int" "overall_alpha")
+ '("int" "check_x")
+ '("int" "check_y")
+ '("int" "check_size")
+ '("guint32" "color1")
+ '("guint32" "color2")
+ )
+)
+
+(define-method scale_simple
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_scale_simple")
+ (return-type "GdkPixbuf*")
+ (parameters
+ '("int" "dest_width")
+ '("int" "dest_height")
+ '("GdkInterpType" "interp_type")
+ )
+)
+
+(define-method composite_color_simple
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_composite_color_simple")
+ (return-type "GdkPixbuf*")
+ (parameters
+ '("int" "dest_width")
+ '("int" "dest_height")
+ '("GdkInterpType" "interp_type")
+ '("int" "overall_alpha")
+ '("int" "check_size")
+ '("guint32" "color1")
+ '("guint32" "color2")
+ )
+)
+
+(define-method rotate_simple
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_rotate_simple")
+ (return-type "GdkPixbuf*")
+ (parameters
+ '("GdkPixbufRotation" "angle")
+ )
+)
+
+(define-method flip
+ (of-object "GdkPixbuf")
+ (c-name "gdk_pixbuf_flip")
+ (return-type "GdkPixbuf*")
+ (parameters
+ '("gboolean" "horizontal")
+ )
+)
+
+
+
+;; From gdk-pixdata.h
+
+(define-method serialize
+ (of-object "GdkPixdata")
+ (c-name "gdk_pixdata_serialize")
+ (return-type "guint8*")
+ (parameters
+ '("guint*" "stream_length_p")
+ )
+)
+
+(define-method deserialize
+ (of-object "GdkPixdata")
+ (c-name "gdk_pixdata_deserialize")
+ (return-type "gboolean")
+ (parameters
+ '("guint" "stream_length")
+ '("const-guint8*" "stream")
+ '("GError**" "error")
+ )
+)
+
+(define-method from_pixbuf
+ (of-object "GdkPixdata")
+ (c-name "gdk_pixdata_from_pixbuf")
+ (return-type "gpointer")
+ (parameters
+ '("const-GdkPixbuf*" "pixbuf")
+ '("gboolean" "use_rle")
+ )
+)
+
+(define-function gdk_pixbuf_from_pixdata
+ (c-name "gdk_pixbuf_from_pixdata")
+ (return-type "GdkPixbuf*")
+ (parameters
+ '("const-GdkPixdata*" "pixdata")
+ '("gboolean" "copy_pixels")
+ '("GError**" "error")
+ )
+)
+
+(define-method to_csource
+ (of-object "GdkPixdata")
+ (c-name "gdk_pixdata_to_csource")
+ (return-type "GString*")
+ (parameters
+ '("const-gchar*" "name")
+ '("GdkPixdataDumpType" "dump_type")
+ )
+)
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]