41 RDTK_EXPORT rdtkEngine* rdtk_engine_new(
void);
42 RDTK_EXPORT
void rdtk_engine_free(rdtkEngine* engine);
46 RDTK_EXPORT
int rdtk_surface_fill(rdtkSurface* surface, uint16_t x, uint16_t y, uint16_t width,
47 uint16_t height, uint32_t color);
49 RDTK_EXPORT rdtkSurface* rdtk_surface_new(rdtkEngine* engine, uint8_t* data, uint16_t width,
50 uint16_t height, uint32_t scanline);
51 RDTK_EXPORT
void rdtk_surface_free(rdtkSurface* surface);
55 RDTK_EXPORT
int rdtk_font_draw_text(rdtkSurface* surface, uint16_t nXDst, uint16_t nYDst,
56 rdtkFont* font,
const char* text);
60 RDTK_EXPORT
int rdtk_button_draw(rdtkSurface* surface, uint16_t nXDst, uint16_t nYDst,
61 uint16_t nWidth, uint16_t nHeight, rdtkButton* button,
66 RDTK_EXPORT
int rdtk_label_draw(rdtkSurface* surface, uint16_t nXDst, uint16_t nYDst,
67 uint16_t nWidth, uint16_t nHeight, rdtkLabel* label,
68 const char* text, uint16_t hAlign, uint16_t vAlign);
72 RDTK_EXPORT
int rdtk_text_field_draw(rdtkSurface* surface, uint16_t nXDst, uint16_t nYDst,
73 uint16_t nWidth, uint16_t nHeight,
74 rdtkTextField* textField,
const char* text);