Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/yabause/src/gtk/yuivdp2.h
2 views
1
/* Copyright 2006 Guillaume Duhamel
2
Copyright 2005-2006 Fabien Coulon
3
4
This file is part of Yabause.
5
6
Yabause 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 2 of the License, or
9
(at your option) any later version.
10
11
Yabause 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 Yabause; if not, write to the Free Software
18
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19
*/
20
21
#ifndef YUI_VDP2_H
22
#define YUI_VDP2_H
23
24
#include <glib.h>
25
#include <glib-object.h>
26
#include <gtk/gtktable.h>
27
28
#include "yuiwindow.h"
29
30
G_BEGIN_DECLS
31
32
#define YUI_VDP2_TYPE (yui_vdp2_get_type ())
33
#define YUI_VDP2(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), YUI_VDP2_TYPE, YuiVdp2))
34
#define YUI_VDP2_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), YUI_VDP2_TYPE, YuiVdp2Class))
35
#define IS_YUI_VDP2(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), YUI_VDP2_TYPE))
36
#define IS_YUI_VDP2_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), YUI_VDP2_TYPE))
37
38
typedef struct _YuiVdp2 YuiVdp2;
39
typedef struct _YuiVdp2Class YuiVdp2Class;
40
41
struct _YuiVdp2
42
{
43
GtkWindow dialog;
44
45
GtkWidget * image;
46
GtkTextBuffer * buffer;
47
GtkWidget * toolbar;
48
49
GtkListStore * store;
50
51
gint cursor;
52
53
gulong paused_handler;
54
gulong running_handler;
55
56
YuiWindow * yui;
57
};
58
59
struct _YuiVdp2Class
60
{
61
GtkWindowClass parent_class;
62
};
63
64
GType yui_vdp2_get_type (void);
65
GtkWidget * yui_vdp2_new (YuiWindow * yui);
66
void yui_vdp2_fill (YuiVdp2 * vdp2);
67
void yui_vdp2_update (YuiVdp2 * vdp2);
68
void yui_vdp2_destroy (YuiVdp2 * vdp2);
69
70
G_END_DECLS
71
72
#endif
73
74