gtk_widget_draw documentation doesn't cover widgets using the pixel cache
@kaiw
Submitted by Kai Willadsen Link to original bug (#739945)
Description
The current docs say that:
"The top left corner of the widget will be drawn to the currently set origin point of cr ."
which is true, but somewhat misleading for widgets using the pixel cache. From experimentation with GtkTextView's draw vfunc (and the draw_layers vfunc) it appears that the context passed in does indeed have its origin set to the top left corner, but has its clip extents set to the area that the pixel cache wants you to draw.
If this is the offical/supported way of figuring out what part of widget to draw, then can that please be documented? It's pretty much essential to get this right when using the GtkTextView draw_layer vfunc.
Version: 3.22.x