summaryrefslogtreecommitdiffstats
path: root/src/widgets/icon.h
diff options
context:
space:
mode:
authorMenTaLguY <mental@rydia.net>2006-01-16 02:36:01 +0000
committermental <mental@users.sourceforge.net>2006-01-16 02:36:01 +0000
commit179fa413b047bede6e32109e2ce82437c5fb8d34 (patch)
treea5a6ac2c1708bd02288fbd8edb2ff500ff2e0916 /src/widgets/icon.h
downloadinkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.tar.gz
inkscape-179fa413b047bede6e32109e2ce82437c5fb8d34.zip
moving trunk for module inkscape
(bzr r1)
Diffstat (limited to 'src/widgets/icon.h')
-rw-r--r--src/widgets/icon.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/src/widgets/icon.h b/src/widgets/icon.h
new file mode 100644
index 000000000..2ed165f7e
--- /dev/null
+++ b/src/widgets/icon.h
@@ -0,0 +1,51 @@
+#ifndef SEEN_SP_ICON_H
+#define SEEN_SP_ICON_H
+
+/*
+ * Generic icon widget
+ *
+ * Author:
+ * Lauris Kaplinski <lauris@kaplinski.com>
+ *
+ * Copyright (C) 2002 Lauris Kaplinski
+ *
+ * Released under GNU GPL, read the file 'COPYING' for more information
+ */
+
+#include <glib.h>
+
+
+
+#define SP_TYPE_ICON (sp_icon_get_type ())
+#define SP_ICON(o) (GTK_CHECK_CAST ((o), SP_TYPE_ICON, SPIcon))
+#define SP_IS_ICON(o) (GTK_CHECK_TYPE ((o), SP_TYPE_ICON))
+
+#include <gtk/gtkwidget.h>
+
+struct SPIcon {
+ GtkWidget widget;
+
+ GtkIconSize lsize;
+ int psize;
+ gchar *name;
+
+ GdkPixbuf *pb;
+ GdkPixbuf *pb_faded;
+};
+
+struct SPIconClass {
+ GtkWidgetClass parent_class;
+};
+
+GType sp_icon_get_type (void);
+
+GtkWidget *sp_icon_new( GtkIconSize size, const gchar *name );
+
+#include <glibmm/ustring.h>
+#include <gtkmm/widget.h>
+
+// Might return a wrapped SPIcon, or Gtk::Image
+Gtk::Widget *sp_icon_get_icon( const Glib::ustring &oid, GtkIconSize size = GTK_ICON_SIZE_BUTTON );
+
+
+#endif // SEEN_SP_ICON_H