22 #include <winpr/assert.h>
23 #include <winpr/winpr.h>
44 RDTK_EXPORT
void rdtk_engine_free(rdtkEngine* engine);
46 WINPR_ATTR_MALLOC(rdtk_engine_free, 1)
47 RDTK_EXPORT rdtkEngine* rdtk_engine_new(
void);
51 RDTK_EXPORT
int rdtk_surface_fill(rdtkSurface* surface, uint16_t x, uint16_t y, uint16_t width,
52 uint16_t height, uint32_t color);
54 RDTK_EXPORT rdtkSurface* rdtk_surface_new(rdtkEngine* engine, uint8_t* data, uint16_t width,
55 uint16_t height, uint32_t scanline);
56 RDTK_EXPORT
void rdtk_surface_free(rdtkSurface* surface);
60 RDTK_EXPORT
int rdtk_font_draw_text(rdtkSurface* surface, uint16_t nXDst, uint16_t nYDst,
61 rdtkFont* font, const
char* text);
65 RDTK_EXPORT
int rdtk_button_draw(rdtkSurface* surface, uint16_t nXDst, uint16_t nYDst,
66 uint16_t nWidth, uint16_t nHeight, rdtkButton* button,
71 RDTK_EXPORT
int rdtk_label_draw(rdtkSurface* surface, uint16_t nXDst, uint16_t nYDst,
72 uint16_t nWidth, uint16_t nHeight, rdtkLabel* label,
73 const
char* text, uint16_t hAlign, uint16_t vAlign);
77 RDTK_EXPORT
int rdtk_text_field_draw(rdtkSurface* surface, uint16_t nXDst, uint16_t nYDst,
78 uint16_t nWidth, uint16_t nHeight,
79 rdtkTextField* textField, const
char* text);