Merge pull request #176 from cameronwhite/pixbuf-from-surface

Add Gdk.Pixbuf constructors for a source Gdk.Window or Cairo.Surface.
This commit is contained in:
Harry 2020-07-21 23:04:47 +02:00 committed by GitHub
commit 42956bfc3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 24 deletions

View file

@ -5033,28 +5033,6 @@
</parameters>
</method>
</class>
<class name="Pixbuf" cname="GdkPixbuf_">
<method name="GetFromSurface" cname="gdk_pixbuf_get_from_surface" shared="true">
<return-type type="GdkPixbuf*" />
<parameters>
<parameter type="cairo_surface_t*" name="surface" />
<parameter type="gint" name="src_x" />
<parameter type="gint" name="src_y" />
<parameter type="gint" name="width" />
<parameter type="gint" name="height" />
</parameters>
</method>
<method name="GetFromWindow" cname="gdk_pixbuf_get_from_window" shared="true">
<return-type type="GdkPixbuf*" />
<parameters>
<parameter type="GdkWindow*" name="window" />
<parameter type="gint" name="src_x" />
<parameter type="gint" name="src_y" />
<parameter type="gint" name="width" />
<parameter type="gint" name="height" />
</parameters>
</method>
</class>
<class name="Pointer" cname="GdkPointer_">
<method name="Grab" cname="gdk_pointer_grab" deprecated="1" shared="true">
<return-type type="GdkGrabStatus" />
@ -5709,6 +5687,24 @@
<parameter type="int" name="height" />
</parameters>
</constructor>
<constructor cname="gdk_pixbuf_get_from_surface">
<parameters>
<parameter type="cairo_surface_t*" name="surface" />
<parameter type="gint" name="src_x" />
<parameter type="gint" name="src_y" />
<parameter type="gint" name="width" />
<parameter type="gint" name="height" />
</parameters>
</constructor>
<constructor cname="gdk_pixbuf_get_from_window">
<parameters>
<parameter type="GdkWindow*" name="window" />
<parameter type="gint" name="src_x" />
<parameter type="gint" name="src_y" />
<parameter type="gint" name="width" />
<parameter type="gint" name="height" />
</parameters>
</constructor>
<method name="ReadPixelBytes" cname="gdk_pixbuf_read_pixel_bytes">
<return-type type="GBytes*" />
</method>
@ -6252,4 +6248,4 @@
<struct name="XBMData" cname="XBMData" opaque="true" />
<struct name="XPMContext" cname="XPMContext" opaque="true" />
</namespace>
</api>
</api>

View file

@ -28,7 +28,6 @@
<attr path="/api/namespace/class[@cname='GdkNotify_']" name="hidden">1</attr>
<attr path="/api/namespace/class/method[@cname='gdk_notify_startup_complete']" name="name">NotifyStartupComplete</attr>
<attr path="/api/namespace/class[@cname='GdkPango_']" name="name">PangoHelper</attr>
<attr path="/api/namespace/class[@cname='GdkPixbuf_']" name="hidden">1</attr>
<attr path="/api/namespace/class[@cname='GdkProperty_']/method[@name='Get']" name="hidden">1</attr>
<attr path="/api/namespace/class[@cname='GdkProperty_']/method[@name='Change']/*/*[@name='data']" name="array">1</attr>
<attr path="/api/namespace/class[@cname='GdkQuery_']" name="hidden">1</attr>