/usr/share/pygtk/2.0/defs/gdk-2.18.defs is in python-gtk2-dev 2.24.0-4ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | ;; -*- scheme -*-
; object definitions ...
;; From gdkcairo.h
(define-function cairo_reset_clip
(c-name "gdk_cairo_reset_clip")
(return-type "none")
(parameters
'("cairo_t*" "cr")
'("GdkDrawable*" "drawable")
)
)
;; From gdkwindow.h
(define-function offscreen_window_get_pixmap
(c-name "gdk_offscreen_window_get_pixmap")
(return-type "GdkPixmap*")
(parameters
'("GdkWindow*" "window")
)
)
(define-function offscreen_window_set_embedder
(c-name "gdk_offscreen_window_set_embedder")
(return-type "none")
(parameters
'("GdkWindow*" "window")
'("GdkWindow*" "embedder")
)
)
(define-function offscreen_window_get_embedder
(c-name "gdk_offscreen_window_get_embedder")
(return-type "GdkWindow*")
(parameters
'("GdkWindow*" "window")
)
)
;; From gdkregion.h
(define-method rect_equal
(of-object "GdkRegion")
(c-name "gdk_region_rect_equal")
(return-type "gboolean")
(parameters
'("const-GdkRectangle*" "rectangle")
)
)
;; From gdkwindow.h
(define-method ensure_native
(of-object "GdkWindow")
(c-name "gdk_window_ensure_native")
(return-type "gboolean")
)
(define-method flush
(of-object "GdkWindow")
(c-name "gdk_window_flush")
(return-type "none")
)
(define-method geometry_changed
(of-object "GdkWindow")
(c-name "gdk_window_geometry_changed")
(return-type "none")
)
(define-method get_cursor
(of-object "GdkWindow")
(c-name "gdk_window_get_cursor")
(return-type "GdkCursor*")
)
(define-method restack
(of-object "GdkWindow")
(c-name "gdk_window_restack")
(return-type "none")
(parameters
'("GdkWindow*" "sibling")
'("gboolean" "above")
)
)
(define-method is_destroyed
(of-object "GdkWindow")
(c-name "gdk_window_is_destroyed")
(return-type "gboolean")
)
(define-method get_root_coords
(of-object "GdkWindow")
(c-name "gdk_window_get_root_coords")
(return-type "none")
(parameters
'("gint" "x")
'("gint" "y")
'("gint*" "root_x")
'("gint*" "root_y")
)
)
|