fawkes::TwoLinesCellRenderer Class Reference
Gtk cell renderer for two lines of text in a cell. More...
#include <gui_utils/twolines_cellrenderer.h>
Public Member Functions | |
| TwoLinesCellRenderer () | |
| Constructor. | |
| ~TwoLinesCellRenderer () | |
| Destructor. | |
| Glib::PropertyProxy < Glib::ustring > | property_line1 () |
| Get property proxy for first line. | |
| Glib::PropertyProxy < Glib::ustring > | property_line2 () |
| Get property proxy for second line. | |
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. | |
| 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. | |
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.
Definition at line 34 of file twolines_cellrenderer.h.
Constructor & Destructor Documentation
| fawkes::TwoLinesCellRenderer::TwoLinesCellRenderer | ( | ) |
| fawkes::TwoLinesCellRenderer::~TwoLinesCellRenderer | ( | ) |
Member Function Documentation
| 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 [protected, virtual] |
Get required size for cell.
- Parameters:
-
widget widget cell_area area of the cell x_offset ignored y_offset ignored width upon return contains the required width of the cell height upon return contains the required height of the cell
Definition at line 91 of file twolines_cellrenderer.cpp.
| Glib::PropertyProxy< Glib::ustring > fawkes::TwoLinesCellRenderer::property_line1 | ( | ) |
Get property proxy for first line.
- Returns:
- property proxy for first line
Definition at line 66 of file twolines_cellrenderer.cpp.
| Glib::PropertyProxy< Glib::ustring > fawkes::TwoLinesCellRenderer::property_line2 | ( | ) |
Get property proxy for second line.
- Returns:
- property proxy for second line
Definition at line 76 of file twolines_cellrenderer.cpp.
| 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 | |||
| ) | [protected, virtual] |
Render the cell.
This is called to render the cell.
- Parameters:
-
window window widget widget background_area dimensions of the background area cell_area dimensions of the cell area expose_area dimensions of the exposed area flags render flags
Definition at line 128 of file twolines_cellrenderer.cpp.
The documentation for this class was generated from the following files:
- src/libs/gui_utils/twolines_cellrenderer.h
- src/libs/gui_utils/twolines_cellrenderer.cpp

