2008-12-05 08:13:37 -05:00
|
|
|
/*
|
|
|
|
* Clutter.
|
|
|
|
*
|
|
|
|
* An OpenGL based 'interactive canvas' library.
|
|
|
|
*
|
|
|
|
* Authored By Tomas Frydrych <tf@openedhand.com>
|
|
|
|
*
|
|
|
|
* Copyright (C) 2006, 2007 OpenedHand
|
2013-04-13 12:50:33 -04:00
|
|
|
* Copyright (C) 2013 Erick Pérez Castellanos <erick.red@gmail.com>
|
2008-12-05 08:13:37 -05:00
|
|
|
*
|
|
|
|
* 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 2 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.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __CLUTTER_BEZIER_H__
|
|
|
|
#define __CLUTTER_BEZIER_H__
|
|
|
|
|
|
|
|
#include <glib.h>
|
|
|
|
#include "clutter-types.h"
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
typedef struct _ClutterBezier ClutterBezier;
|
|
|
|
|
2013-04-13 12:50:33 -04:00
|
|
|
ClutterBezier *_clutter_bezier_new ();
|
2008-12-05 08:13:37 -05:00
|
|
|
|
2013-04-13 12:50:33 -04:00
|
|
|
void _clutter_bezier_free (ClutterBezier *b);
|
2008-12-05 08:13:37 -05:00
|
|
|
|
|
|
|
ClutterBezier *_clutter_bezier_clone_and_move (const ClutterBezier *b,
|
2013-04-13 12:50:33 -04:00
|
|
|
gfloat x,
|
|
|
|
gfloat y);
|
2008-12-05 08:13:37 -05:00
|
|
|
|
2013-04-13 12:50:33 -04:00
|
|
|
void _clutter_bezier_advance (const ClutterBezier *b,
|
|
|
|
gfloat L,
|
2013-04-13 13:01:10 -04:00
|
|
|
ClutterPoint *knot);
|
2008-12-05 08:13:37 -05:00
|
|
|
|
2013-04-13 12:50:33 -04:00
|
|
|
void _clutter_bezier_init (ClutterBezier *b,
|
|
|
|
gfloat x_0,
|
|
|
|
gfloat y_0,
|
|
|
|
gfloat x_1,
|
|
|
|
gfloat y_1,
|
|
|
|
gfloat x_2,
|
|
|
|
gfloat y_2,
|
|
|
|
gfloat x_3,
|
|
|
|
gfloat y_3);
|
2008-12-05 08:13:37 -05:00
|
|
|
|
2013-04-13 12:50:33 -04:00
|
|
|
void _clutter_bezier_adjust (ClutterBezier *b,
|
2013-04-13 13:01:10 -04:00
|
|
|
ClutterPoint *knot,
|
2013-04-13 12:50:33 -04:00
|
|
|
guint indx);
|
2008-12-05 08:13:37 -05:00
|
|
|
|
2013-04-13 12:50:33 -04:00
|
|
|
gfloat _clutter_bezier_get_length (const ClutterBezier *b);
|
2008-12-05 08:13:37 -05:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __CLUTTER_BEZIER_H__ */
|