GDI Support Services for Display Drivers

The Windows CE GDI provides some services to support display drivers, in the form of predefined structs with functions that act on them, and a few standalone C functions. Predefined structs provide support for brushes, clipping regions, palettes, stroke and fill paths, and translations. Standalone C functions provide support for device bitmaps and surfaces.

Structure or Function Purpose
BRUSHOBJ Structure representing a brush used for solid or patterned stroke and fill operations.
BRUSHOBJ_pvAllocRbrush Function that allocates memory for a brush.
BRUSHOBJ_pvGetRbrush Function that retrieves a pointer to the specified brush.
CLIPOBJ Structure representing a clipping region.
CLIPOBJ_bEnum Function that enumerates clipping rectangles from a clipping region.
CLIPOBJ_cEnumStart Function that sets parameters for enumerating the rectangles in a clipping region.
EngCreateDeviceBitmap Function that causes GDI to create a handle for a device bitmap.
EngCreateDeviceSurface Function that causes GDI to create a device surface that the display driver will manage.
EngDeleteSurface Function that informs GDI that a device surface is no longer needed by the display driver.
PALOBJ_cGetColors Function that copies colors into a palette.
PATHDATA Structure that stores portions of a drawing path.
PATHOBJ_bEnum Function that enumatates PATHDATA records from a drawing path.
PATHOBJ_vEnumStart Function that readies a drawing path for having its component line segments enumerated.
PATHOBJ_vGetBounds Function that returns the bounding rectangle for a drawing path.
XLATEOBJ Structure used in translating colors from one palette to another.
XLATEOBJ_cGetPalette Function that retrieves colors from an indexed palette.