Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/yabause/src/gtk/yuivdp1.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_VDP1_H
22
#define YUI_VDP1_H
23
24
#include <gtk/gtk.h>
25
26
#include "yuiwindow.h"
27
#include "../core.h"
28
29
G_BEGIN_DECLS
30
31
#define YUI_VDP1_TYPE (yui_vdp1_get_type ())
32
#define YUI_VDP1(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), YUI_VDP1_TYPE, YuiVdp1))
33
#define YUI_VDP1_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), YUI_VDP1_TYPE, YuiVdp1Class))
34
#define IS_YUI_VDP1(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), YUI_VDP1_TYPE))
35
#define IS_YUI_VDP1_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), YUI_VDP1_TYPE))
36
37
#define MAX_VDP1_COMMAND 4000
38
39
typedef struct _YuiVdp1 YuiVdp1;
40
typedef struct _YuiVdp1Class YuiVdp1Class;
41
42
struct _YuiVdp1
43
{
44
GtkWindow dialog;
45
46
GtkWidget * image;
47
GtkWidget * toolbar;
48
49
GtkListStore * store;
50
GtkTextBuffer * buffer;
51
52
gint cursor;
53
u32 * texture;
54
int w;
55
int h;
56
57
gulong paused_handler;
58
gulong running_handler;
59
YuiWindow * yui;
60
};
61
62
struct _YuiVdp1Class
63
{
64
GtkWindowClass parent_class;
65
66
void (* yui_vdp1) (YuiVdp1 * yv);
67
};
68
69
GType yui_vdp1_get_type (void);
70
GtkWidget * yui_vdp1_new (YuiWindow * yui);
71
void yui_vdp1_fill (YuiVdp1 * vdp1);
72
void yui_vdp1_update (YuiVdp1 * vdp1);
73
void yui_vdp1_destroy (YuiVdp1 * vdp1);
74
75
G_END_DECLS
76
77
#endif
78
79