[gtk/wip/baedert/transforms6: 2/27] widget: Add transform matrix
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/transforms6: 2/27] widget: Add transform matrix
- Date: Wed, 12 Dec 2018 08:02:45 +0000 (UTC)
commit 876df3af641eaf1ccbed10996e2696102f07d3cf
Author: Timm Bäder <mail baedert org>
Date: Sat Jul 21 13:51:05 2018 +0200
widget: Add transform matrix
Unused for now.
gtk/gtkwidget.c | 2 ++
gtk/gtkwidgetprivate.h | 2 ++
2 files changed, 4 insertions(+)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 4fadd96534..f0f3cd67b0 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -2830,6 +2830,8 @@ gtk_widget_init (GTypeInstance *instance, gpointer g_class)
break;
}
+ graphene_matrix_init_identity (&priv->transform);
+
/* this will be set to TRUE if the widget gets a child or if the
* expand flag is set on the widget, but until one of those happen
* we know the expand is already properly FALSE.
diff --git a/gtk/gtkwidgetprivate.h b/gtk/gtkwidgetprivate.h
index f658811358..0585eb5284 100644
--- a/gtk/gtkwidgetprivate.h
+++ b/gtk/gtkwidgetprivate.h
@@ -143,6 +143,8 @@ struct _GtkWidgetPrivate
GtkAllocation allocation;
gint allocated_baseline;
+ graphene_matrix_t transform;
+
/* The widget's requested sizes */
SizeRequestCache requests;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]