It derives from <GObject>.
A <GdkPaintable> that displays the contents
of a widget.
<GtkWidgetPaintable> will also take care
of the widget not being in a state where it can be drawn (like when it
isn’t shown) and just draw nothing or where it does not have a size
(like when it is hidden) and report no size in that case.
Of course, <GtkWidgetPaintable> allows you
to monitor widgets for size changes by emitting the paintable:invalidate-size signal whenever
the size of the widget changes as well as for visual changes by emitting
the paintable:invalidate-contents signal whenever
the widget changes.
You can use a <GtkWidgetPaintable>
everywhere a <GdkPaintable> is allowed,
including using it on a <GtkPicture> (or one of
its parents) that it was set on itself via picture:set-paintable. The paintable will take care of
recursion when this happens. If you do this however, ensure that the
picture:can-shrink property is
set to #t or you might end up with an infinitely growing widget.
The observed widget or #f if none.
Its value is a <GtkWidget>, or #f.
Set it with (set! (widget-paintable:widget self) value).
Returns the widget that is observed or #f if none.
Passed: a <GtkWidgetPaintable>.
Returned: a <GtkWidget>, or #f.
the observed widget.
Creates a new widget paintable observing the given widget.
Passed, or left out: a <GtkWidget>, or #f.
Returned: a <GtkWidgetPaintable>.
a new <GtkWidgetPaintable>
Sets the widget that should be observed.
Passed: a <GtkWidgetPaintable>.
Passed, or left out: a <GtkWidget>, or #f.
the widget to observe