![]() |
GFXprim
2D bitmap graphics library with emphasis on speed and correctness
|
A cursor rendering implementation. More...
Go to the source code of this file.
Data Structures | |
| struct | gp_cursor |
| A cursor pixmap. More... | |
Typedefs | |
| typedef struct gp_cursor | gp_cursor |
| A cursor pixmap. | |
Functions | |
| void | gp_cursor_render (gp_cursor *self, gp_pixmap *dst, gp_pixel fg, gp_pixel bg, uint32_t x_off, uint32_t y_off) |
| Renders a cursor into a pixmap. | |
Variables | |
| gp_cursor * | gp_cursors_32 [] |
A cursor rendering implementation.
Definition in file gp_cursor.h.
| void gp_cursor_render | ( | gp_cursor * | self, |
| gp_pixmap * | dst, | ||
| gp_pixel | fg, | ||
| gp_pixel | bg, | ||
| uint32_t | x_off, | ||
| uint32_t | y_off ) |
Renders a cursor into a pixmap.
| self | A cursor. |
| dst | A pixmap to draw the cursor into. |
| fg | A foreground color. |
| bg | A background color. |
| x_off | An x offset. |
| y_off | An y offset. |
|
extern |
Default 32x32 pixels cursors.
0 - Arrow 1 - Text Edit (I-beam) 2 - Crosshair 3 - Hand