The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Point data type

These changes was commited to the Birdfont repository Wed, 13 Jan 2016 23:20:38 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Wed, 13 Jan 2016 23:20:38 +0000]

Updated Files

libsvgbird/PointValue.vala
libsvgbird/point_value.h
diff --git libsvgbird/PointValue.vala(new)
--- /dev/null +++ b/libsvgbird/PointValue.vala @@ -1,1 +1,29 @@ + /* + 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 libsvgbird/point_value.h(new)
--- /dev/null +++ b/libsvgbird/point_value.h @@ -1,1 +1,22 @@ + /* + 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; +