Mark an area of a widget as damaged so that it will be redrawn
int PtDamageExtent( PtWidget_t *widget, PhRect_t const *extent );
This function marks the specified widget as damaged and adds extent to the clipping list that will be used the next time the widget engine redraws this widget.
All widgets in front of the damaged widget that intersect with extent will be redrawn. If the damaged widget's fill color is transparent, all widgets behind it that intersect extent will be redrawn. In all cases, the clipping will be set to extent.
The widget library takes care of updating widgets whenever resources are modified. So you don't normally use this function unless you're mixing Pg calls with widget calls, and want a widget to redraw and repair itself directly.
See PhBlit().
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |