Offscreen-context container for flicker-free drawing
PtWidget → PtBasic → PtContainer → PtOSContainer
For more information, see the diagram of the widget hierarchy.
<photon/PtOSContainer.h>
PtOSContainer creates an offscreen context and forces all its children's draws to be directed to that context. The draw stream is rendered into offscreen video memory, taking advantage of any hardware-acceleration features supported by the graphics driver. The graphics hardware can then blit the image directly onto the screen, resulting in flicker-free widgets and/or animation.
When you unrealize a PtOSContainer widget, its offscreen memory is automatically released. When you rerealize the widget, the offscreen memory is reallocated. |
If the widget modifies an inherited resource, the “Default override” column indicates the new value. This modification affects any subclasses of the widget.
You can't set this resource to Pg_TRANSPARENT. The widget ignores any attempt to do so.