[gtk/wip/baedert/transforms6: 28/61] widget: Add transform matrix
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/transforms6: 28/61] widget: Add transform matrix
- Date: Wed, 23 Jan 2019 16:53:01 +0000 (UTC)
commit 1016bb7116eaa5711113c03c8095d5572d40dc35
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 be1f058555..dd60aa7b32 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -2827,6 +2827,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]