File: bonobo-ui-icon.h

package info (click to toggle)
bonobo 1.0.22-2.2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 13,412 kB
  • ctags: 5,445
  • sloc: ansic: 51,714; sh: 7,733; makefile: 1,425; yacc: 318; xml: 266; sed: 16
file content (60 lines) | stat: -rw-r--r-- 1,950 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/* bonobo-ui-icon.h: Icon widget for the Bonobo UI engine
 *
 * Copyright (C) 2001 Ximian, Inc.
 *
 * Author: Federico Mena-Quintero <federico@ximian.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */

#ifndef _BONOBO_UI_ICON_H_
#define _BONOBO_UI_ICON_H_

#include <gdk-pixbuf/gdk-pixbuf.h>
#include <gtk/gtkwidget.h>



#define BONOBO_UI_ICON_TYPE            (bonobo_ui_icon_get_type ())
#define BONOBO_UI_ICON(obj)            (GTK_CHECK_CAST ((obj), BONOBO_UI_ICON_TYPE, BonoboUIIcon))
#define BONOBO_UI_ICON_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((obj), BONOBO_UI_ICON_TYPE, BonoboUIIcon))
#define BONOBO_IS_UI_ICON(obj)         (GTK_CHECK_TYPE ((obj), BONOBO_UI_ICON_TYPE))
#define BONOBO_IS_UI_ICON_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((obj), BONOBO_IS_UI_ICON_CLASS))

typedef struct BonoboUIIconPrivate BonoboUIIconPrivate;

typedef struct {
	GtkWidget widget;

	/* Private data */
	BonoboUIIconPrivate *priv;
} BonoboUIIcon;

typedef struct {
	GtkWidgetClass parent_class;
} BonoboUIIconClass;

GtkType bonobo_ui_icon_get_type (void);

GtkWidget *bonobo_ui_icon_new (void);

void bonobo_ui_icon_set_images (BonoboUIIcon *icon, GdkPixbuf **images);

gboolean bonobo_ui_icon_set_from_pixbuf (BonoboUIIcon *icon, GdkPixbuf *base);



#endif