#include <glib.h>
#include <gtk/gtk.h>
Go to the source code of this file.
Data Structures | |
struct | _erGtkCellRendererTextClass |
: GObject class for erGtkCellRendererText objects More... | |
struct | _erGtkCellRendererText |
: A cell renderer similar to GtkCellRendererText but capable of rendering multiple lines of text inside a single cell. Properties to control this cell renderer: text-0, text-1, .. Text to be displayed in 1st line, 2nd line, .. As in GtkCellRendererText property "text". font-0, font-1, .. Font description for 1st line, 2nd line, .. As in GtkCellRendererText propery "font". height-0, height-1. .. Height in pixels of 1st line, 2nd line, .. More... | |
Defines | |
#define | ERGTK_CELL_RENDERER_TEXT_TYPE (ergtk_cell_renderer_text_get_type()) |
#define | ERGTK_CELL_RENDERER_TEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), ERGTK_CELL_RENDERER_TEXT_TYPE, erGtkCellRendererText)) |
#define | IS_ERGTK_CELL_RENDERER_TEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), ERGTK_CELL_RENDERER_TEXT_TYPE)) |
#define | ERGTK_CELL_RENDERER_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), ERGTK_CELL_RENDERER_TEXT_TYPE, erGtkCellRendererTextClass)) |
#define | ERGTK_CELL_RENDERER_TEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), ERGTK_CELL_RENDERER_TEXT_TYPE, erGtkCellRendererTextClass)) |
#define | ISGTK_CELL_RENDERER_TEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), ERGTK_CELL_RENDERER_TEXT_TYPE)) |
#define | ERGTK_CELL_RENDERER_TEXT_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), ERGTK_CELL_RENDERER_TEXT_TYPE, erGtkCellRendererTextPrivate)) |
#define | ERGTK_CELL_RENDERER_TEXT_MAX_LINES 2 |
Typedefs | |
typedef struct _erGtkCellRendererText | erGtkCellRendererText |
typedef struct _erGtkCellRendererTextClass | erGtkCellRendererTextClass |
Functions | |
GtkCellRenderer * | ergtk_cell_renderer_text_new (const guint n_lines) |
Create a new erGtkCellRendererText object. | |
GType | ergtk_cell_renderer_text_get_type (void) |
Returns the GObject type of an erGtkCellRendererText. |
#define ERGTK_CELL_RENDERER_TEXT | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_CAST((obj), ERGTK_CELL_RENDERER_TEXT_TYPE, erGtkCellRendererText)) |
Definition at line 54 of file ergtkcellrenderertext.h.
#define ERGTK_CELL_RENDERER_TEXT_CLASS | ( | klass | ) | (G_TYPE_CHECK_CLASS_CAST((klass), ERGTK_CELL_RENDERER_TEXT_TYPE, erGtkCellRendererTextClass)) |
Definition at line 57 of file ergtkcellrenderertext.h.
#define ERGTK_CELL_RENDERER_TEXT_GET_CLASS | ( | obj | ) | (G_TYPE_INSTANCE_GET_CLASS((obj), ERGTK_CELL_RENDERER_TEXT_TYPE, erGtkCellRendererTextClass)) |
Definition at line 58 of file ergtkcellrenderertext.h.
#define ERGTK_CELL_RENDERER_TEXT_GET_PRIVATE | ( | obj | ) | (G_TYPE_INSTANCE_GET_PRIVATE ((obj), ERGTK_CELL_RENDERER_TEXT_TYPE, erGtkCellRendererTextPrivate)) |
Definition at line 61 of file ergtkcellrenderertext.h.
Referenced by ergtk_cell_renderer_text_finalize(), ergtk_cell_renderer_text_init(), ergtk_cell_renderer_text_new(), get_property_impl(), render_impl(), and set_property_impl().
#define ERGTK_CELL_RENDERER_TEXT_MAX_LINES 2 |
Definition at line 84 of file ergtkcellrenderertext.h.
Referenced by ergtk_cell_renderer_text_class_init(), ergtk_cell_renderer_text_finalize(), ergtk_cell_renderer_text_init(), ergtk_cell_renderer_text_new(), get_property_impl(), and set_property_impl().
#define ERGTK_CELL_RENDERER_TEXT_TYPE (ergtk_cell_renderer_text_get_type()) |
File Name : ergtkcellrenderertext.h
Description: The erGtkCellRendererText object is a GtkCellRendererText that can display multiple text line in a single cell. It also can draw a border around the entire treeview entry to which it belongs. Copyright (C) 2009 iRex Technologies B.V. All rights reserved.
Definition at line 53 of file ergtkcellrenderertext.h.
Referenced by ergtk_cell_renderer_text_new().
#define IS_ERGTK_CELL_RENDERER_TEXT | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_TYPE((obj), ERGTK_CELL_RENDERER_TEXT_TYPE)) |
Definition at line 55 of file ergtkcellrenderertext.h.
Referenced by ergtk_cell_renderer_text_finalize(), ergtk_cell_renderer_text_init(), get_property_impl(), render_impl(), and set_property_impl().
#define ISGTK_CELL_RENDERER_TEXT_CLASS | ( | klass | ) | (G_TYPE_CHECK_CLASS_TYPE((klass), ERGTK_CELL_RENDERER_TEXT_TYPE)) |
Definition at line 59 of file ergtkcellrenderertext.h.
typedef struct _erGtkCellRendererText erGtkCellRendererText |
Definition at line 76 of file ergtkcellrenderertext.h.
typedef struct _erGtkCellRendererTextClass erGtkCellRendererTextClass |
Definition at line 77 of file ergtkcellrenderertext.h.
GType ergtk_cell_renderer_text_get_type | ( | void | ) |
Returns the GObject type of an erGtkCellRendererText.
---------------------------------------------------------------------------
Name : ergtk_cell_renderer_text_get_type
-- |
--------------------------------------------------------------------------
Definition at line 137 of file ergtkcellrenderertext.c.
References ergtk_cell_renderer_text_class_init(), and ergtk_cell_renderer_text_init().
00138 { 00139 static GType class_type = 0; 00140 00141 if (class_type == 0) 00142 { 00143 static const GTypeInfo class_info = 00144 { 00145 sizeof(erGtkCellRendererTextClass), // class_size 00146 NULL, // base_init 00147 NULL, // base_finalize 00148 (GClassInitFunc) ergtk_cell_renderer_text_class_init, // class_init 00149 NULL, // class_finalize 00150 NULL, // class_data 00151 sizeof(erGtkCellRendererText), // instance_size 00152 0, // n_preallocs 00153 (GInstanceInitFunc) ergtk_cell_renderer_text_init, // instance_init 00154 NULL // value_table 00155 }; 00156 00157 class_type = g_type_register_static( GTK_TYPE_CELL_RENDERER_TEXT, // parent_type 00158 "erGtkCellRendererText", // type_name 00159 &class_info, // info 00160 0 ); // flags 00161 } 00162 00163 return class_type; 00164 }
GtkCellRenderer* ergtk_cell_renderer_text_new | ( | const guint | n_lines | ) |
Create a new erGtkCellRendererText object.
---------------------------------------------------------------------------
Name : ergtk_cell_renderer_text_new
[in] | n_lines | - the number of text lines to display |
--------------------------------------------------------------------------
Definition at line 292 of file ergtkcellrenderertext.c.
References ERGTK_CELL_RENDERER_TEXT_GET_PRIVATE, ERGTK_CELL_RENDERER_TEXT_MAX_LINES, ERGTK_CELL_RENDERER_TEXT_TYPE, and erGtkCellRendererTextPrivate::n_lines.
Referenced by create_back_listview(), create_contentview(), and create_settingsview().
00293 { 00294 erGtkCellRendererText *thiz = (erGtkCellRendererText*) g_object_new(ERGTK_CELL_RENDERER_TEXT_TYPE, NULL); 00295 erGtkCellRendererTextPrivate *priv = ERGTK_CELL_RENDERER_TEXT_GET_PRIVATE(thiz); 00296 00297 priv->n_lines = MIN( n_lines, ERGTK_CELL_RENDERER_TEXT_MAX_LINES ); 00298 00299 return (GtkCellRenderer*) thiz; 00300 }