aboutsummaryrefslogtreecommitdiff
path: root/d2tk
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2018-12-30 18:29:11 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2018-12-30 18:29:11 +0100
commitc37e1e28f4f62132777ba0140cc5832fe8bf9a7a (patch)
tree0a3b740bc9c98841211b8a427b0f45be5ee92549 /d2tk
parentcad5a3c852c6cda635179986a5bdaeae47fa4baa (diff)
downloadd2tk-c37e1e28f4f62132777ba0140cc5832fe8bf9a7a.tar.xz
all: prototype image sprite.
Diffstat (limited to 'd2tk')
-rw-r--r--d2tk/base.h14
-rw-r--r--d2tk/core.h4
2 files changed, 18 insertions, 0 deletions
diff --git a/d2tk/base.h b/d2tk/base.h
index ddd36cb..4f36c42 100644
--- a/d2tk/base.h
+++ b/d2tk/base.h
@@ -262,12 +262,26 @@ d2tk_base_is_active_hot(d2tk_base_t *base, d2tk_id_t id,
const d2tk_rect_t *rect, d2tk_flag_t flags);
D2TK_API d2tk_state_t
+d2tk_base_button_label_image(d2tk_base_t *base, d2tk_id_t id, ssize_t lbl_len,
+ const char *lbl, ssize_t path_len, const char *path, const d2tk_rect_t *rect);
+
+#define d2tk_base_button_label_image_is_changed(...) \
+ d2tk_state_is_changed(d2tk_base_button_label_image(__VA_ARGS__))
+
+D2TK_API d2tk_state_t
d2tk_base_button_label(d2tk_base_t *base, d2tk_id_t id, ssize_t lbl_len,
const char *lbl, const d2tk_rect_t *rect);
#define d2tk_base_button_label_is_changed(...) \
d2tk_state_is_changed(d2tk_base_button_label(__VA_ARGS__))
+D2TK_API d2tk_state_t
+d2tk_base_button_image(d2tk_base_t *base, d2tk_id_t id, ssize_t path_len,
+ const char *path, const d2tk_rect_t *rect);
+
+#define d2tk_base_button_image_is_changed(...) \
+ d2tk_state_is_changed(d2tk_base_button_image(__VA_ARGS__))
+
D2TK_API const d2tk_style_t *
d2tk_base_get_default_style();
diff --git a/d2tk/core.h b/d2tk/core.h
index b874a7a..f672dd3 100644
--- a/d2tk/core.h
+++ b/d2tk/core.h
@@ -134,6 +134,10 @@ d2tk_core_text(d2tk_core_t *core, d2tk_rect_t *rect, size_t sz,
const char *text, d2tk_align_t align);
D2TK_API void
+d2tk_core_image(d2tk_core_t *core, d2tk_rect_t *rect, size_t sz,
+ const char *path, d2tk_align_t align);
+
+D2TK_API void
d2tk_core_stroke_width(d2tk_core_t *core, d2tk_coord_t width);
D2TK_API void