235
235
void Image::set(const std::string& filename)
237
gtk_image_set_from_file(gobj(), filename.c_str());
237
gtk_image_set_from_file(gobj(), filename.c_str());
240
240
void Image::set(const Glib::RefPtr<Gdk::Pixbuf>& pixbuf)
242
gtk_image_set_from_pixbuf(gobj(), Glib::unwrap(pixbuf));
242
gtk_image_set_from_pixbuf(gobj(), Glib::unwrap(pixbuf));
245
245
void Image::set(const Gtk::StockID& stock_id, IconSize size)
247
gtk_image_set_from_stock(gobj(), (stock_id).get_c_str(), static_cast<GtkIconSize>(int(size)));
247
gtk_image_set_from_stock(gobj(), (stock_id).get_c_str(), static_cast<GtkIconSize>(int(size)));
250
250
void Image::set(const Glib::RefPtr<IconSet>& icon_set, IconSize size)
252
gtk_image_set_from_icon_set(gobj(), Glib::unwrap(icon_set), static_cast<GtkIconSize>(int(size)));
252
gtk_image_set_from_icon_set(gobj(), Glib::unwrap(icon_set), static_cast<GtkIconSize>(int(size)));
255
255
void Image::set(const Glib::RefPtr<Gdk::PixbufAnimation>& animation)
257
gtk_image_set_from_animation(gobj(), Glib::unwrap(animation));
257
gtk_image_set_from_animation(gobj(), Glib::unwrap(animation));
260
260
void Image::set(const Glib::RefPtr<const Gio::Icon>& icon, IconSize size)
262
gtk_image_set_from_gicon(gobj(), const_cast<GIcon*>(Glib::unwrap<Gio::Icon>(icon)), static_cast<GtkIconSize>(int(size)));
262
gtk_image_set_from_gicon(gobj(), const_cast<GIcon*>(Glib::unwrap<Gio::Icon>(icon)), static_cast<GtkIconSize>(int(size)));
265
265
void Image::set_from_icon_name(const Glib::ustring& icon_name, IconSize size)
267
gtk_image_set_from_icon_name(gobj(), icon_name.c_str(), static_cast<GtkIconSize>(int(size)));
267
gtk_image_set_from_icon_name(gobj(), icon_name.c_str(), static_cast<GtkIconSize>(int(size)));
270
270
void Image::clear()
272
gtk_image_clear(gobj());
272
gtk_image_clear(gobj());
275
275
ImageType Image::get_storage_type() const
315
315
void Image::set_pixel_size(int pixel_size)
317
gtk_image_set_pixel_size(gobj(), pixel_size);
317
gtk_image_set_pixel_size(gobj(), pixel_size);
321
#ifndef GTKMM_DISABLE_DEPRECATED
321
323
#ifdef GLIBMM_PROPERTIES_ENABLED
322
324
Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixbuf> > Image::property_pixbuf()
324
326
return Glib::PropertyProxy< Glib::RefPtr<Gdk::Pixbuf> >(this, "pixbuf");
328
#endif // GTKMM_DISABLE_DEPRECATED
326
330
#endif //GLIBMM_PROPERTIES_ENABLED
328
332
#ifdef GLIBMM_PROPERTIES_ENABLED
333
337
#endif //GLIBMM_PROPERTIES_ENABLED
339
#ifndef GTKMM_DISABLE_DEPRECATED
335
341
#ifdef GLIBMM_PROPERTIES_ENABLED
336
342
Glib::PropertyProxy< Glib::ustring > Image::property_file()
338
344
return Glib::PropertyProxy< Glib::ustring >(this, "file");
346
#endif // GTKMM_DISABLE_DEPRECATED
340
348
#endif //GLIBMM_PROPERTIES_ENABLED
342
350
#ifdef GLIBMM_PROPERTIES_ENABLED
347
355
#endif //GLIBMM_PROPERTIES_ENABLED
357
#ifndef GTKMM_DISABLE_DEPRECATED
349
359
#ifdef GLIBMM_PROPERTIES_ENABLED
350
360
Glib::PropertyProxy< Glib::ustring > Image::property_stock()
352
362
return Glib::PropertyProxy< Glib::ustring >(this, "stock");
364
#endif // GTKMM_DISABLE_DEPRECATED
354
366
#endif //GLIBMM_PROPERTIES_ENABLED
356
368
#ifdef GLIBMM_PROPERTIES_ENABLED
361
373
#endif //GLIBMM_PROPERTIES_ENABLED
375
#ifndef GTKMM_DISABLE_DEPRECATED
363
377
#ifdef GLIBMM_PROPERTIES_ENABLED
364
378
Glib::PropertyProxy< Glib::RefPtr<IconSet> > Image::property_icon_set()
366
380
return Glib::PropertyProxy< Glib::RefPtr<IconSet> >(this, "icon-set");
382
#endif // GTKMM_DISABLE_DEPRECATED
368
384
#endif //GLIBMM_PROPERTIES_ENABLED
370
386
#ifdef GLIBMM_PROPERTIES_ENABLED
375
391
#endif //GLIBMM_PROPERTIES_ENABLED
393
#ifndef GTKMM_DISABLE_DEPRECATED
377
395
#ifdef GLIBMM_PROPERTIES_ENABLED
378
396
Glib::PropertyProxy< int > Image::property_icon_size()
380
398
return Glib::PropertyProxy< int >(this, "icon-size");
400
#endif // GTKMM_DISABLE_DEPRECATED
382
402
#endif //GLIBMM_PROPERTIES_ENABLED
384
404
#ifdef GLIBMM_PROPERTIES_ENABLED
389
409
#endif //GLIBMM_PROPERTIES_ENABLED
411
#ifndef GTKMM_DISABLE_DEPRECATED
391
413
#ifdef GLIBMM_PROPERTIES_ENABLED
392
414
Glib::PropertyProxy< int > Image::property_pixel_size()
394
416
return Glib::PropertyProxy< int >(this, "pixel-size");
418
#endif // GTKMM_DISABLE_DEPRECATED
396
420
#endif //GLIBMM_PROPERTIES_ENABLED
398
422
#ifdef GLIBMM_PROPERTIES_ENABLED
403
427
#endif //GLIBMM_PROPERTIES_ENABLED
429
#ifndef GTKMM_DISABLE_DEPRECATED
405
431
#ifdef GLIBMM_PROPERTIES_ENABLED
406
432
Glib::PropertyProxy< Glib::RefPtr<Gdk::PixbufAnimation> > Image::property_pixbuf_animation()
408
434
return Glib::PropertyProxy< Glib::RefPtr<Gdk::PixbufAnimation> >(this, "pixbuf-animation");
436
#endif // GTKMM_DISABLE_DEPRECATED
410
438
#endif //GLIBMM_PROPERTIES_ENABLED
412
440
#ifdef GLIBMM_PROPERTIES_ENABLED
417
445
#endif //GLIBMM_PROPERTIES_ENABLED
447
#ifndef GTKMM_DISABLE_DEPRECATED
419
449
#ifdef GLIBMM_PROPERTIES_ENABLED
420
450
Glib::PropertyProxy< Glib::ustring > Image::property_icon_name()
422
452
return Glib::PropertyProxy< Glib::ustring >(this, "icon-name");
454
#endif // GTKMM_DISABLE_DEPRECATED
424
456
#endif //GLIBMM_PROPERTIES_ENABLED
426
458
#ifdef GLIBMM_PROPERTIES_ENABLED
431
463
#endif //GLIBMM_PROPERTIES_ENABLED
465
#ifndef GTKMM_DISABLE_DEPRECATED
433
467
#ifdef GLIBMM_PROPERTIES_ENABLED
434
468
Glib::PropertyProxy_ReadOnly< ImageType > Image::property_storage_type() const
436
470
return Glib::PropertyProxy_ReadOnly< ImageType >(this, "storage-type");
472
#endif // GTKMM_DISABLE_DEPRECATED
438
474
#endif //GLIBMM_PROPERTIES_ENABLED
476
#ifndef GTKMM_DISABLE_DEPRECATED
440
478
#ifdef GLIBMM_PROPERTIES_ENABLED
441
479
Glib::PropertyProxy< Glib::RefPtr<Gio::Icon> > Image::property_gicon()
443
481
return Glib::PropertyProxy< Glib::RefPtr<Gio::Icon> >(this, "gicon");
483
#endif // GTKMM_DISABLE_DEPRECATED
445
485
#endif //GLIBMM_PROPERTIES_ENABLED
447
487
#ifdef GLIBMM_PROPERTIES_ENABLED
452
492
#endif //GLIBMM_PROPERTIES_ENABLED
494
#ifndef GTKMM_DISABLE_DEPRECATED
454
496
#ifdef GLIBMM_PROPERTIES_ENABLED
455
497
Glib::PropertyProxy< bool > Image::property_use_fallback()
457
499
return Glib::PropertyProxy< bool >(this, "use-fallback");
501
#endif // GTKMM_DISABLE_DEPRECATED
459
503
#endif //GLIBMM_PROPERTIES_ENABLED
461
505
#ifdef GLIBMM_PROPERTIES_ENABLED