1
/* champlain-kinetic-scroll-view.h: Finger scrolling container actor
2
 *
3
 * Copyright (C) 2008 OpenedHand
4
 *
5
 * This library is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU Lesser General Public
7
 * License as published by the Free Software Foundation; either
8
 * version 2 of the License, or (at your option) any later version.
9
 *
10
 * This library is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
 * Lesser General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU Lesser General Public
16
 * License along with this library; if not, write to the
17
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18
 * Boston, MA 02111-1307, USA.
19
 *
20
 * Written by: Chris Lord <chris@openedhand.com>
21
 */
22
23
#ifndef __CHAMPLAIN_KINETIC_SCROLL_VIEW_H__
24
#define __CHAMPLAIN_KINETIC_SCROLL_VIEW_H__
25
26
#include <glib-object.h>
27
#include <clutter/clutter.h>
28
29
G_BEGIN_DECLS
30
31
#define CHAMPLAIN_TYPE_KINETIC_SCROLL_VIEW champlain_kinetic_scroll_view_get_type ()
32
33
#define CHAMPLAIN_KINETIC_SCROLL_VIEW(obj) \
34
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), CHAMPLAIN_TYPE_KINETIC_SCROLL_VIEW, ChamplainKineticScrollView))
35
36
#define CHAMPLAIN_IS_KINETIC_SCROLL_VIEW(obj) \
37
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CHAMPLAIN_TYPE_KINETIC_SCROLL_VIEW))
38
39
#define CHAMPLAIN_KINETIC_SCROLL_VIEW_CLASS(klass) \
40
  (G_TYPE_CHECK_CLASS_CAST ((klass), CHAMPLAIN_TYPE_KINETIC_SCROLL_VIEW, ChamplainKineticScrollViewClass))
41
42
#define CHAMPLAIN_IS_KINETIC_SCROLL_VIEW_CLASS(klass) \
43
  (G_TYPE_CHECK_CLASS_TYPE ((klass), CHAMPLAIN_TYPE_KINETIC_SCROLL_VIEW))
44
45
#define CHAMPLAIN_KINETIC_SCROLL_VIEW_GET_CLASS(obj) \
46
  (G_TYPE_INSTANCE_GET_CLASS ((obj), CHAMPLAIN_TYPE_KINETIC_SCROLL_VIEW, ChamplainKineticScrollViewClass))
47
48
typedef struct _ChamplainKineticScrollView ChamplainKineticScrollView;
49
typedef struct _ChamplainKineticScrollViewPrivate ChamplainKineticScrollViewPrivate;
50
typedef struct _ChamplainKineticScrollViewClass ChamplainKineticScrollViewClass;
51
52
struct _ChamplainKineticScrollView
53
{
54
  /*< private >*/
55
  ClutterActor parent_instance;
56
57
  ChamplainKineticScrollViewPrivate *priv;
58
};
59
60
struct _ChamplainKineticScrollViewClass
61
{
62
  ClutterActorClass parent_class;
63
};
64
65
GType champlain_kinetic_scroll_view_get_type (void) G_GNUC_CONST;
66
67
ClutterActor *champlain_kinetic_scroll_view_new (gboolean kinetic);
68
69
void champlain_kinetic_scroll_view_stop (ChamplainKineticScrollView *scroll);
70
71
G_END_DECLS
72
73
#endif /* __CHAMPLAIN_KINETIC_SCROLL_VIEW_H__ */