Release Clutter 1.11.4 (snapshot)
[profile/ivi/clutter.git] / clutter / clutter-align-constraint.h
1 /*
2  * Clutter.
3  *
4  * An OpenGL based 'interactive canvas' library.
5  *
6  * Copyright (C) 2010  Intel Corporation.
7  *
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.
12  *
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.
17  *
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/>.
20  *
21  * Author:
22  *   Emmanuele Bassi <ebassi@linux.intel.com>
23  */
24
25 #if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
26 #error "Only <clutter/clutter.h> can be included directly."
27 #endif
28
29 #ifndef __CLUTTER_ALIGN_CONSTRAINT_H__
30 #define __CLUTTER_ALIGN_CONSTRAINT_H__
31
32 #include <clutter/clutter-constraint.h>
33
34 G_BEGIN_DECLS
35
36 #define CLUTTER_TYPE_ALIGN_CONSTRAINT           (clutter_align_constraint_get_type ())
37 #define CLUTTER_ALIGN_CONSTRAINT(obj)           (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_ALIGN_CONSTRAINT, ClutterAlignConstraint))
38 #define CLUTTER_IS_ALIGN_CONSTRAINT(obj)        (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_ALIGN_CONSTRAINT))
39
40 /**
41  * ClutterAlignConstraint:
42  *
43  * <structname>ClutterAlignConstraint</structname> is an opaque structure
44  * whose members cannot be directly accesses
45  *
46  * Since: 1.4
47  */
48 typedef struct _ClutterAlignConstraint          ClutterAlignConstraint;
49 typedef struct _ClutterAlignConstraintClass     ClutterAlignConstraintClass;
50
51 GType clutter_align_constraint_get_type (void) G_GNUC_CONST;
52
53 ClutterConstraint *clutter_align_constraint_new            (ClutterActor           *source,
54                                                             ClutterAlignAxis        axis,
55                                                             gfloat                  factor);
56
57 void               clutter_align_constraint_set_source     (ClutterAlignConstraint *align,
58                                                             ClutterActor           *source);
59 ClutterActor *     clutter_align_constraint_get_source     (ClutterAlignConstraint *align);
60 void               clutter_align_constraint_set_align_axis (ClutterAlignConstraint *align,
61                                                             ClutterAlignAxis        axis);
62 ClutterAlignAxis   clutter_align_constraint_get_align_axis (ClutterAlignConstraint *align);
63 void               clutter_align_constraint_set_factor     (ClutterAlignConstraint *align,
64                                                             gfloat                  factor);
65 gfloat             clutter_align_constraint_get_factor     (ClutterAlignConstraint *align);
66
67 G_END_DECLS
68
69 #endif /* __CLUTTER_ALIGN_CONSTRAINT_H__ */