4 * An OpenGL based 'interactive canvas' library.
6 * Authored By Tomas Frydrych <tf@openedhand.com>
8 * Copyright (C) 2006, 2007 OpenedHand
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version.
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
24 #ifndef __CLUTTER_BEZIER_H__
25 #define __CLUTTER_BEZIER_H__
28 #include "clutter-types.h"
32 /* This is used in _clutter_bezier_advance to represent the full
33 length of the bezier curve. Anything less than that represents a
34 fraction of the length */
35 #define CLUTTER_BEZIER_MAX_LENGTH (1 << 18)
37 typedef struct _ClutterBezier ClutterBezier;
39 ClutterBezier *_clutter_bezier_new ();
41 void _clutter_bezier_free (ClutterBezier * b);
43 ClutterBezier *_clutter_bezier_clone_and_move (const ClutterBezier *b,
47 void _clutter_bezier_advance (const ClutterBezier *b,
51 void _clutter_bezier_init (ClutterBezier *b,
57 void _clutter_bezier_adjust (ClutterBezier *b,
61 guint _clutter_bezier_get_length (const ClutterBezier *b);
65 #endif /* __CLUTTER_BEZIER_H__ */