24 #ifndef __LIBS_GUI_UTILS_TWOLINES_CELLRENDERER_H_ 25 #define __LIBS_GUI_UTILS_TWOLINES_CELLRENDERER_H_ 40 #ifdef GLIBMM_PROPERTIES_ENABLED 42 Glib::PropertyProxy<Glib::ustring> property_line1();
43 Glib::PropertyProxy<Glib::ustring> property_line2();
44 Glib::PropertyProxy<bool> property_line2_enabled();
48 #if GTK_VERSION_GE(3,0) 49 virtual void get_preferred_width_vfunc(Gtk::Widget &widget,
51 int &natural_width)
const;
52 virtual void get_preferred_height_vfunc(Gtk::Widget &widget,
54 int &natural_height)
const;
55 virtual void get_size(Gtk::Widget& widget,
int *width,
int *height)
const;
56 virtual void render_vfunc (
const Cairo::RefPtr<Cairo::Context> &cr,
58 const Gdk::Rectangle& background_area,
59 const Gdk::Rectangle& cell_area,
60 Gtk::CellRendererState flags);
63 const Gdk::Rectangle* cell_area,
64 int* x_offset,
int* y_offset,
65 int* width,
int* height)
const;
66 virtual void render_vfunc (
const Glib::RefPtr<Gdk::Drawable>& window,
68 const Gdk::Rectangle& background_area,
69 const Gdk::Rectangle& cell_area,
70 const Gdk::Rectangle& expose_area,
71 Gtk::CellRendererState flags);
75 #ifdef GLIBMM_PROPERTIES_ENABLED 76 Glib::Property<Glib::ustring> __property_line1;
77 Glib::Property<Glib::ustring> __property_line2;
78 Glib::Property<bool> __property_line2_enabled;
Gtk cell renderer for two lines of text in a cell.
Fawkes library namespace.
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 ~TwoLinesCellRenderer()
Destructor.
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.