Lines Matching defs:IconImpl
46 struct IconImpl {
110 const std::string IconImpl::magicNumber = "1.0";
111 std::map<Glib::ustring, Glib::ustring> IconImpl::legacyNames;
150 object_class->dispose = IconImpl::dispose;
153 widget_class->get_preferred_width = IconImpl::getPreferredWidth;
154 widget_class->get_preferred_height = IconImpl::getPreferredHeight;
155 widget_class->draw = IconImpl::draw;
157 widget_class->size_request = IconImpl::sizeRequest;
158 widget_class->expose_event = IconImpl::expose;
160 widget_class->size_allocate = IconImpl::sizeAllocate;
161 widget_class->screen_changed = IconImpl::screenChanged;
162 widget_class->style_set = IconImpl::styleSet;
175 void IconImpl::dispose(GObject *object)
187 void IconImpl::reset( SPIcon *icon )
193 void IconImpl::clear( SPIcon *icon )
201 void IconImpl::sizeRequest(GtkWidget *widget, GtkRequisition *requisition)
212 void IconImpl::getPreferredWidth(GtkWidget *widget, gint *minimal_width, gint *natural_width)
219 void IconImpl::getPreferredHeight(GtkWidget *widget, gint *minimal_height, gint *natural_height)
226 void IconImpl::sizeAllocate(GtkWidget *widget, GtkAllocation *allocation)
236 gboolean IconImpl::draw(GtkWidget *widget, cairo_t* cr)
251 std::cerr << "IconImpl::draw: Ooops! It is called in GTK2" << std::endl;
253 std::cerr << "IconImpl::draw: No image, creating fallback" << std::endl;
312 gboolean IconImpl::expose(GtkWidget *widget, GdkEventExpose * /*event*/)
329 return IconImpl::fetchPixbuf(icon);
332 void IconImpl::fetchPixbuf( SPIcon *icon )
342 GdkPixbuf* IconImpl::renderup( gchar const* name, Inkscape::IconSize lsize, unsigned psize ) {
376 void IconImpl::screenChanged( GtkWidget *widget, GdkScreen *previous_screen )
385 void IconImpl::styleSet( GtkWidget *widget, GtkStyle *previous_style )
394 void IconImpl::themeChanged( SPIcon *icon )
405 std::string IconImpl::fileEscape( std::string const & str )
438 void IconImpl::validateCache()
545 void IconImpl::setupLegacyNaming() {
801 GtkWidget *IconImpl::newFull( Inkscape::IconSize lsize, gchar const *name )
868 return IconImpl::newFull( lsize, name );
874 int psize = IconImpl::getPhysSize(lsize);
875 return IconImpl::renderup(name, lsize, psize);
882 GtkWidget *widget = IconImpl::newFull( static_cast<Inkscape::IconSize>(Inkscape::getRegisteredIconSize(size)), oid.c_str() );
896 void IconImpl::injectCustomSize()
927 IconImpl::injectCustomSize();
942 return IconImpl::getPhysSize(size);
945 int IconImpl::getPhysSize(int size)
1064 GdkPixbuf *IconImpl::loadPixmap(gchar const *name, unsigned /*lsize*/, unsigned psize)
1227 IconImpl::overlayPixels( px, psize, psize, stride, 0x00, 0x00, 0xff );
1278 std::list<gchar*> &IconImpl::icons_svg_paths()
1294 guchar *IconImpl::load_svg_pixels(std::list<Glib::ustring> const &names,
1355 IconImpl::injectCustomSize();
1359 int psize = IconImpl::getPhysSize(lsize);
1361 IconImpl::prerenderIcon(name.c_str(), mappedSize, psize);
1379 bool IconImpl::prerenderIcon(gchar const *name, GtkIconSize lsize, unsigned psize)
1486 GdkPixbuf *IconImpl::loadSvg(std::list<Glib::ustring> const &names, GtkIconSize lsize, unsigned psize)
1511 void IconImpl::overlayPixels(guchar *px, int width, int height, int stride,
1583 void IconImpl::addPreRender( GtkIconSize lsize, gchar const *name )
1594 gboolean IconImpl::prerenderTask(gpointer /*data*/) {
1616 void IconImpl::imageMapCB(GtkWidget* widget, gpointer user_data)
1642 void IconImpl::imageMapNamedCB(GtkWidget* widget, gpointer user_data)