Commit 7c8b1fd6 authored by Timm Bäder's avatar Timm Bäder 👎

widget Add gtk_widget_get_transform

parent 3e646ec6
......@@ -13816,3 +13816,15 @@ gtk_widget_set_transform (GtkWidget *widget,
graphene_matrix_init_from_matrix (&priv->transform, transform);
gtk_widget_get_transform (GtkWidget *widget,
graphene_matrix_t *out_transform)
GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
g_return_if_fail (GTK_IS_WIDGET (widget));
g_return_if_fail (out_transform != NULL);
*out_transform = priv->transform;
......@@ -1061,6 +1061,9 @@ void gtk_widget_snapshot_child (GtkWidget *widget,
void gtk_widget_set_transform (GtkWidget *widget,
const graphene_matrix_t *transform);
void gtk_widget_get_transform (GtkWidget *widget,
graphene_matrix_t *out_transform);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkWidget, g_object_unref)
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkRequisition, gtk_requisition_free)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment