Fawkes API  Fawkes Development Version
fawkes::TwoLinesCellRenderer Class Reference

Gtk cell renderer for two lines of text in a cell. More...

#include <>>

Inheritance diagram for fawkes::TwoLinesCellRenderer:

Public Member Functions

 TwoLinesCellRenderer ()
 Constructor. More...
 
virtual ~TwoLinesCellRenderer ()
 Destructor. More...
 

Protected Member Functions

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. More...
 
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. More...
 

Detailed Description

Gtk cell renderer for two lines of text in a cell.

This cell renderer allows you to have two lines of text in a single cell. It works by getting the text via two properties. The first line is the primary line and printed "normally". The second line is the secondary line and printed with a slightly smaller font.

Author
Tim Niemueller

Definition at line 34 of file twolines_cellrenderer.h.

Constructor & Destructor Documentation

◆ TwoLinesCellRenderer()

fawkes::TwoLinesCellRenderer::TwoLinesCellRenderer ( )

Constructor.

Definition at line 48 of file twolines_cellrenderer.cpp.

◆ ~TwoLinesCellRenderer()

fawkes::TwoLinesCellRenderer::~TwoLinesCellRenderer ( )
virtual

Destructor.

Definition at line 60 of file twolines_cellrenderer.cpp.

Member Function Documentation

◆ get_size_vfunc()

void fawkes::TwoLinesCellRenderer::get_size_vfunc ( Gtk::Widget &  widget,
const Gdk::Rectangle *  cell_area,
int *  x_offset,
int *  y_offset,
int *  width,
int *  height 
) const
protectedvirtual

Get required size for cell.

Parameters
widgetwidget
cell_areaarea of the cell
x_offsetignored
y_offsetignored
widthupon return contains the required width of the cell
heightupon return contains the required height of the cell

Definition at line 116 of file twolines_cellrenderer.cpp.

References render_vfunc().

◆ render_vfunc()

void fawkes::TwoLinesCellRenderer::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 
)
protectedvirtual

Render the cell.

This is called to render the cell.

Parameters
windowwindow
widgetwidget
background_areadimensions of the background area
cell_areadimensions of the cell area
expose_areadimensions of the exposed area
flagsrender flags

Definition at line 213 of file twolines_cellrenderer.cpp.

Referenced by get_size_vfunc().


The documentation for this class was generated from the following files: