summaryrefslogtreecommitdiff
path: root/attic/fluttr/src/fluttr-set-view.h
blob: a316bfe99bd91a2c154bd3a1abd990a1edf4f584 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
/*
 * Copyright (C) 2007 Neil J. Patel
 * Copyright (C) 2007 OpenedHand Ltd
 *
 * Author: Neil J. Patel  <njp@o-`hand.com>
 */

#include <config.h>
#include <glib.h>
#include <clutter/clutter.h>

#include <libnflick/nflick.h>

#include "fluttr-set.h"


#ifndef _HAVE_FLUTTR_SET_VIEW_H
#define _HAVE_FLUTTR_SET_VIEW_H


G_BEGIN_DECLS

#define FLUTTR_TYPE_SET_VIEW fluttr_set_view_get_type()

#define FLUTTR_SET_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
	FLUTTR_TYPE_SET_VIEW, \
	FluttrSetView))

#define FLUTTR_SET_VIEWCLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\
	FLUTTR_TYPE_SET_VIEW, \
	FluttrSetViewClass))

#define FLUTTR_IS_SET_VIEW(obj) \
	(G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
	FLUTTR_TYPE_SET_VIEW))

#define FLUTTR_IS_SET_VIEW_CLASS(klass) \
	(G_TYPE_CHECK_CLASS_TYPE ((klass), \
	FLUTTR_TYPE_SET_VIEW))

#define FLUTTR_SET_VIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),\
	FLUTTR_TYPE_SET_VIEW, \
	FluttrSetViewClass))

typedef struct _FluttrSetView FluttrSetView;
typedef struct _FluttrSetViewClass FluttrSetViewClass;
typedef struct _FluttrSetViewPrivate FluttrSetViewPrivate;

struct _FluttrSetView
{
	ClutterGroup         parent;
	
	/* private */
	FluttrSetViewPrivate   *priv;
};

struct _FluttrSetViewClass 
{
	/*< private >*/
	ClutterGroupClass parent_class;

	void (*_fluttr_set_view_1) (void);
	void (*_fluttr_set_view_2) (void);
	void (*_fluttr_set_view_3) (void);
	void (*_fluttr_set_view_4) (void);
}; 

GType fluttr_set_view_get_type (void) G_GNUC_CONST;

ClutterActor* 
fluttr_set_view_new (void);

void
fluttr_set_view_add_set (FluttrSetView *set_view, FluttrSet *set);

FluttrSet*
fluttr_set_view_get_active (FluttrSetView *set_view);

void
fluttr_set_view_activate (FluttrSetView *set_view);

void 
fluttr_set_view_advance (FluttrSetView *set_view, gint n);

void
fluttr_set_view_advance_row (FluttrSetView *set_view, gint n);

void
fluttr_set_view_advance_col (FluttrSetView *set_view, gint n);


G_END_DECLS

#endif