From 81fe2250a70c892eeb195725117d566a042e5c93 Mon Sep 17 00:00:00 2001 From: s-ol Date: Mon, 2 Dec 2019 15:32:42 +0100 Subject: add draft janet interface for livecoding --- src/livecode/api/api.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/livecode/api/api.h (limited to 'src/livecode/api/api.h') 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 +#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 -- cgit v1.2.3