Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/yabause/src/gtk/yuicheckbutton.h
2 views
1
/* Copyright 2006 Guillaume Duhamel
2
Copyright 2005-2006 Fabien Coulon
3
Copyright 2009 Andrew Church
4
5
This file is part of Yabause.
6
7
Yabause is free software; you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published by
9
the Free Software Foundation; either version 2 of the License, or
10
(at your option) any later version.
11
12
Yabause is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
16
17
You should have received a copy of the GNU General Public License
18
along with Yabause; if not, write to the Free Software
19
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
*/
21
22
#ifndef YUI_CHECK_BUTTON_H
23
#define YUI_CHECK_BUTTON_H
24
25
#include <glib.h>
26
#include <glib-object.h>
27
#include <gtk/gtkcheckbutton.h>
28
29
G_BEGIN_DECLS
30
31
#define YUI_CHECK_BUTTON_TYPE (yui_check_button_get_type ())
32
#define YUI_CHECK_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), YUI_CHECK_BUTTON_TYPE, YuiCheckButton))
33
#define YUI_CHECK_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), YUI_CHECK_BUTTON_TYPE, YuiCheckButtonClass))
34
#define IS_YUI_CHECK_BUTTON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), YUI_CHECK_BUTTON_TYPE))
35
#define IS_YUI_CHECK_BUTTON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), YUI_CHECK_BUTTON_TYPE))
36
37
typedef struct _YuiCheckButton YuiCheckButton;
38
typedef struct _YuiCheckButtonClass YuiCheckButtonClass;
39
40
struct _YuiCheckButton
41
{
42
GtkCheckButton button;
43
44
GKeyFile * keyfile;
45
gchar * group;
46
gchar * key;
47
};
48
49
struct _YuiCheckButtonClass
50
{
51
GtkCheckButtonClass parent_class;
52
53
void (* yui_check_button_change) (YuiCheckButton * ycb);
54
};
55
56
GType yui_check_button_get_type (void);
57
GtkWidget * yui_check_button_new (const gchar * label, GKeyFile * keyfile, const gchar * group, const gchar * key);
58
gboolean yui_check_button_get_active (YuiCheckButton * ycb);
59
60
G_END_DECLS
61
62
#endif /* YUI_CHECK_BUTTON_H */
63
64