aboutsummaryrefslogtreecommitdiff
path: root/subprojects/d2tk/d2tk/core.h
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/d2tk/d2tk/core.h')
-rw-r--r--subprojects/d2tk/d2tk/core.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/subprojects/d2tk/d2tk/core.h b/subprojects/d2tk/d2tk/core.h
index 586de73..f3bac84 100644
--- a/subprojects/d2tk/d2tk/core.h
+++ b/subprojects/d2tk/d2tk/core.h
@@ -33,6 +33,7 @@ typedef struct _d2tk_widget_t d2tk_widget_t;
typedef struct _d2tk_point_t d2tk_point_t;
typedef struct _d2tk_core_t d2tk_core_t;
typedef struct _d2tk_core_driver_t d2tk_core_driver_t;
+typedef void (*d2tk_core_custom_t)(void *ctx, uint32_t size, const void *data);
typedef enum _d2tk_align_t {
D2TK_ALIGN_NONE = 0,
@@ -177,6 +178,10 @@ d2tk_core_bitmap(d2tk_core_t *core, const d2tk_rect_t *rect, uint32_t w,
uint32_t h, uint32_t stride, const uint32_t *argb, d2tk_align_t align);
D2TK_API void
+d2tk_core_custom(d2tk_core_t *core, const d2tk_rect_t *rect, uint32_t size,
+ const void *data, d2tk_core_custom_t custom);
+
+D2TK_API void
d2tk_core_stroke_width(d2tk_core_t *core, d2tk_coord_t width);
D2TK_API void