Compounds | |
struct | gdm_display |
struct | gdm_line |
Defines | |
#define | GDM_HEIGHT (64) |
#define | GDM_WIDTH (128) |
Typedefs | |
typedef gdm_line | gdm_line |
typedef int(* | gdm_clip_point_handler )(struct gdm_display *dp, short x, short y) |
typedef gdm_display | gdm_display |
Enumerations | |
enum | gdm_gc_mode { GDM_PLOT_OR , GDM_PLOT_AND , GDM_PLOT_XOR } |
Functions | |
gdm_line * | gdm_get_raw_line (gdm_display *dp, short y) |
The drawing operations are made in the display manager bitmap. This bitmap is in memory. Once the drawing is finished, the bitmap must be synchronized with the LCD screen. The display manager will do this by sending the data to the LCD controller. Only the regions that have changed are really synchronized thus reducing the interactions with the LCD controller. The synchronization process is made by the gdm_refresh which should be called after the drawing operations are finished. The gdm_touch operation can be used to force a synchronization with the LCD controller.
To use this library, you should:
include <gdm/display.h>
-lgdmduring the link.
|
Height of display in pixels. Definition at line 115 of file display.h. Referenced by gdm_get_raw_line(). |
|
Width of display in pixels. |
|
Clipping handler for a point.
|
|
Display Manager Representation The display manager is represented by the gdm_display data structure. It defines the current graphical context for the drawing operation and contains the graphic bitmap. The display manager is intended to be allocated statically. It must be initialized once using gdm_initialize before any other operation. For example:
static gdm_display display; / * Static or global!!! * / ... gdm_initialize (&display); After a sequence of drawing operation, the LCD display must be refreshed explicitly by calling gdm_refresh. For example:
... / * Do some complex drawing * / gdm_refresh (&display);
|
|
Display Line Representation The display line represents a complete row of the LCD display. The LCD display is decomposed in 8 rows of 128 bytes each. Each row is indexed by a register (named X in KS0108 driver). The row spans on two KS0108 drivers: the left and right drivers. Graphically the row forms a rectangle of width 128 and height 8.
The
|
|
Graphic Context Mode The gc mode defines the operation to use when drawing on the bitmap. |
|
Get pointer to a row line representation. Given an Y coordinate in the range 0 .. GDM_HEIGHT, return the gdm_line that represent the rows containing the line.
Definition at line 228 of file display.h. References GDM_HEIGHT, and gdm_display::lines. |