summaryrefslogtreecommitdiffstats
path: root/src/livecode/api/api.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/livecode/api/api.h')
-rw-r--r--src/livecode/api/api.h34
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