Package: gtk

Function gtk:widget-snapshot-child

Lambda List

gtk:widget-snapshot-child (widget child snapshot)

Arguments

widget -- a gtk:widget object
child -- a gtk:widget child widget of widget
snapshot -- a gtk:snapshot object as passed to the widget, in particular, no calls to the gtk:snapshot-translate function or other transform calls should have been made

Details

When a widget receives a call to the snapshot function, it must send synthetic gtk:widget-snapshot calls to all children. This function provides a convenient way of doing this. A widget, when it receives a call to its gtk:widget-snapshot virtual function, calls the gtk:widget-snapshot-child function once for each child, passing in the snapshot the widget received.

The gtk:widget-snapshot-child function takes care of translating the origin of snapshot, and deciding whether the child needs to be snapshot.

This function does nothing for children that implement the gtk:native interface.
 

See also

2025-2-15