Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

icon.cpp File Reference


Detailed Description

SPIcon: Generic icon widget

Definition in file icon.cpp.

#include <cstring>
#include <glib/gmem.h>
#include <gtk/gtkiconfactory.h>
#include <gtk/gtkstock.h>
#include <gtk/gtkimage.h>
#include <gtkmm/image.h>
#include "path-prefix.h"
#include "prefs-utils.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"
#include <queue>

Go to the source code of this file.

Classes

class  preRenderItem
struct  svg_doc_cache_t

Functions

static void addPreRender (Inkscape::IconSize lsize, gchar const *name)
static guchar * get_cached_pixels (Glib::ustring const &key)
static Glib::ustring icon_cache_key (gchar const *name, unsigned lsize, unsigned psize)
static gboolean icon_prerender_task (gpointer data)
static void injectCustomSize ()
static guchar * load_svg_pixels (gchar const *name, unsigned, unsigned psize)
static bool prerender_icon (gchar const *name, unsigned lsize, unsigned psize)
static void sp_icon_class_init (SPIconClass *klass)
static void sp_icon_clear (SPIcon *icon)
static void sp_icon_destroy (GtkObject *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)
GtkType sp_icon_get_type ()
static guchar * sp_icon_image_load (SPIcon *icon, gchar const *name)
static guchar * sp_icon_image_load_pixmap (gchar const *name, unsigned lsize, unsigned psize)
static guchar * sp_icon_image_load_svg (gchar const *name, unsigned 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)

Variables

static bool callbackHooked = false
static std::map< Glib::ustring,
svg_doc_cache_t * > 
doc_cache
static GtkIconSize iconSizeLookup []
static GtkWidgetClass * parent_class
static std::queue< preRenderItem > pendingRenders
static std::map< Glib::ustring,
guchar * > 
px_cache
static bool sizeDirty = true
static bool sizeMapDone = false


Generated by  Doxygen 1.6.0   Back to index