clean code and changed version nro.
[irreco.git] / irreco / src / core / irreco_listbox_text.h
blob36f5f1e32896eacc611540c15de0445f828d0efb
1 /*
2 * irreco - Ir Remote Control
3 * Copyright (C) 2007 Arto Karppinen (arto.karppinen@iki.fi)
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
10 * This program 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.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 /**
22 * @addtogroup IrrecoListboxText
23 * @{
26 /**
27 * @file
28 * Header file of @ref IrrecoListboxText.
33 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
34 /* Typedef */
35 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
37 * Make sure that typedefs are available before we include anything elese.
39 * This makes sure that whatever other structures that depend on structures
40 * defined in this file will compile OK recardles of header inclusion order.
42 #ifndef __IRRECO_LISTBOX_TEXT_H_TYPEDEF__
43 #define __IRRECO_LISTBOX_TEXT_H_TYPEDEF__
45 typedef struct _IrrecoListboxText IrrecoListboxText;
46 typedef struct _IrrecoListboxTextClass IrrecoListboxTextClass;
48 #define IRRECO_TYPE_LISTBOX_TEXT irreco_listbox_text_get_type()
50 #define IRRECO_LISTBOX_TEXT(obj) \
51 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
52 IRRECO_TYPE_LISTBOX_TEXT, IrrecoListboxText))
54 #define IRRECO_LISTBOX_TEXT_CLASS(klass) \
55 (G_TYPE_CHECK_CLASS_CAST ((klass), \
56 IRRECO_TYPE_LISTBOX_TEXT, IrrecoListboxTextClass))
58 #define IRRECO_IS_LISTBOX_TEXT(obj) \
59 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
60 IRRECO_TYPE_LISTBOX_TEXT))
62 #define IRRECO_IS_LISTBOX_TEXT_CLASS(klass) \
63 (G_TYPE_CHECK_CLASS_TYPE ((klass), \
64 IRRECO_TYPE_LISTBOX_TEXT))
66 #define IRRECO_LISTBOX_TEXT_GET_CLASS(obj) \
67 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
68 IRRECO_TYPE_LISTBOX_TEXT, IrrecoListboxTextClass))
70 #endif /* __IRRECO_LISTBOX_TEXT_H_TYPEDEF__ */
74 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
75 /* Include */
76 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
77 #ifndef __IRRECO_LISTBOX_TEXT_H__
78 #define __IRRECO_LISTBOX_TEXT_H__
79 #include "irreco.h"
80 #include "irreco_listbox.h"
84 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
85 /* Datatypes */
86 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
88 struct _IrrecoListboxText {
89 IrrecoListbox parent;
92 struct _IrrecoListboxTextClass {
93 IrrecoListboxClass parent_class;
98 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
99 /* Prototypes */
100 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
101 GType irreco_listbox_text_get_type (void);
102 GtkWidget* irreco_listbox_text_new (void);
103 GtkWidget* irreco_listbox_text_new_with_autosize (gint min_width,
104 gint max_width,
105 gint min_height,
106 gint max_height);
107 void irreco_listbox_text_append(IrrecoListboxText *self,
108 const gchar *label,
109 gpointer user_data);
114 #endif /* __IRRECO_LISTBOX_TEXT_H__ */
116 /** @} */