2011-03-09 10:06:44 +01:00
|
|
|
/*
|
|
|
|
* Clutter.
|
|
|
|
*
|
|
|
|
* An OpenGL based 'interactive canvas' library.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2010 Intel Corporation.
|
|
|
|
* Copyright (C) 2011 Robert Bosch Car Multimedia GmbH.
|
|
|
|
*
|
|
|
|
* 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/>.
|
|
|
|
*
|
|
|
|
* Author:
|
|
|
|
* Tomeu Vizoso <tomeu.vizoso@collabora.co.uk>
|
|
|
|
*
|
|
|
|
* Based on ClutterDragAction, written by:
|
|
|
|
* Emmanuele Bassi <ebassi@linux.intel.com>
|
|
|
|
*/
|
|
|
|
|
2023-07-21 15:37:20 +02:00
|
|
|
#pragma once
|
|
|
|
|
2011-03-09 10:06:44 +01:00
|
|
|
#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
|
|
|
|
#error "Only <clutter/clutter.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2023-08-07 15:38:12 +02:00
|
|
|
#include "clutter/clutter-gesture-action.h"
|
2011-03-09 10:06:44 +01:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define CLUTTER_TYPE_SWIPE_ACTION (clutter_swipe_action_get_type ())
|
|
|
|
|
2023-11-10 16:53:52 +01:00
|
|
|
CLUTTER_EXPORT
|
|
|
|
G_DECLARE_DERIVABLE_TYPE (ClutterSwipeAction,
|
|
|
|
clutter_swipe_action,
|
|
|
|
CLUTTER,
|
|
|
|
SWIPE_ACTION,
|
|
|
|
ClutterGestureAction)
|
2011-03-09 10:06:44 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* ClutterSwipeActionClass:
|
2012-11-26 13:09:23 -05:00
|
|
|
* @swipe: class handler for the #ClutterSwipeAction::swipe signal
|
2011-03-09 10:06:44 +01:00
|
|
|
*
|
2014-03-18 14:14:22 +00:00
|
|
|
* The #ClutterSwipeActionClass structure contains
|
2011-06-10 14:33:20 +01:00
|
|
|
* only private data.
|
2011-03-09 10:06:44 +01:00
|
|
|
*/
|
|
|
|
struct _ClutterSwipeActionClass
|
|
|
|
{
|
|
|
|
/*< private >*/
|
|
|
|
ClutterGestureActionClass parent_class;
|
|
|
|
|
|
|
|
/*< public >*/
|
2023-11-09 16:28:56 +01:00
|
|
|
void (* swipe) (ClutterSwipeAction *action,
|
2011-06-10 14:33:20 +01:00
|
|
|
ClutterActor *actor,
|
|
|
|
ClutterSwipeDirection direction);
|
2011-03-09 10:06:44 +01:00
|
|
|
};
|
|
|
|
|
2018-05-22 23:01:54 +02:00
|
|
|
CLUTTER_EXPORT
|
2011-06-10 14:33:20 +01:00
|
|
|
ClutterAction * clutter_swipe_action_new (void);
|
2011-03-09 10:06:44 +01:00
|
|
|
|
|
|
|
G_END_DECLS
|