[gtk+] inspector: Show child bounds for repeat nodes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] inspector: Show child bounds for repeat nodes
- Date: Sun, 8 Oct 2017 16:29:16 +0000 (UTC)
commit 9e613be8c61518d92215f1f4480f88c51092dcb3
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Oct 8 08:43:03 2017 -0400
inspector: Show child bounds for repeat nodes
The more information, the better.
gtk/inspector/recorder.c | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
---
diff --git a/gtk/inspector/recorder.c b/gtk/inspector/recorder.c
index 7f2ed0a..eac8faf 100644
--- a/gtk/inspector/recorder.c
+++ b/gtk/inspector/recorder.c
@@ -502,11 +502,24 @@ populate_render_node_properties (GtkListStore *store,
}
break;
+ case GSK_REPEAT_NODE:
+ {
+ const graphene_rect_t *child_bounds = gsk_repeat_node_peek_child_bounds (node);
+
+ tmp = g_strdup_printf ("%.2f x %.2f + %.2f + %.2f",
+ child_bounds->size.width,
+ child_bounds->size.height,
+ child_bounds->origin.x,
+ child_bounds->origin.y);
+ add_text_row (store, "Child Bounds", tmp);
+ g_free (tmp);
+ }
+ break;
+
case GSK_NOT_A_RENDER_NODE:
case GSK_CONTAINER_NODE:
case GSK_TRANSFORM_NODE:
case GSK_COLOR_MATRIX_NODE:
- case GSK_REPEAT_NODE:
case GSK_CLIP_NODE:
case GSK_ROUNDED_CLIP_NODE:
case GSK_SHADOW_NODE:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]