Synopsis
typedef struct {
  unsigned long api_pen_color;
  unsigned long device_pen_color;
  unsigned long api_text_color;
  unsigned long device_text_color;
  CTL_GFX_RECTANGLE_t api_clip;
  CTL_GFX_RECTANGLE_t device_clip;
  const CTL_GFX_BITMAP_FONT_t *current_font;
  int rotation;
  void (*convert_point)(CTL_GFX_POINT_t *, int , int);
} CTL_GFX_CONTEXT_t;
Description

CTL_GFX_CONTEXT_t contains the context for the active graphics controller.

api_pen_color
The 24-bit RGB device-independent pen color.
device_pen_color
The cached device color corresponding the api_pen_color.
api_text_color
The 24-bit RGB device-independent text color.
device_text_color
The cached device color corresponding the api_text_color.
api_clip
The clipping rectangle in API coordinates.
device_clip
The clipping rectangle in device coordinates.
current_font
The active font.
rotation
The API-level device rotation. 0 is no rotation, 1 is 90 degrees counter clockwise, 2 is 180 degrees, and 3 is 270 degrees counter clockwise.
convert_point
The function that applies the rotation selected in rotation to the API point p before being passed to the device driver.