~ubuntu-branches/ubuntu/jaunty/swfdec0.8/jaunty

« back to all changes in this revision

Viewing changes to vivified/ui/vivi_window.h

  • Committer: Package Import Robot
  • Author(s): Didier Roche
  • Date: 2008-10-10 19:15:24 UTC
  • Revision ID: package-import@ubuntu.com-20081010191524-5z85qiky1d4bvgfa
Tags: upstream-0.8.0
ImportĀ upstreamĀ versionĀ 0.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Vivi
 
2
 * Copyright (C) 2006-2007 Benjamin Otte <otte@gnome.org>
 
3
 *
 
4
 * This library is free software; you can redistribute it and/or
 
5
 * modify it under the terms of the GNU Lesser General Public
 
6
 * License as published by the Free Software Foundation; either
 
7
 * version 2.1 of the License, or (at your option) any later version.
 
8
 * 
 
9
 * This library is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
12
 * Lesser General Public License for more details.
 
13
 * 
 
14
 * You should have received a copy of the GNU Lesser General Public
 
15
 * License along with this library; if not, write to the Free Software
 
16
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, 
 
17
 * Boston, MA  02110-1301  USA
 
18
 */
 
19
 
 
20
#ifndef _VIVI_WINDOW_H_
 
21
#define _VIVI_WINDOW_H_
 
22
 
 
23
#include <vivified/dock/vivified-dock.h>
 
24
#include <vivified/core/vivified-core.h>
 
25
/* FIXME */
 
26
#include <swfdec/swfdec_movie.h>
 
27
 
 
28
G_BEGIN_DECLS
 
29
 
 
30
typedef struct _ViviWindow ViviWindow;
 
31
typedef struct _ViviWindowClass ViviWindowClass;
 
32
 
 
33
#define VIVI_TYPE_WINDOW                    (vivi_window_get_type())
 
34
#define VIVI_IS_WINDOW(obj)                 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIVI_TYPE_WINDOW))
 
35
#define VIVI_IS_WINDOW_CLASS(klass)         (G_TYPE_CHECK_CLASS_TYPE ((klass), VIVI_TYPE_WINDOW))
 
36
#define VIVI_WINDOW(obj)                    (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIVI_TYPE_WINDOW, ViviWindow))
 
37
#define VIVI_WINDOW_CLASS(klass)            (G_TYPE_CHECK_CLASS_CAST ((klass), VIVI_TYPE_WINDOW, ViviWindowClass))
 
38
 
 
39
struct _ViviWindow
 
40
{
 
41
  GtkWindow             window;
 
42
 
 
43
  ViviApplication *     app;            /* application we are displaying */
 
44
 
 
45
  SwfdecMovie *         movie;          /* the currently active movie or NULL if none */
 
46
};
 
47
 
 
48
struct _ViviWindowClass
 
49
{
 
50
  GtkWindowClass        window_class;
 
51
};
 
52
 
 
53
GType                   vivi_window_get_type            (void);
 
54
 
 
55
GtkWidget *             vivi_window_new                 (ViviApplication *      app);
 
56
 
 
57
ViviApplication *       vivi_window_get_application     (ViviWindow *           window);
 
58
void                    vivi_window_set_movie           (ViviWindow *           window,
 
59
                                                         SwfdecMovie *          movie);
 
60
SwfdecMovie *           vivi_window_get_movie           (ViviWindow *           window);
 
61
 
 
62
 
 
63
G_END_DECLS
 
64
#endif