Lines Matching defs:lsize

47     static GtkWidget *newFull( Inkscape::IconSize lsize, gchar const *name );
79 static void addPreRender( GtkIconSize lsize, gchar const *name );
80 static GdkPixbuf* renderup( gchar const* name, Inkscape::IconSize lsize, unsigned psize );
83 static GdkPixbuf *loadPixmap(gchar const *name, unsigned lsize, unsigned psize);
84 static GdkPixbuf *loadSvg(std::list<Glib::ustring> const &names, GtkIconSize lsize, unsigned psize);
93 static bool prerenderIcon(gchar const *name, GtkIconSize lsize, unsigned psize);
131 IconCacheItem( GtkIconSize lsize, GdkPixbuf* pb ) :
132 _lsize( lsize ),
169 icon->lsize = Inkscape::ICON_SIZE_BUTTON;
207 : getPhysSize(icon->lsize) );
336 icon->psize = getPhysSize(icon->lsize);
337 icon->pb = renderup(icon->name, icon->lsize, icon->psize);
342 GdkPixbuf* IconImpl::renderup( gchar const* name, Inkscape::IconSize lsize, unsigned psize ) {
359 pb = loadSvg( names, Inkscape::getRegisteredIconSize(lsize), psize );
367 pb = loadPixmap( name, lsize, psize );
801 GtkWidget *IconImpl::newFull( Inkscape::IconSize lsize, gchar const *name )
806 gint trySize = CLAMP( static_cast<gint>(lsize), 0, static_cast<gint>(G_N_ELEMENTS(iconSizeLookup) - 1) );
807 if (trySize != lsize ) {
808 std::cerr << "GtkWidget *IconImple::newFull(): lsize != trySize: lsize: " << lsize
837 int psize = getPhysSize(lsize);
845 g_message( "skipped gtk '%s' %d (not GTK_IMAGE_ICON_NAME)", name, lsize );
853 //g_message("Creating an SPIcon instance for %s:%d", name, (int)lsize);
855 icon->lsize = lsize;
857 icon->psize = getPhysSize(lsize);
866 GtkWidget *sp_icon_new( Inkscape::IconSize lsize, gchar const *name )
868 return IconImpl::newFull( lsize, name );
872 GdkPixbuf *sp_pixbuf_new( Inkscape::IconSize lsize, gchar const *name )
874 int psize = IconImpl::getPhysSize(lsize);
875 return IconImpl::renderup(name, lsize, psize);
1064 GdkPixbuf *IconImpl::loadPixmap(gchar const *name, unsigned /*lsize*/, unsigned psize)
1337 static void addToIconSet(GdkPixbuf* pb, gchar const* name, GtkIconSize lsize, unsigned psize) {
1344 g_message(" set in a builtin for %s:%d:%d", name, lsize, psize);
1349 void Inkscape::queueIconPrerender( Glib::ustring const &name, Inkscape::IconSize lsize )
1353 gint trySize = CLAMP( static_cast<gint>(lsize), 0, static_cast<gint>(G_N_ELEMENTS(iconSizeLookup) - 1) );
1359 int psize = IconImpl::getPhysSize(lsize);
1379 bool IconImpl::prerenderIcon(gchar const *name, GtkIconSize lsize, unsigned psize)
1397 g_message("prerenderIcon [%s] %d:%d", name, lsize, psize);
1422 addToIconSet(obj, name, lsize, psize);
1448 g_message("load_svg_pixels([%s] = %s, %d, %d)", name, legacyNames[name].c_str(), lsize, psize);
1458 addToIconSet(pb, name, lsize, psize);
1486 GdkPixbuf *IconImpl::loadSvg(std::list<Glib::ustring> const &names, GtkIconSize lsize, unsigned psize)
1500 addToIconSet(pb, names.begin()->c_str(), lsize, psize);
1571 preRenderItem( GtkIconSize lsize, gchar const *name ) :
1572 _lsize( lsize ),
1583 void IconImpl::addPreRender( GtkIconSize lsize, gchar const *name )
1591 pendingRenders.push_back(preRenderItem(lsize, name));
1621 GtkIconSize lsize = static_cast<GtkIconSize>(GPOINTER_TO_INT(user_data));
1623 int psize = getPhysSize(lsize);
1624 g_message("imageMapCB(%p) for [%s]:%d:%d", widget, id, lsize, psize);
1626 if ( (it->_name == id) && (it->_lsize == lsize) ) {
1627 prerenderIcon(id, lsize, psize);
1629 g_message(" prerender for %s:%d:%d", id, lsize, psize);
1630 if (lsize != size) {