51 #ifndef _GFX_CANVAS_API_H 52 #define _GFX_CANVAS_API_H 54 #include "gfx/driver/gfx_driver.h" 57 #ifdef __cplusplus // Provide C++ Compatibility 62 #define GFXC_COLOR_FORMAT gfxColorMode 63 #define GFXC_RESULT gfxResult 115 GFXC_FX_DONE = GFXC_FX_IDLE,
120 typedef void(*gfxcCallback) (
unsigned int canvasID,
122 GFXC_FX_STATUS status,
141 int gfxcCreate(
void);
157 GFXC_RESULT gfxcDestroy(
unsigned int canvasID);
181 GFXC_RESULT gfxcSetPixelBuffer(
unsigned int canvasID,
184 const GFXC_COLOR_FORMAT format,
207 GFXC_RESULT gfxcCopyBuffer(
unsigned int srcID,
230 GFXC_RESULT gfxcSetBaseCanvasID(
unsigned int base);
248 GFXC_RESULT gfxcSetLayer(
unsigned int canvasID,
unsigned int layerID);
263 int gfxcGetlayer(
unsigned int canvasID);
279 GFXC_RESULT gfxcClearLayer(
unsigned int canvasID);
297 GFXC_RESULT gfxcSetWindowAlpha(
unsigned int canvasID, uint8_t alpha);
316 GFXC_RESULT gfxcSetWindowPosition(
unsigned int canvasID,
int xpos,
int ypos);
335 GFXC_RESULT gfxcGetWindowPosition(
unsigned int canvasID,
int* xpos,
int* ypos);
357 GFXC_RESULT gfxcSetWindowSize(
unsigned int canvasID,
unsigned int width,
unsigned int height);
379 GFXC_RESULT gfxcGetWindowSize(
unsigned int canvasID,
unsigned int* width,
unsigned int* height);
397 GFXC_RESULT gfxcSetEffectsCallback(
unsigned int canvasID, gfxcCallback cb,
void * parm);
414 GFXC_RESULT gfxcShowCanvas(
unsigned int canvasID);
430 GFXC_RESULT gfxcHideCanvas(
unsigned int canvasID);
446 GFXC_RESULT gfxcCanvasUpdate(
unsigned int canvasID);
469 GFXC_RESULT gfxcStartEffectFade(
unsigned int canvasID,
503 GFXC_RESULT gfxcStartEffectMove(
unsigned int canvasID,
504 GFXC_FX_MOVE_TYPE type,
526 GFXC_RESULT gfxcStopEffect(
unsigned int canvasID, GFXC_FX_TYPE effect);
543 GFXC_STATUS gfxcGetStatus(
void);
558 void GFX_CANVAS_Initialize(
void);
573 void GFX_CANVAS_Task(
void);
This struct represents a rectangle.
Definition: gfx_driver.h.ftl:229
This struct represents the display driver interface.
Definition: gfx_driver.h.ftl:1206