blob: ec231b705f7c5ba0d0053933b8ac82d095547487 [file] [log] [blame]
Stepan Salenikovich36c025c2015-03-03 19:06:44 -05001/*
2 * Copyright (C) 2004-2015 Savoir-Faire Linux Inc.
3 * Author: Sebastien Bourdelin <sebastien.bourdelin@savoirfairelinux.com>
4 * Author: Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 * Additional permission under GNU GPL version 3 section 7:
21 *
22 * If you modify this program, or any covered work, by linking or
23 * combining it with the OpenSSL project's OpenSSL library (or a
24 * modified version of that library), containing parts covered by the
25 * terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc.
26 * grants you additional permission to convey the resulting work.
27 * Corresponding Source for a non-source form of such a combination
28 * shall include the source code for the parts of OpenSSL used as well
29 * as that of the covered work.
30 */
31
32#ifndef __VIDEO_WIDGET_H__
33#define __VIDEO_WIDGET_H__
34
35#include <gtk/gtk.h>
36#include <video/renderer.h>
37
38G_BEGIN_DECLS
39
40#define VIDEO_WIDGET_TYPE (video_widget_get_type())
41#define VIDEO_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), VIDEO_WIDGET_TYPE, VideoWidget))
42#define VIDEO_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), VIDEO_WIDGET_TYPE, VideoWidgetClass))
43#define IS_VIDEO_WIDGET(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), VIDEO_WIDGET_TYPE))
44#define IS_VIDEO_WIDGET_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), VIDEO_WIDGET_TYPE))
45
46typedef struct _VideoWidgetClass VideoWidgetClass;
47typedef struct _VideoWidget VideoWidget;
48
49/* Public interface */
50GType video_widget_get_type (void) G_GNUC_CONST;
51GtkWidget* video_widget_new (void);
52void video_widget_set_remote_renderer(VideoWidget *self, Video::Renderer *renderer_remote_new);
53
54G_END_DECLS
55
56#endif /* __VIDEO_WIDGET_H__ */