[gtk/wip/baedert/transforms6: 240/273] widget: Add transform matrix
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/transforms6: 240/273] widget: Add transform matrix
- Date: Wed, 13 Feb 2019 09:13:27 +0000 (UTC)
commit 6ad72b7e26d2e946fc43e5241c5500f8d87a5f0b
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 9207a46b1d..8d785a56f2 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -2850,6 +2850,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 26c33ba0bc..ba23cbb599 100644
--- a/gtk/gtkwidgetprivate.h
+++ b/gtk/gtkwidgetprivate.h
@@ -144,6 +144,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]