Initial Import
[profile/ivi/clutter-toys.git] / attic / woohaa / wh-screen-video.h
1 #ifndef _HAVE_WH_SCREEN_VIDEO_H
2 #define _HAVE_WH_SCREEN_VIDEO_H
3
4 #include <clutter/clutter.h>
5 #include "wh-video-view.h"
6
7 G_BEGIN_DECLS
8
9 #define WH_TYPE_SCREEN_VIDEO wh_screen_video_get_type()
10
11 #define WH_SCREEN_VIDEO(obj) \
12   (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
13   WH_TYPE_SCREEN_VIDEO, WHScreenVideo))
14
15 #define WH_SCREEN_VIDEO_CLASS(klass) \
16   (G_TYPE_CHECK_CLASS_CAST ((klass), \
17   WH_TYPE_SCREEN_VIDEO, WHScreenVideoClass))
18
19 #define WH_IS_SCREEN_VIDEO(obj) \
20   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
21   WH_TYPE_SCREEN_VIDEO))
22
23 #define WH_IS_SCREEN_VIDEO_CLASS(klass) \
24   (G_TYPE_CHECK_CLASS_TYPE ((klass), \
25   WH_TYPE_SCREEN_VIDEO))
26
27 #define WH_SCREEN_VIDEO_GET_CLASS(obj) \
28   (G_TYPE_INSTANCE_GET_CLASS ((obj), \
29   WH_TYPE_SCREEN_VIDEO, WHScreenVideoClass))
30
31 typedef struct {
32   ClutterActor parent;
33 } WHScreenVideo;
34
35 typedef struct {
36   ClutterActorClass parent_class;
37
38   void (*started) (WHScreenVideo *screen);
39   void (*finished) (WHScreenVideo *screen);
40
41 } WHScreenVideoClass;
42
43 GType wh_screen_video_get_type (void);
44
45 ClutterActor* wh_screen_video_new (void);
46
47 gboolean
48 wh_screen_video_activate (WHScreenVideo *screen, WHVideoView *view);
49
50 void
51 wh_screen_video_deactivate (WHScreenVideo *screen);
52
53 gboolean
54 wh_screen_video_get_playing (WHScreenVideo *screen);
55
56 G_END_DECLS
57
58 #endif