4 * An OpenGL based 'interactive canvas' library.
6 * Copyright (C) 2010 Intel Corporation.
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
22 * Emmanuele Bassi <ebassi@linux.intel.com>
25 #if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
26 #error "Only <clutter/clutter.h> can be included directly."
29 #ifndef __CLUTTER_SNAP_CONSTRAINT_H__
30 #define __CLUTTER_SNAP_CONSTRAINT_H__
32 #include <clutter/clutter-constraint.h>
36 #define CLUTTER_TYPE_SNAP_CONSTRAINT (clutter_snap_constraint_get_type ())
37 #define CLUTTER_SNAP_CONSTRAINT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_SNAP_CONSTRAINT, ClutterSnapConstraint))
38 #define CLUTTER_IS_SNAP_CONSTRAINT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_SNAP_CONSTRAINT))
41 * ClutterSnapConstraint:
43 * <structname>ClutterSnapConstraint</structname> is an opaque structure
44 * whose members cannot be directly accesses
48 typedef struct _ClutterSnapConstraint ClutterSnapConstraint;
49 typedef struct _ClutterSnapConstraintClass ClutterSnapConstraintClass;
51 GType clutter_snap_constraint_get_type (void) G_GNUC_CONST;
53 ClutterConstraint * clutter_snap_constraint_new (ClutterActor *source,
54 ClutterSnapEdge from_edge,
55 ClutterSnapEdge to_edge,
58 void clutter_snap_constraint_set_source (ClutterSnapConstraint *constraint,
59 ClutterActor *source);
60 ClutterActor * clutter_snap_constraint_get_source (ClutterSnapConstraint *constraint);
61 void clutter_snap_constraint_set_edges (ClutterSnapConstraint *constraint,
62 ClutterSnapEdge from_edge,
63 ClutterSnapEdge to_edge);
64 void clutter_snap_constraint_get_edges (ClutterSnapConstraint *constraint,
65 ClutterSnapEdge *from_edge,
66 ClutterSnapEdge *to_edge);
67 void clutter_snap_constraint_set_offset (ClutterSnapConstraint *constraint,
69 gfloat clutter_snap_constraint_get_offset (ClutterSnapConstraint *constraint);
73 #endif /* __CLUTTER_SNAP_CONSTRAINT_H__ */