Clone in a terminal:
Commit 2868863
Johan Mattsson - 2016-01-13T23:21:07+00:00
28688639b00f763e8ef518eeeafc1a56c1089619johan.mattsson.m@gmail.com

Point data type

Changed files (2)

Diff

diff --git a/libsvgbird/PointValue.vala b/libsvgbird/PointValue.valanew file mode 100644index 0000000..f91bc01--- /dev/null+++ b/libsvgbird/PointValue.vala@@ -0,0 +1,28 @@+/*+	Copyright (C) 2016 Johan Mattsson++	This library is free software; you can redistribute it and/or modify +	it under the terms of the GNU Lesser General Public License as +	published by the Free Software Foundation; either version 3 of the +	License, or (at your option) any later version.++	This library is distributed in the hope that it will be useful, but +	WITHOUT ANY WARRANTY; without even the implied warranty of +	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +	Lesser General Public License for more details.+*/++namespace SvgBird {++[CCode (cheader_filename="point_value.h")]+public extern struct PointValue {+    uchar type;+    double value;+}++public static const uchar NONE = 0;+public static const uchar ARC = 1;+public static const uchar CUBIC = 2;+public static const uchar LINE = 3;++}diff --git a/libsvgbird/point_value.h b/libsvgbird/point_value.hnew file mode 100644index 0000000..19035a3--- /dev/null+++ b/libsvgbird/point_value.h@@ -0,0 +1,21 @@+/*+	Copyright (C) 2016 Johan Mattsson++	This library is free software; you can redistribute it and/or modify +	it under the terms of the GNU Lesser General Public License as +	published by the Free Software Foundation; either version 3 of the +	License, or (at your option) any later version.++	This library is distributed in the hope that it will be useful, but +	WITHOUT ANY WARRANTY; without even the implied warranty of +	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +	Lesser General Public License for more details.+*/++#include<glib.h>++typedef union {+	gdouble value;+	guchar type;+} SvgBirdPointValue;+

Contact

Email: johan.mattsson.m@gmail.com
Mastodon: typo.social/@birdfont
GitHub: johanmattssonm
LinkedIn: johan-mattsson-2ab324112