[gtk/wip/baedert/transforms6: 14/52] widget: Add transform matrix
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/transforms6: 14/52] widget: Add transform matrix
- Date: Thu, 14 Feb 2019 07:08:57 +0000 (UTC)
commit 020857e347bef6fa2121c833642aca83c07a98d8
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]