19 #include <winpr/assert.h>
21 #include <rdtk/config.h>
23 #include "rdtk_font.h"
24 #include "rdtk_nine_patch.h"
25 #include "rdtk_button.h"
26 #include "rdtk_text_field.h"
28 #include "rdtk_engine.h"
30 rdtkEngine* rdtk_engine_new(
void)
32 rdtkEngine* engine = (rdtkEngine*)calloc(1,
sizeof(rdtkEngine));
37 if (rdtk_font_engine_init(engine) < 0)
39 if (rdtk_nine_patch_engine_init(engine) < 0)
41 if (rdtk_button_engine_init(engine) < 0)
43 if (rdtk_text_field_engine_init(engine) < 0)
49 rdtk_engine_free(engine);
53 void rdtk_engine_free(rdtkEngine* engine)
58 rdtk_font_engine_uninit(engine);
59 rdtk_nine_patch_engine_uninit(engine);
60 rdtk_button_engine_uninit(engine);
61 rdtk_text_field_engine_uninit(engine);