Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/yabause/src/gtk/yuipage.h
2 views
1
/* Copyright 2006 Guillaume Duhamel
2
3
This file is part of Yabause.
4
5
Yabause is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation; either version 2 of the License, or
8
(at your option) any later version.
9
10
Yabause is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with Yabause; if not, write to the Free Software
17
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
*/
19
20
#ifndef YUI_PAGE_H
21
#define YUI_PAGE_H
22
23
#include <glib.h>
24
#include <glib-object.h>
25
#include <gtk/gtktable.h>
26
27
G_BEGIN_DECLS
28
29
#define YUI_PAGE_TYPE (yui_page_get_type ())
30
#define YUI_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), YUI_PAGE_TYPE, YuiPage))
31
#define YUI_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), YUI_PAGE_TYPE, YuiPageClass))
32
#define IS_YUI_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), YUI_PAGE_TYPE))
33
#define IS_YUI_PAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), YUI_PAGE_TYPE))
34
35
#define YUI_FILE_SETTING 1
36
#define YUI_RANGE_SETTING 2
37
#define YUI_RESOLUTION_SETTING 3
38
39
typedef struct _YuiPage YuiPage;
40
typedef struct _YuiPageClass YuiPageClass;
41
42
struct _YuiPage
43
{
44
GtkVBox vbox;
45
46
GKeyFile * keyfile;
47
};
48
49
struct _YuiPageClass
50
{
51
GtkHBoxClass parent_class;
52
53
void (* yui_page) (YuiPage * yfe);
54
};
55
56
GType yui_page_get_type (void);
57
GtkWidget * yui_page_new (GKeyFile * keyfile);
58
59
GtkWidget * yui_page_add (YuiPage * yp, const gchar * name);
60
61
G_END_DECLS
62
63
#endif
64
65