aboutsummaryrefslogtreecommitdiff
path: root/nk_pugl
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2017-03-14 21:22:41 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2017-03-14 21:22:41 +0100
commit804b3cc0bbb442c9174c91166cbe7e0d6ad00fff (patch)
treeebf7e462fbe35648baa9d7228a492cf3ae54ab9a /nk_pugl
parent68c262318d5916baa9e70676961e85faed0d4c63 (diff)
parent95069b8ad0d6a84c765d8d30e2eec445ef475a43 (diff)
downloadsynthpod-804b3cc0bbb442c9174c91166cbe7e0d6ad00fff.tar.xz
Merge commit '95069b8ad0d6a84c765d8d30e2eec445ef475a43' into nk
Diffstat (limited to 'nk_pugl')
-rw-r--r--nk_pugl/nk_pugl.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/nk_pugl/nk_pugl.h b/nk_pugl/nk_pugl.h
index 9d78c447..2443993c 100644
--- a/nk_pugl/nk_pugl.h
+++ b/nk_pugl/nk_pugl.h
@@ -55,7 +55,7 @@ extern C {
#include "nuklear/example/stb_image.h"
#ifndef NK_PUGL_API
-# define NK_PUGL_API
+# define NK_PUGL_API static
#endif
typedef struct _nk_pugl_config_t nk_pugl_config_t;
@@ -150,13 +150,13 @@ nk_pugl_icon_load(nk_pugl_window_t *win, const char *filename);
NK_PUGL_API void
nk_pugl_icon_unload(nk_pugl_window_t *win, struct nk_image img);
-static bool
+NK_PUGL_API bool
nk_pugl_is_shortcut_pressed(struct nk_input *in, char letter, bool clear);
-static void
+NK_PUGL_API void
nk_pugl_copy_to_clipboard(nk_pugl_window_t *win, const char *selection, size_t len);
-static const char *
+NK_PUGL_API const char *
nk_pugl_paste_from_clipboard(nk_pugl_window_t *win, size_t *len);
#ifdef __cplusplus
@@ -1138,7 +1138,7 @@ nk_pugl_icon_unload(nk_pugl_window_t *win, struct nk_image img)
}
}
-static bool
+NK_PUGL_API bool
nk_pugl_is_shortcut_pressed(struct nk_input *in, char letter, bool clear)
{
const bool control = nk_input_is_key_down(in, NK_KEY_CTRL);
@@ -1160,13 +1160,13 @@ nk_pugl_is_shortcut_pressed(struct nk_input *in, char letter, bool clear)
return false;
}
-static void
+NK_PUGL_API void
nk_pugl_copy_to_clipboard(nk_pugl_window_t *win, const char *selection, size_t len)
{
puglCopyToClipboard(win->view, selection, len);
}
-static const char *
+NK_PUGL_API const char *
nk_pugl_paste_from_clipboard(nk_pugl_window_t *win, size_t *len)
{
return puglPasteFromClipboard(win->view, len);