[gtk+/wip/matthiasc/shadertoy] cheat
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/matthiasc/shadertoy] cheat
- Date: Sun, 24 Sep 2017 18:50:05 +0000 (UTC)
commit 615335159a3ad33421bbaba2be21e6245c650df3
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Sep 24 14:45:07 2017 -0400
cheat
We currently don't export enough api to do custom snapshots
outside libgtk. To demonstrate this in gtk4-demo, export
the necessary api here.
gtk/gtksnapshotprivate.h | 3 +++
gtk/gtkwidgetprivate.h | 2 +-
2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtksnapshotprivate.h b/gtk/gtksnapshotprivate.h
index deffbc1..d1fe46a 100644
--- a/gtk/gtksnapshotprivate.h
+++ b/gtk/gtksnapshotprivate.h
@@ -87,14 +87,17 @@ struct _GtkSnapshot {
GskRenderer *renderer;
};
+GDK_AVAILABLE_IN_ALL
void gtk_snapshot_init (GtkSnapshot *state,
GskRenderer *renderer,
gboolean record_names,
const cairo_region_t *clip,
const char *name,
...) G_GNUC_PRINTF (5, 6);
+GDK_AVAILABLE_IN_ALL
GskRenderNode * gtk_snapshot_finish (GtkSnapshot *state);
+GDK_AVAILABLE_IN_ALL
GskRenderer * gtk_snapshot_get_renderer (const GtkSnapshot *snapshot);
G_END_DECLS
diff --git a/gtk/gtkwidgetprivate.h b/gtk/gtkwidgetprivate.h
index 6e0b746..5c5cd6b 100644
--- a/gtk/gtkwidgetprivate.h
+++ b/gtk/gtkwidgetprivate.h
@@ -282,7 +282,7 @@ void gtk_widget_render (GtkWidget
GdkWindow *window,
const cairo_region_t *region);
-
+GDK_AVAILABLE_IN_ALL
void gtk_widget_snapshot (GtkWidget *widget,
GtkSnapshot *snapshot);
void gtk_widget_adjust_size_request (GtkWidget *widget,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]