ergtkcellrenderertext.h File Reference

#include <glib.h>
#include <gtk/gtk.h>
Include dependency graph for ergtkcellrenderertext.h:
This graph shows which files directly or indirectly include this file:

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 Documentation

#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))
#define ERGTK_CELL_RENDERER_TEXT_MAX_LINES   2
#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))
#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 Documentation

Definition at line 76 of file ergtkcellrenderertext.h.

Definition at line 77 of file ergtkcellrenderertext.h.


Function Documentation

GType ergtk_cell_renderer_text_get_type ( void   ) 

Returns the GObject type of an erGtkCellRendererText.

---------------------------------------------------------------------------

Name : ergtk_cell_renderer_text_get_type

Parameters:
-- 
Returns:
The GObject type of an erGtkCellRendererText

--------------------------------------------------------------------------

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 }

Here is the call graph for this function:

GtkCellRenderer* ergtk_cell_renderer_text_new ( const guint  n_lines  ) 

Create a new erGtkCellRendererText object.

---------------------------------------------------------------------------

Name : ergtk_cell_renderer_text_new

Parameters:
[in] n_lines - the number of text lines to display
Returns:
Pointer to the newly created object, or NULL

--------------------------------------------------------------------------

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 }

Here is the caller graph for this function:

Generated by  doxygen 1.6.2-20100208