Added button image data transmission from
[irreco.git] / irreco / src / core / irreco_listbox_image.h
blob299458fc9ec21c7454ae90f070af3d844de7f020
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.
20 /**
21 * @addtogroup IrrecoListboxImage
22 * @{
25 /**
26 * @file
27 * Header file of @ref IrrecoListboxImage.
32 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
33 /* Typedef */
34 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
36 * Make sure that typedefs are available before we include anything elese.
38 * This makes sure that whatever other structures that depend on structures
39 * defined in this file will compile OK recardles of header inclusion order.
41 #ifndef __IRRECO_LISTBOX_IMAGE_H_TYPEDEF__
42 #define __IRRECO_LISTBOX_IMAGE_H_TYPEDEF__
44 typedef struct _IrrecoListboxImage IrrecoListboxImage;
45 typedef struct _IrrecoListboxImageClass IrrecoListboxImageClass;
47 #define IRRECO_TYPE_LISTBOX_IMAGE irreco_listbox_image_get_type()
49 #define IRRECO_LISTBOX_IMAGE(obj) \
50 (G_TYPE_CHECK_INSTANCE_CAST ((obj), \
51 IRRECO_TYPE_LISTBOX_IMAGE, IrrecoListboxImage))
53 #define IRRECO_LISTBOX_IMAGE_CLASS(klass) \
54 (G_TYPE_CHECK_CLASS_CAST ((klass), \
55 IRRECO_TYPE_LISTBOX_IMAGE, IrrecoListboxImageClass))
57 #define IRRECO_IS_LISTBOX_IMAGE(obj) \
58 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), \
59 IRRECO_TYPE_LISTBOX_IMAGE))
61 #define IRRECO_IS_LISTBOX_IMAGE_CLASS(klass) \
62 (G_TYPE_CHECK_CLASS_TYPE ((klass), \
63 IRRECO_TYPE_LISTBOX_IMAGE))
65 #define IRRECO_LISTBOX_IMAGE_GET_CLASS(obj) \
66 (G_TYPE_INSTANCE_GET_CLASS ((obj), \
67 IRRECO_TYPE_LISTBOX_IMAGE, IrrecoListboxImageClass))
69 #endif /* __IRRECO_LISTBOX_IMAGE_H_TYPEDEF__ */
73 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
74 /* Include */
75 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
76 #ifndef __IRRECO_LISTBOX_IMAGE_H__
77 #define __IRRECO_LISTBOX_IMAGE_H__
78 #include "irreco.h"
79 #include "irreco_listbox.h"
83 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
84 /* Datatypes */
85 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
87 struct _IrrecoListboxImage {
88 IrrecoListbox parent;
91 struct _IrrecoListboxImageClass {
92 IrrecoListboxClass parent_class;
97 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
98 /* Prototypes */
99 /*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
100 GType irreco_listbox_image_get_type (void);
101 GtkWidget* irreco_listbox_image_new (void);
102 GtkWidget* irreco_listbox_image_new_with_autosize (gint min_width,
103 gint max_width,
104 gint min_height,
105 gint max_height);
106 void irreco_listbox_image_append (IrrecoListboxImage *self,
107 const gchar *label,
108 gpointer user_data,
109 const gchar *image);
111 void irreco_listbox_image_append_with_size(IrrecoListboxImage *self,
112 const gchar *label,
113 gpointer user_data,
114 const gchar *image,
115 gint image_width,
116 gint image_height);
121 #endif /* __IRRECO_LISTBOX_IMAGE_H__ */
123 /** @} */