GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_cursor Struct Reference

A cursor pixmap. More...

#include <gp_cursor.h>

Data Fields

int8_t x_off
 Offset to start drawing the cursor in pixels.
 
uint8_t w
 Cursor pixmap size in pixels.
 
uint8_t * pixmap
 A cursor pixmap.
 

Detailed Description

A cursor pixmap.

Definition at line 18 of file gp_cursor.h.

Field Documentation

◆ pixmap

uint8_t* gp_cursor::pixmap

A cursor pixmap.

Four pixels per byte with value:

The rows have to be byte aligned.

0 - do not draw anything 1 - foreground (all pixel bits set to 1) 2 - background (all pixel bits set to 0)

Definition at line 38 of file gp_cursor.h.

◆ x_off

int8_t gp_cursor::x_off

Offset to start drawing the cursor in pixels.

Defines an offset of the cursor pixmap to the cursor position.

Definition at line 24 of file gp_cursor.h.


The documentation for this struct was generated from the following file: