GtkWidget.create_render_node() sets up a GskRenderNode appropriate for rendering the contents of a widget, including its bounds, transformation, and anchor point.
354d443 gtk: Add convenience function for creating render nodes
gtk/gtkwidget.c | 26 ++++++++++++++++++++++++++
gtk/gtkwidgetprivate.h | 4 ++++
2 files changed, 30 insertions(+)
Upstream: git.gnome.org