PtDBContainer

Gamma/Photon: Using Gamma™ with the Photon microGUIŽ, Version 4.0
Prev |  | Next

# `PtDBContainer`

`PtDBContainer` -- A double-buffered container that eliminates screen flicker.

## Synopsis

    class PtDBContainer PtContainer
    {
        db_image_type;        // integer  (Pt_ARG_DB_IMAGE_TYPE)
        memory_image_type;    // integer  (Pt_ARG_DB_MEMORY_CONTEXT_TYPE)
    }

## Base Classes

`PtWidget` <-- `PtBasic` <-- `PtContainer` <-- `PtDBContainer`

## Description

This widget is a special sub-class of `PtContainer` that allocates extra memory (double buffer) to eliminate screen flicker for child widgets and animations.

| For detailed information, please refer to PtDBContainer in the Photon documentation.

## Instance Variables

db_image_type

  This instance variable specifies the image format, and may have one of the following values:

  Constant | Description
  --- | ---
  Pg_IMAGE_PALETTE_BYTE | An image format indexed directly to the current palette, using 1 pixel per byte, for up to 256 colors. This is the default.
  Pg_IMAGE_DIRECT_888 | An image format consisting of an array of 4-byte color entries, in the format [r g b x], where x is reserved.

memory_image_type

  This instance variable specifies when an image is drawn to memory, and may have one of the following values:

  Constant | Description
  --- | ---
  Pm_PHS_CONTEXT | Keeps the image in the PHS (Photon draw stream) as long as possible. This is the default.
  Pm_IMAGE_CONTEXT | Immediately draws to the memory image.

Prev | Home | Next
`PtContainer` | Up | `PtDivider`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.