Double-buffered container for flicker-free drawing
PtWidget --> PtBasic --> PtContainer --> PtDBContainer
For more information, see the diagram of the widget hierarchy.
<photon/PtDBContainer.h>
The Double Buffer container creates a memory context and forces all its children's draws to be directed to that context. The resulting image is then drawn as an image to the default draw context. The result is flicker-free widgets/animations. The PtDBContainer widget uses a block of shared memory large enough to hold an image the size of its canvas and will also cause the render shared library to be loaded if not already present.
If your application uses PtDBContainer, the render shared library, phlib_render_11, must be in your search path. |
Resource | C type | Pt type | Default |
---|---|---|---|
Pt_ARG_DB_IMAGE_TYPE | int | Scalar | Pg_IMAGE_PALETTE_BYTE |
Pt_ARG_DB_MEMORY_CONTEXT_TYPE | int | Scalar | Pm_PHS_CONTEXT |
C type | Pt type | Default |
---|---|---|
int | Scalar | Pg_IMAGE_PALETTE_BYTE |
The type of image:
For more information, see PgDrawImage() in the Photon Library Reference.
C type | Pt type | Default |
---|---|---|
int | Scalar | Pm_PHS_CONTEXT |
The type of memory context:
If the widget modifies an inherited resource, the "Default override" column indicates the new value. This modification affects any subclasses of the widget.