aboutsummaryrefslogtreecommitdiff
path: root/subprojects/d2tk/d2tk
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2019-07-23 20:56:32 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2019-07-23 20:56:32 +0200
commite88541398483552b60e699d0de3552c48b12523a (patch)
treebb55abd3ae79281eaa22b26f520d155c3a8609b1 /subprojects/d2tk/d2tk
parentf0bf08fa367ccf8ba995ee63846ac5b0148b6dd1 (diff)
parentdbf470541409019c08635be0757519d1dcdc9e82 (diff)
downloadtracker.lv2-e88541398483552b60e699d0de3552c48b12523a.tar.xz
Merge commit 'dbf470541409019c08635be0757519d1dcdc9e82'
Diffstat (limited to 'subprojects/d2tk/d2tk')
-rw-r--r--subprojects/d2tk/d2tk/base.h4
-rw-r--r--subprojects/d2tk/d2tk/core.h5
2 files changed, 9 insertions, 0 deletions
diff --git a/subprojects/d2tk/d2tk/base.h b/subprojects/d2tk/d2tk/base.h
index 547749b..5a213f1 100644
--- a/subprojects/d2tk/d2tk/base.h
+++ b/subprojects/d2tk/d2tk/base.h
@@ -390,6 +390,10 @@ D2TK_API void
d2tk_base_bitmap(d2tk_base_t *base, uint32_t w, uint32_t h, uint32_t stride,
const uint32_t *argb, const d2tk_rect_t *rect, d2tk_align_t align);
+D2TK_API void
+d2tk_base_custom(d2tk_base_t *base, uint32_t size, const void *data,
+ const d2tk_rect_t *rect, d2tk_core_custom_t custom);
+
D2TK_API d2tk_state_t
d2tk_base_meter(d2tk_base_t *base, d2tk_id_t id, const d2tk_rect_t *rect,
const int32_t *value);
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