diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2019-12-02 14:32:42 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2019-12-02 14:32:42 +0000 |
| commit | 81fe2250a70c892eeb195725117d566a042e5c93 (patch) | |
| tree | e2c70bd1b0f9e9d9063f6ff7aa11f6fa6b8ced80 /src/livecode/api/api.h | |
| parent | add basic livecode toolbar (diff) | |
| download | inkscape-81fe2250a70c892eeb195725117d566a042e5c93.tar.gz inkscape-81fe2250a70c892eeb195725117d566a042e5c93.zip | |
add draft janet interface for livecoding
Diffstat (limited to 'src/livecode/api/api.h')
| -rw-r--r-- | src/livecode/api/api.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/livecode/api/api.h b/src/livecode/api/api.h new file mode 100644 index 000000000..94694ca56 --- /dev/null +++ b/src/livecode/api/api.h @@ -0,0 +1,34 @@ +#ifndef JANET_2GEOM_POINT_INCLUDED +#define JANET_2GEOM_POINT_INCLUDED + +#include <janet.h> +#include <2geom/point.h> +#include "livecode/context.h" +#include "livecode/input.h" + +namespace Inkscape { +namespace Livecode { + +/* context.cpp */ +void janet_lib_context(JanetTable *env, Context &context); + +Context &ctx(); + +/* point.cpp */ +void janet_lib_geom_point(JanetTable *env); + +extern const JanetAbstractType geom_point_type; + +Janet janet_wrap_point(Geom::Point const &x); +Janet janet_wrap_point(Geom::IntPoint const &x); +Geom::Point janet_unwrap_point(Janet x); + +/* input.cpp */ +void janet_lib_input(JanetTable *env); + +Janet janet_wrap_inputstate(InputState const &state); + +} +} + +#endif // JANET_2GEOM_POINT_INCLUDED |
