summaryrefslogtreecommitdiff
path: root/opt/opt-show.h
blob: 27cfdd678edde464570b27f80b4406424eab6726 (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
#ifndef _HAVE_OPT_SHOW_H
#define _HAVE_OPT_SHOW_H

#include <glib-object.h>

#include "opt.h"

G_BEGIN_DECLS

#define OPT_TYPE_SHOW opt_show_get_type()

#define OPT_SHOW(obj) \
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
  OPT_TYPE_SHOW, OptShow))

#define OPT_SHOW_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_CAST ((klass), \
  OPT_TYPE_SHOW, OptShowClass))

#define OPT_IS_SHOW(obj) \
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
  OPT_TYPE_SHOW))

#define OPT_IS_SHOW_CLASS(klass) \
  (G_TYPE_CHECK_CLASS_TYPE ((klass), \
  OPT_TYPE_SHOW))

#define OPT_SHOW_GET_CLASS(obj) \
  (G_TYPE_INSTANCE_GET_CLASS ((obj), \
  OPT_TYPE_SHOW, OptShowClass))

typedef struct OptShowPrivate OptShowPrivate;
typedef struct _OptShowClass  OptShowClass;
 
struct _OptShow
{
  GObject              parent;
  OptShowPrivate      *priv;
};

struct _OptShowClass
{
  GObjectClass         parent_class;
};

GType opt_show_get_type (void);

OptShow* 
opt_show_new (void);

void
opt_show_add_slide (OptShow *self, OptSlide *slide);

void
opt_show_run (OptShow *self);

void
opt_show_advance (OptShow *self);

void
opt_show_retreat (OptShow *self);

void
opt_show_skip (OptShow *self, gint n_slides);

gboolean
opt_show_export (OptShow *self, const char *path, GError **error);

ClutterActor*
opt_show_bullet_clone (OptShow *show);

void
opt_show_set_bullet_color (OptShow *show, ClutterColor *col);

void
opt_show_toggle_position (OptShow *show);

void
opt_show_pop_menu (OptShow *show);

G_END_DECLS

#endif