[gtkmm] Gdk::Pixbuf: Remove ctor and create() taking a RefPtr<Gdk::Window>
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm] Gdk::Pixbuf: Remove ctor and create() taking a RefPtr<Gdk::Window>
- Date: Sun, 20 Nov 2016 15:19:07 +0000 (UTC)
commit f911c01fea6abbb7d4ff9e86b72c4e7375e27469
Author: Kjell Ahlstedt <kjell ahlstedt bredband net>
Date: Sun Nov 20 16:13:36 2016 +0100
Gdk::Pixbuf: Remove ctor and create() taking a RefPtr<Gdk::Window>
because gdk_pixbuf_get_from_window() has been removed.
gdk/src/pixbuf.ccg | 8 ------
gdk/src/pixbuf.hg | 70 ----------------------------------------------------
2 files changed, 0 insertions(+), 78 deletions(-)
---
diff --git a/gdk/src/pixbuf.ccg b/gdk/src/pixbuf.ccg
index ef37fbb..9beebaf 100644
--- a/gdk/src/pixbuf.ccg
+++ b/gdk/src/pixbuf.ccg
@@ -48,14 +48,6 @@ static void pixbuf_destroy_data_callback(guint8* pixels, void* user_data)
namespace Gdk
{
-Pixbuf::Pixbuf(const Glib::RefPtr<Window>& src,
- int src_x, int src_y,
- int width, int height)
-:
- Object((GObject*) gdk_pixbuf_get_from_window(
- src->gobj(), src_x, src_y, width, height))
-{}
-
Pixbuf::Pixbuf(const ::Cairo::RefPtr< ::Cairo::Surface>& src,
int src_x, int src_y, int width, int height)
:
diff --git a/gdk/src/pixbuf.hg b/gdk/src/pixbuf.hg
index 1c8b7ba..27a4805 100644
--- a/gdk/src/pixbuf.hg
+++ b/gdk/src/pixbuf.hg
@@ -63,41 +63,6 @@ class Pixbuf
protected:
//TODO: Throw an exception when the C function returns NULL?
- /** Transfers image data from a #GdkWindow and converts it to an RGB(A)
- * representation inside a Gdk::Pixbuf. In other words, copies
- * image data from a server-side drawable to a client-side RGB(A) buffer.
- * This allows you to efficiently read individual pixels on the client side.
- *
- * This function will create an RGB pixbuf with 8 bits per channel with
- * the same size specified by the @a width and @a height arguments. The pixbuf
- * will contain an alpha channel if the @a window contains one.
- *
- * If the window is off the screen, then there is no image data in the
- * obscured/offscreen regions to be placed in the pixbuf. The contents of
- * portions of the pixbuf corresponding to the offscreen region are undefined.
- *
- * If the window you're obtaining data from is partially obscured by
- * other windows, then the contents of the pixbuf areas corresponding
- * to the obscured regions are undefined.
- *
- * If the window is not mapped (typically because it's iconified/minimized
- * or not on the current workspace), then an invalid object will be returned.
- *
- * If memory can't be allocated for the return value, an invalid object will be returned
- * instead.
- *
- * @param src Source window.
- * @param src_x Source X coordinate within the window.
- * @param src_y Source Y coordinate within the window.
- * @param width Width in pixels of region to get.
- * @param height Height in pixels of region to get.
- *
- * @newin{2,12}
- */
- Pixbuf(const Glib::RefPtr<Window>& src,
- int src_x, int src_y, int width, int height);
- _IGNORE(gdk_pixbuf_get_from_window)
-
/** Transfers image data from a Cairo::Surface and converts it to an RGB(A)
* representation inside a Gdk::Pixbuf. This allows you to efficiently read
* individual pixels from cairo surfaces. For Gdk::Windows, use the
@@ -121,41 +86,6 @@ protected:
public:
typedef sigc::slot<void(const guint8*)> SlotDestroyData;
- /** Transfers image data from a #GdkWindow and converts it to an RGB(A)
- * representation inside a Gdk::Pixbuf. In other words, copies
- * image data from a server-side drawable to a client-side RGB(A) buffer.
- * This allows you to efficiently read individual pixels on the client side.
- *
- * This function will create an RGB pixbuf with 8 bits per channel with
- * the same size specified by the @a width and @a height arguments. The pixbuf
- * will contain an alpha channel if the @a window contains one.
- *
- * If the window is off the screen, then there is no image data in the
- * obscured/offscreen regions to be placed in the pixbuf. The contents of
- * portions of the pixbuf corresponding to the offscreen region are undefined.
- *
- * If the window you're obtaining data from is partially obscured by
- * other windows, then the contents of the pixbuf areas corresponding
- * to the obscured regions are undefined.
- *
- * If the window is not mapped (typically because it's iconified/minimized
- * or not on the current workspace), then an invalid object will be returned.
- *
- * If memory can't be allocated for the return value, an invalid object will be returned
- * instead.
- *
- * @param src Source window.
- * @param src_x Source X coordinate within the window.
- * @param src_y Source Y coordinate within the window.
- * @param width Width in pixels of region to get.
- * @param height Height in pixels of region to get.
- *
- * @newin{2,12}
- */
- _WRAP_CREATE(const Glib::RefPtr<Window>& src,
- int src_x, int src_y, int width, int height)
-
-
/** Transfers image data from a Cairo::Surface and converts it to an RGB(A)
* representation inside a Gdk::Pixbuf. This allows you to efficiently read
* individual pixels from cairo surfaces. For Gdk::Windows, use the
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]