aboutsummaryrefslogtreecommitdiff
path: root/subprojects/d2tk/d2tk
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2019-05-09 19:02:47 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2019-05-09 19:02:47 +0200
commit964a2f450910180a3e3f04dedbdd81e0bd7f318c (patch)
tree3ae8256770efa703eaed9287eb04e31186e77732 /subprojects/d2tk/d2tk
parent491afc6346236b32e5ae49687fd4b159cadf9600 (diff)
parent847b1b8f2a1e8669b2e1e6e49fa0a8f66c44e2aa (diff)
downloadtracker.lv2-964a2f450910180a3e3f04dedbdd81e0bd7f318c.tar.xz
Merge commit '847b1b8f2a1e8669b2e1e6e49fa0a8f66c44e2aa'
Diffstat (limited to 'subprojects/d2tk/d2tk')
-rw-r--r--subprojects/d2tk/d2tk/base.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/subprojects/d2tk/d2tk/base.h b/subprojects/d2tk/d2tk/base.h
index 26cea3b..2d4774f 100644
--- a/subprojects/d2tk/d2tk/base.h
+++ b/subprojects/d2tk/d2tk/base.h
@@ -268,6 +268,9 @@ d2tk_base_get_alt(d2tk_base_t *base);
D2TK_API bool
d2tk_base_get_mod(d2tk_base_t *base);
+D2TK_API const char *
+d2tk_state_dump(d2tk_state_t state);
+
D2TK_API bool
d2tk_state_is_down(d2tk_state_t state);
@@ -381,7 +384,7 @@ d2tk_base_toggle(d2tk_base_t *base, d2tk_id_t id, const d2tk_rect_t *rect,
D2TK_API d2tk_state_t
d2tk_base_meter(d2tk_base_t *base, d2tk_id_t id, const d2tk_rect_t *rect,
- int32_t *value);
+ const int32_t *value);
#define d2tk_base_meter_is_changed(...) \
d2tk_state_is_changed(d2tk_base_meter(__VA_ARGS__))
@@ -590,6 +593,18 @@ d2tk_base_set_up(d2tk_base_t *base, bool down);
D2TK_API void
d2tk_base_set_down(d2tk_base_t *base, bool down);
+D2TK_API bool
+d2tk_base_get_left(d2tk_base_t *base);
+
+D2TK_API bool
+d2tk_base_get_right(d2tk_base_t *base);
+
+D2TK_API bool
+d2tk_base_get_up(d2tk_base_t *base);
+
+D2TK_API bool
+d2tk_base_get_down(d2tk_base_t *base);
+
D2TK_API void
d2tk_base_set_dimensions(d2tk_base_t *base, d2tk_coord_t w, d2tk_coord_t h);