[gtk/wip/otte/paintable: 11/15] xxx: add paintable
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/paintable: 11/15] xxx: add paintable
- Date: Sat, 17 Feb 2018 06:52:04 +0000 (UTC)
commit e0752bb647efe3daea16f0565dc8241a5ba0eafd
Author: Benjamin Otte <otte redhat com>
Date: Fri Feb 16 21:11:37 2018 +0100
xxx: add paintable
gdk/gdkpaintable.h | 18 ++++++++++++++----
1 file changed, 14 insertions(+), 4 deletions(-)
---
diff --git a/gdk/gdkpaintable.h b/gdk/gdkpaintable.h
index c4ad4053a0..35135e2559 100644
--- a/gdk/gdkpaintable.h
+++ b/gdk/gdkpaintable.h
@@ -20,19 +20,22 @@
#ifndef __GDK_PAINTABLE_H__
#define __GDK_PAINTABLE_H__
-#include <cairo.h>
-#include <glib-object.h>
-
#if !defined (__GDK_H_INSIDE__) && !defined (GDK_COMPILATION)
#error "Only <gdk/gdk.h> can be included directly."
#endif
+#include <cairo.h>
+#include <glib-object.h>
+
+#include <gdk/gdkversionmacros.h>
+
G_BEGIN_DECLS
#define GDK_TYPE_PAINTABLE (gdk_paintable_get_type ())
typedef struct _GdkSnapshot GdkSnapshot; /* Forward declaration */
+GDK_AVAILABLE_IN_ALL
G_DECLARE_INTERFACE (GdkPaintable, gdk_paintable, GDK, PAINTABLE, GObject)
/**
@@ -105,21 +108,28 @@ struct _GdkPaintableInterface
double (* get_intrinsic_aspect_ratio) (GdkPaintable *paintable);
};
-
+GDK_AVAILABLE_IN_ALL
void gdk_paintable_snapshot (GdkPaintable *paintable,
GdkSnapshot *snapshot,
double width,
double height);
+GDK_AVAILABLE_IN_ALL
GdkPaintable * gdk_paintable_get_current_image (GdkPaintable *paintable);
+GDK_AVAILABLE_IN_ALL
GdkPaintableFlags
gdk_paintable_get_flags (GdkPaintable *paintable);
+GDK_AVAILABLE_IN_ALL
int gdk_paintable_get_intrinsic_width (GdkPaintable *paintable);
+GDK_AVAILABLE_IN_ALL
int gdk_paintable_get_intrinsic_height (GdkPaintable *paintable);
+GDK_AVAILABLE_IN_ALL
double gdk_paintable_get_intrinsic_aspect_ratio(GdkPaintable *paintable);
/* for implementations only */
+GDK_AVAILABLE_IN_ALL
void gdk_paintable_invalidate_contents (GdkPaintable *paintable);
+GDK_AVAILABLE_IN_ALL
void gdk_paintable_invalidate_size (GdkPaintable *paintable);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]