Commit 07e48d39 authored by Timm Bäder's avatar Timm Bäder 👎

widget: Add gtk_widget_set_transform

This might not stay until the end but for now it's good enough to test
widget transforms.
parent 4d3a07c5
......@@ -13712,3 +13712,12 @@ gtk_widget_get_height (GtkWidget *widget) - border.bottom - - padding.bottom;
gtk_widget_set_transform (GtkWidget *widget,
const graphene_matrix_t *transform)
GtkWidgetPrivate *priv = gtk_widget_get_instance_private (widget);
graphene_matrix_init_from_matrix (&priv->transform, transform);
......@@ -1050,6 +1050,10 @@ void gtk_widget_snapshot_child (GtkWidget *widget,
GtkWidget *child,
GtkSnapshot *snapshot);
void gtk_widget_set_transform (GtkWidget *widget,
const graphene_matrix_t *transform);
  • What's your plan with this function? The commit says

    might not stay until the end

    but at the top of the branch it's still there.

  • It's still there because it's useful for unit tests. It doesn't really make sense for public API of course since it'll be overridden on the next size_allocate. I don't think we want to have it in the end.

Please register or sign in to reply
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