Logo Search packages:      
Sourcecode: inkscape version File versions

icon.cpp File Reference

Detailed Description

SPIcon: Generic icon widget

Definition in file icon.cpp.

#include <cstring>
#include <glib/gmem.h>
#include <gtk/gtk.h>
#include <gtkmm.h>
#include "path-prefix.h"
#include "preferences.h"
#include "inkscape.h"
#include "document.h"
#include "sp-item.h"
#include "display/nr-arena.h"
#include "display/nr-arena-item.h"
#include "io/sys.h"
#include "icon.h"

Go to the source code of this file.


class  IconCacheItem
class  preRenderItem
struct  svg_doc_cache_t


static void addPreRender (GtkIconSize lsize, gchar const *name)
static void addToIconSet (GdkPixbuf *pb, gchar const *name, GtkIconSize lsize, unsigned psize)
static GdkPixbuf * get_cached_pixbuf (Glib::ustring const &key)
GtkIconSize Inkscape::getRegisteredIconSize (IconSize size)
static Glib::ustring icon_cache_key (gchar const *name, unsigned psize)
static gboolean icon_prerender_task (gpointer data)
static std::list< gchar * > & icons_svg_paths ()
static void imageMapCB (GtkWidget *widget, gpointer user_data)
static void imageMapNamedCB (GtkWidget *widget, gpointer user_data)
static void injectCustomSize ()
static guchar * load_svg_pixels (gchar const *name, unsigned, unsigned psize)
static bool prerender_icon (gchar const *name, GtkIconSize lsize, unsigned psize)
void Inkscape::queueIconPrerender (Glib::ustring const &name, Inkscape::IconSize lsize)
static GdkPixbuf * renderup (gchar const *name, Inkscape::IconSize lsize, unsigned psize)
static void setupLegacyNaming ()
static void sp_icon_class_init (SPIconClass *klass)
static void sp_icon_clear (SPIcon *icon)
static void sp_icon_dispose (GObject *object)
guchar * sp_icon_doc_icon (SPDocument *doc, NRArenaItem *root, gchar const *name, unsigned psize)
static int sp_icon_expose (GtkWidget *widget, GdkEventExpose *event)
void sp_icon_fetch_pixbuf (SPIcon *icon)
GtkIconSize sp_icon_get_gtk_size (int size)
Gtk::Widget * sp_icon_get_icon (Glib::ustring const &oid, Inkscape::IconSize size)
int sp_icon_get_phys_size (int size)
GType sp_icon_get_type ()
static GdkPixbuf * sp_icon_image_load_pixmap (gchar const *name, unsigned lsize, unsigned psize)
static GdkPixbuf * sp_icon_image_load_svg (gchar const *name, GtkIconSize lsize, unsigned psize)
static void sp_icon_init (SPIcon *icon)
GtkWidget * sp_icon_new (Inkscape::IconSize lsize, gchar const *name)
static GtkWidget * sp_icon_new_full (Inkscape::IconSize lsize, gchar const *name)
static void sp_icon_overlay_pixels (guchar *px, int width, int height, int stride, unsigned r, unsigned g, unsigned b)
static void sp_icon_paint (SPIcon *icon, GdkRectangle const *area)
static void sp_icon_reset (SPIcon *icon)
static void sp_icon_screen_changed (GtkWidget *widget, GdkScreen *previous_screen)
static void sp_icon_size_allocate (GtkWidget *widget, GtkAllocation *allocation)
static void sp_icon_size_request (GtkWidget *widget, GtkRequisition *requisition)
static void sp_icon_style_set (GtkWidget *widget, GtkStyle *previous_style)
static void sp_icon_theme_changed (SPIcon *icon)


static bool callbackHooked = false
static std::map< Glib::ustring,
svg_doc_cache_t * > 
static std::map< Glib::ustring,
std::vector< IconCacheItem > > 
static GtkIconSize iconSizeLookup []
static std::set< Glib::ustring > internalNames
static std::map< Glib::ustring,
Glib::ustring > 
static GtkWidgetClass * parent_class
static std::map< Glib::ustring,
GdkPixbuf * > 
static std::vector< preRenderItem > pendingRenders
static bool sizeDirty = true
static bool sizeMapDone = false

Generated by  Doxygen 1.6.0   Back to index