Blame clutter/clutter-pan-action.h

Packit Service bf98b9
/*
Packit Service bf98b9
 * Clutter.
Packit Service bf98b9
 *
Packit Service bf98b9
 * An OpenGL based 'interactive canvas' library.
Packit Service bf98b9
 *
Packit Service bf98b9
 * Copyright (C) 2010  Intel Corporation.
Packit Service bf98b9
 * Copyright (C) 2011  Robert Bosch Car Multimedia GmbH.
Packit Service bf98b9
 * Copyright (C) 2012  Collabora Ltd.
Packit Service bf98b9
 *
Packit Service bf98b9
 * This library is free software; you can redistribute it and/or
Packit Service bf98b9
 * modify it under the terms of the GNU Lesser General Public
Packit Service bf98b9
 * License as published by the Free Software Foundation; either
Packit Service bf98b9
 * version 2 of the License, or (at your option) any later version.
Packit Service bf98b9
 *
Packit Service bf98b9
 * This library is distributed in the hope that it will be useful,
Packit Service bf98b9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service bf98b9
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service bf98b9
 * Lesser General Public License for more details.
Packit Service bf98b9
 *
Packit Service bf98b9
 * You should have received a copy of the GNU Lesser General Public
Packit Service bf98b9
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
Packit Service bf98b9
 *
Packit Service bf98b9
 * Author:
Packit Service bf98b9
 *   Emanuele Aina <emanuele.aina@collabora.com>
Packit Service bf98b9
 *
Packit Service bf98b9
 * Based on ClutterDragAction, ClutterSwipeAction, and MxKineticScrollView,
Packit Service bf98b9
 * written by:
Packit Service bf98b9
 *   Emmanuele Bassi <ebassi@linux.intel.com>
Packit Service bf98b9
 *   Tomeu Vizoso <tomeu.vizoso@collabora.co.uk>
Packit Service bf98b9
 *   Chris Lord <chris@linux.intel.com>
Packit Service bf98b9
 */
Packit Service bf98b9
Packit Service bf98b9
#ifndef __CLUTTER_PAN_ACTION_H__
Packit Service bf98b9
#define __CLUTTER_PAN_ACTION_H__
Packit Service bf98b9
Packit Service bf98b9
#if !defined(__CLUTTER_H_INSIDE__) && !defined(CLUTTER_COMPILATION)
Packit Service bf98b9
#error "Only <clutter/clutter.h> can be included directly."
Packit Service bf98b9
#endif
Packit Service bf98b9
Packit Service bf98b9
#include <clutter/clutter-gesture-action.h>
Packit Service bf98b9
Packit Service bf98b9
G_BEGIN_DECLS
Packit Service bf98b9
Packit Service bf98b9
#define CLUTTER_TYPE_PAN_ACTION               (clutter_pan_action_get_type ())
Packit Service bf98b9
#define CLUTTER_PAN_ACTION(obj)               (G_TYPE_CHECK_INSTANCE_CAST ((obj), CLUTTER_TYPE_PAN_ACTION, ClutterPanAction))
Packit Service bf98b9
#define CLUTTER_IS_PAN_ACTION(obj)            (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CLUTTER_TYPE_PAN_ACTION))
Packit Service bf98b9
#define CLUTTER_PAN_ACTION_CLASS(klass)       (G_TYPE_CHECK_CLASS_CAST ((klass), CLUTTER_TYPE_PAN_ACTION, ClutterPanActionClass))
Packit Service bf98b9
#define CLUTTER_IS_PAN_ACTION_CLASS(klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), CLUTTER_TYPE_PAN_ACTION))
Packit Service bf98b9
#define CLUTTER_PAN_ACTION_GET_CLASS(obj)     (G_TYPE_INSTANCE_GET_CLASS ((obj), CLUTTER_TYPE_PAN_ACTION, ClutterPanActionClass))
Packit Service bf98b9
Packit Service bf98b9
typedef struct _ClutterPanAction              ClutterPanAction;
Packit Service bf98b9
typedef struct _ClutterPanActionPrivate       ClutterPanActionPrivate;
Packit Service bf98b9
typedef struct _ClutterPanActionClass         ClutterPanActionClass;
Packit Service bf98b9
Packit Service bf98b9
/**
Packit Service bf98b9
 * ClutterPanAction:
Packit Service bf98b9
 *
Packit Service bf98b9
 * The #ClutterPanAction structure contains
Packit Service bf98b9
 * only private data and should be accessed using the provided API
Packit Service bf98b9
 *
Packit Service bf98b9
 * Since: 1.12
Packit Service bf98b9
 */
Packit Service bf98b9
struct _ClutterPanAction
Packit Service bf98b9
{
Packit Service bf98b9
  /*< private >*/
Packit Service bf98b9
  ClutterGestureAction parent_instance;
Packit Service bf98b9
Packit Service bf98b9
  ClutterPanActionPrivate *priv;
Packit Service bf98b9
};
Packit Service bf98b9
Packit Service bf98b9
/**
Packit Service bf98b9
 * ClutterPanActionClass:
Packit Service bf98b9
 * @pan: class handler for the #ClutterPanAction::pan signal
Packit Service bf98b9
 * @pan_stopped: class handler for the #ClutterPanAction::pan-stopped signal
Packit Service bf98b9
 *
Packit Service bf98b9
 * The #ClutterPanActionClass structure contains
Packit Service bf98b9
 * only private data.
Packit Service bf98b9
 *
Packit Service bf98b9
 * Since: 1.12
Packit Service bf98b9
 */
Packit Service bf98b9
struct _ClutterPanActionClass
Packit Service bf98b9
{
Packit Service bf98b9
  /*< private >*/
Packit Service bf98b9
  ClutterGestureActionClass parent_class;
Packit Service bf98b9
Packit Service bf98b9
  /*< public >*/
Packit Service bf98b9
  gboolean (* pan)               (ClutterPanAction    *action,
Packit Service bf98b9
                                  ClutterActor        *actor,
Packit Service bf98b9
                                  gboolean             is_interpolated);
Packit Service bf98b9
  void     (* pan_stopped)       (ClutterPanAction    *action,
Packit Service bf98b9
                                  ClutterActor        *actor);
Packit Service bf98b9
Packit Service bf98b9
  /*< private >*/
Packit Service bf98b9
  void (* _clutter_pan_action1) (void);
Packit Service bf98b9
  void (* _clutter_pan_action2) (void);
Packit Service bf98b9
  void (* _clutter_pan_action3) (void);
Packit Service bf98b9
  void (* _clutter_pan_action4) (void);
Packit Service bf98b9
  void (* _clutter_pan_action5) (void);
Packit Service bf98b9
  void (* _clutter_pan_action6) (void);
Packit Service bf98b9
};
Packit Service bf98b9
Packit Service bf98b9
CLUTTER_AVAILABLE_IN_1_12
Packit Service bf98b9
GType clutter_pan_action_get_type (void) G_GNUC_CONST;
Packit Service bf98b9
Packit Service bf98b9
CLUTTER_AVAILABLE_IN_1_12
Packit Service bf98b9
ClutterAction * clutter_pan_action_new                      (void);
Packit Service bf98b9
CLUTTER_AVAILABLE_IN_1_12
Packit Service bf98b9
void            clutter_pan_action_set_pan_axis             (ClutterPanAction *self,
Packit Service bf98b9
                                                             ClutterPanAxis    axis);
Packit Service bf98b9
CLUTTER_AVAILABLE_IN_1_12
Packit Service bf98b9
ClutterPanAxis clutter_pan_action_get_pan_axis              (ClutterPanAction *self);
Packit Service bf98b9
CLUTTER_AVAILABLE_IN_1_12
Packit Service bf98b9
void            clutter_pan_action_set_interpolate          (ClutterPanAction *self,
Packit Service bf98b9
                                                             gboolean          should_interpolate);
Packit Service bf98b9
CLUTTER_AVAILABLE_IN_1_12
Packit Service bf98b9
gboolean        clutter_pan_action_get_interpolate          (ClutterPanAction *self);
Packit Service bf98b9
CLUTTER_AVAILABLE_IN_1_12
Packit Service bf98b9
void            clutter_pan_action_set_deceleration         (ClutterPanAction *self,
Packit Service bf98b9
                                                             gdouble           rate);
Packit Service bf98b9
CLUTTER_AVAILABLE_IN_1_12
Packit Service bf98b9
gdouble         clutter_pan_action_get_deceleration         (ClutterPanAction *self);
Packit Service bf98b9
CLUTTER_AVAILABLE_IN_1_12
Packit Service bf98b9
void            clutter_pan_action_set_acceleration_factor  (ClutterPanAction *self,
Packit Service bf98b9
                                                             gdouble           factor);
Packit Service bf98b9
CLUTTER_AVAILABLE_IN_1_12
Packit Service bf98b9
gdouble         clutter_pan_action_get_acceleration_factor  (ClutterPanAction *self);
Packit Service bf98b9
CLUTTER_AVAILABLE_IN_1_12
Packit Service bf98b9
void            clutter_pan_action_get_interpolated_coords  (ClutterPanAction *self,
Packit Service bf98b9
                                                             gfloat           *interpolated_x,
Packit Service bf98b9
                                                             gfloat           *interpolated_y);
Packit Service bf98b9
CLUTTER_AVAILABLE_IN_1_12
Packit Service bf98b9
gfloat          clutter_pan_action_get_interpolated_delta   (ClutterPanAction *self,
Packit Service bf98b9
                                                             gfloat           *delta_x,
Packit Service bf98b9
                                                             gfloat           *delta_y);
Packit Service bf98b9
CLUTTER_AVAILABLE_IN_1_14
Packit Service bf98b9
gfloat          clutter_pan_action_get_motion_delta         (ClutterPanAction *self,
Packit Service bf98b9
                                                             guint             point,
Packit Service bf98b9
                                                             gfloat           *delta_x,
Packit Service bf98b9
                                                             gfloat           *delta_y);
Packit Service bf98b9
CLUTTER_AVAILABLE_IN_1_14
Packit Service bf98b9
void            clutter_pan_action_get_motion_coords        (ClutterPanAction *self,
Packit Service bf98b9
                                                             guint             point,
Packit Service bf98b9
                                                             gfloat           *motion_x,
Packit Service bf98b9
                                                             gfloat           *motion_y);
Packit Service bf98b9
CLUTTER_AVAILABLE_IN_1_24
Packit Service bf98b9
gfloat          clutter_pan_action_get_constrained_motion_delta (ClutterPanAction *self,
Packit Service bf98b9
                                                                 guint             point,
Packit Service bf98b9
                                                                 gfloat           *delta_x,
Packit Service bf98b9
                                                                 gfloat           *delta_y);
Packit Service bf98b9
G_END_DECLS
Packit Service bf98b9
Packit Service bf98b9
#endif /* __CLUTTER_PAN_ACTION_H__ */