24#ifndef _LIBS_GUI_UTILS_TWOLINES_CELLRENDERER_H_
25#define _LIBS_GUI_UTILS_TWOLINES_CELLRENDERER_H_
37#ifdef GLIBMM_PROPERTIES_ENABLED
39 Glib::PropertyProxy<Glib::ustring> property_line1();
40 Glib::PropertyProxy<Glib::ustring> property_line2();
41 Glib::PropertyProxy<bool> property_line2_enabled();
45#if GTK_VERSION_GE(3, 0)
47 get_preferred_width_vfunc(Gtk::Widget &widget,
int &minimum_width,
int &natural_width)
const;
49 get_preferred_height_vfunc(Gtk::Widget &widget,
int &minimum_height,
int &natural_height)
const;
50 virtual void get_size(Gtk::Widget &widget,
int *width,
int *height)
const;
51 virtual void render_vfunc(
const Cairo::RefPtr<Cairo::Context> &cr,
53 const Gdk::Rectangle & background_area,
54 const Gdk::Rectangle & cell_area,
55 Gtk::CellRendererState flags);
58 const Gdk::Rectangle *cell_area,
63 virtual void render_vfunc(
const Glib::RefPtr<Gdk::Drawable> &window,
65 const Gdk::Rectangle & background_area,
66 const Gdk::Rectangle & cell_area,
67 const Gdk::Rectangle & expose_area,
68 Gtk::CellRendererState flags);
72#ifdef GLIBMM_PROPERTIES_ENABLED
73 Glib::Property<Glib::ustring> property_line1_;
74 Glib::Property<Glib::ustring> property_line2_;
75 Glib::Property<bool> property_line2_enabled_;
Gtk cell renderer for two lines of text in a cell.
virtual void render_vfunc(const Glib::RefPtr< Gdk::Drawable > &window, Gtk::Widget &widget, const Gdk::Rectangle &background_area, const Gdk::Rectangle &cell_area, const Gdk::Rectangle &expose_area, Gtk::CellRendererState flags)
Render the cell.
virtual void get_size_vfunc(Gtk::Widget &widget, const Gdk::Rectangle *cell_area, int *x_offset, int *y_offset, int *width, int *height) const
Get required size for cell.
TwoLinesCellRenderer()
Constructor.
virtual ~TwoLinesCellRenderer()
Destructor.
Fawkes library namespace.