14#include <gtkmm/snapshot.h>
15#include <sigc++/functors/mem_fun.h>
21 Gtk::CellRendererPixbuf{},
24 _property_active(*this,
"active", false),
25 _property_activatable(*this,
"activatable", true),
26 _property_gossamer(*this,
"gossamer", false),
27 _property_active_icon(*this,
"active_icon",
"")
29 property_mode() = Gtk::CellRendererMode::ACTIVATABLE;
30 property_icon_size().set_value(Gtk::IconSize::NORMAL);
45 Glib::ustring icon_name;
52 property_icon_name().set_value(icon_name);
57 const Gdk::Rectangle &background_area,
58 const Gdk::Rectangle &cell_area,
59 Gtk::CellRendererState flags)
78 snapshot->push_opacity(alpha);
79 auto const point = GRAPHENE_POINT_INIT(-0.5f * property_xpad().get_value(), 0);
80 gtk_snapshot_translate(snapshot->gobj(), &point);
81 Gtk::CellRendererPixbuf::snapshot_vfunc(snapshot, widget, background_area, cell_area, flags);
88 const Glib::ustring &path,
89 const Gdk::Rectangle &,
90 const Gdk::Rectangle &,
91 Gtk::CellRendererState )
static void set_padding(Gtk::Widget &widget, Gtk::Orientation const orientation, int const margin_start, int const margin_end)