4 * An OpenGL based 'interactive canvas' library.
6 * Copyright © 2011 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 directly included."
29 #ifndef __CLUTTER_DROP_ACTION_H__
30 #define __CLUTTER_DROP_ACTION_H__
32 #include <clutter/clutter-action.h>
36 #define CLUTTER_TYPE_DROP_ACTION (clutter_drop_action_get_type ())
37 #define CLUTTER_DROP_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_DROP_ACTION, ClutterDropAction))
38 #define CLUTTER_IS_DROP_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_DROP_ACTION))
39 #define CLUTTER_DROP_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_DROP_ACTION, ClutterDropActionClass))
40 #define CLUTTER_IS_DROP_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_DROP_ACTION))
41 #define CLUTTER_DROP_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_DROP_ACTION, ClutterDropActionClass))
43 typedef struct _ClutterDropAction ClutterDropAction;
44 typedef struct _ClutterDropActionPrivate ClutterDropActionPrivate;
45 typedef struct _ClutterDropActionClass ClutterDropActionClass;
50 * The <structname>ClutterDropAction</structname> structure contains only
51 * private data and should be accessed using the provided API.
55 struct _ClutterDropAction
58 ClutterAction parent_instance;
60 ClutterDropActionPrivate *priv;
64 * ClutterDropActionClass:
65 * @can_drop: class handler for the #ClutterDropAction::can-drop signal
66 * @over_in: class handler for the #ClutterDropAction::over-in signal
67 * @over_out: class handler for the #ClutterDropAction::over-out signal
68 * @drop: class handler for the #ClutterDropAction::drop signal
70 * The <structname>ClutterDropActionClass</structname> structure contains
75 struct _ClutterDropActionClass
78 ClutterActionClass parent_class;
81 gboolean (* can_drop) (ClutterDropAction *action,
86 void (* over_in) (ClutterDropAction *action,
88 void (* over_out) (ClutterDropAction *action,
91 void (* drop) (ClutterDropAction *action,
97 void (*_clutter_drop_action1) (void);
98 void (*_clutter_drop_action2) (void);
99 void (*_clutter_drop_action3) (void);
100 void (*_clutter_drop_action4) (void);
101 void (*_clutter_drop_action5) (void);
102 void (*_clutter_drop_action6) (void);
103 void (*_clutter_drop_action7) (void);
104 void (*_clutter_drop_action8) (void);
107 GType clutter_drop_action_get_type (void) G_GNUC_CONST;
109 ClutterAction * clutter_drop_action_new (void);
113 #endif /* __CLUTTER_DROP_ACTION_H__ */