## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

## Index

Package: Cell_Renderer_Text

- Goto spec source

# Description

    package Gtk.Cell_Renderer_Text is

A Gtk_Cell_Renderer_Text renders a given text in its cell, using the font, color and style information provided by its properties. The text will be ellipsized if it is too long and the ellipsize property allows it.

If the mode is CELL_RENDERER_MODE_EDITABLE, the Gtk_Cell_Renderer_Text allows to edit its text using an entry.

Binding from C File version 2.14

# Classes

### Gtk_Cell_Renderer_Text_Record

- Goto declaration in source
- Goto full declaration in source

    type Gtk_Cell_Renderer_Text_Record is
         new Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record with private;

#### Ancestors:

Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record
Glib.Object.GObject_Record

#### Immediate Children:

Gtk.Cell_Renderer_Accel.Gtk_Cell_Renderer_Accel_Record
Gtk.Cell_Renderer_Combo.Gtk_Cell_Renderer_Combo_Record
Gtk.Cell_Renderer_Spin.Gtk_Cell_Renderer_Spin_Record

#### Primitive operations:

Glib.Object.Deallocate

- To API doc
- To spec

(Inherited)
Glib.Object.Get_Type

- To API doc
- To spec

(Inherited)
Glib.Object.Notify

- To API doc
- To spec

(Inherited)
Glib.Object.Ref

- To API doc
- To spec

(Inherited)
Glib.Object.Ref_Sink

- To API doc
- To spec

(Inherited)
Glib.Object.Unref

- To API doc
- To spec

(Inherited)
Gtk.Cell_Renderer.Activate

- To API doc
- To spec

(Inherited)
Gtk.Cell_Renderer.Get_Fixed_Size

- To API doc
- To spec

(Inherited)
Gtk.Cell_Renderer.Get_Size

- To API doc
- To spec

(Inherited)
Gtk.Cell_Renderer.Render

- To API doc
- To spec

(Inherited)
Gtk.Cell_Renderer.Set_Fixed_Size

- To API doc
- To spec

(Inherited)
Gtk.Cell_Renderer.Start_Editing

- To API doc
- To spec

(Inherited)
Set_Fixed_Height_From_Font

- To API doc
- To spec

# Types

### Gtk_Cell_Renderer_Text

- Goto declaration in source

    type Gtk_Cell_Renderer_Text is
         access all Gtk_Cell_Renderer_Text_Record'Class;

# Constants & Global variables

### Signal_Edited

- Goto declaration in source

(Glib.Signal_Name)

    Signal_Edited : constant Glib.Signal_Name := "edited";

### Background_Property

- Goto declaration in source

(Glib.Properties.Property_String)

    Background_Property            : constant Glib.Properties.Property_String;

Attributes_Property : constant Glib.Properties.Property_Boxed; Alignment_Property : constant Glib.Properties.Property_Enum;

### Editable_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Editable_Property              : constant Glib.Properties.Property_Boolean;

Background_Gdk_Property : constant Glib.Properties.Property_Boxed;

### Family_Property

- Goto declaration in source

(Glib.Properties.Property_String)

    Family_Property                : constant Glib.Properties.Property_String;

Ellipsize_Property : constant Glib.Properties.Property_Enum;

### Font_Property

- Goto declaration in source

(Glib.Properties.Property_String)

    Font_Property                  : constant Glib.Properties.Property_String;

Font_Desc_Property : constant Glib.Properties.Property_Boxed;

### Foreground_Property

- Goto declaration in source

(Glib.Properties.Property_String)

    Foreground_Property            : constant Glib.Properties.Property_String;

Font_Desc_Property : constant Glib.Properties.Property_Boxed;

### Foreground_Gdk_Property

- Goto declaration in source

(Gdk.Color.Property_Gdk_Color)

    Foreground_Gdk_Property        : constant Gdk.Color.Property_Gdk_Color;

### Language_Property

- Goto declaration in source

(Glib.Properties.Property_String)

    Language_Property              : constant Glib.Properties.Property_String;

### Markup_Property

- Goto declaration in source

(Glib.Properties.Property_String)

    Markup_Property                : constant Glib.Properties.Property_String;

### Rise_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Rise_Property                  : constant Glib.Properties.Property_Int;

### Scale_Property

- Goto declaration in source

(Glib.Properties.Property_Double)

    Scale_Property                 : constant Glib.Properties.Property_Double;

### Single_Paragraph_Mode_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Single_Paragraph_Mode_Property : constant Glib.Properties.Property_Boolean;

### Size_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Size_Property                  : constant Glib.Properties.Property_Int;

### Size_Points_Property

- Goto declaration in source

(Glib.Properties.Property_Double)

    Size_Points_Property           : constant Glib.Properties.Property_Double;

Stretch_Property : constant Glib.Properties.Property_Enum;

### Strikethrough_Property

- Goto declaration in source

(Glib.Properties.Property_Boolean)

    Strikethrough_Property         : constant Glib.Properties.Property_Boolean;

Stretch_Property : constant Glib.Properties.Property_Enum;

### Text_Property

- Goto declaration in source

(Glib.Properties.Property_String)

    Text_Property                  : constant Glib.Properties.Property_String;

Style_Property : constant Glib.Properties.Property_Enum;

### Weight_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Weight_Property                : constant Glib.Properties.Property_Int;

Underline_Property : constant Glib.Properties.Property_Enum; Variant_Property : constant Glib.Properties.Property_Enum;

### Width_Chars_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Width_Chars_Property           : constant Glib.Properties.Property_Int;

### Wrap_Mode_Property

- Goto declaration in source

(Pango.Enums.Property_Wrap_Mode)

    Wrap_Mode_Property             : constant Pango.Enums.Property_Wrap_Mode;

### Wrap_Width_Property

- Goto declaration in source

(Glib.Properties.Property_Int)

    Wrap_Width_Property            : constant Glib.Properties.Property_Int;

# Subprograms & Entries

### Gtk_New

- Goto spec in source

    procedure Gtk_New (Widget: out Gtk_Cell_Renderer_Text);

### Initialize

- Goto spec in source

    procedure Initialize (Widget: access Gtk_Cell_Renderer_Text_Record'Class);

Creates or initializes a new renderer

### Get_Type

- Goto spec in source
- Goto body in source

    function Get_Type return Gtk.Gtk_Type;

Return the internal value associated with this widget.

### Set_Fixed_Height_From_Font

- Goto spec in source

    procedure Set_Fixed_Height_From_Font (Renderer: access Gtk_Cell_Renderer_Text_Record;Number_Of_Rows: Gint);

Sets the height of a renderer to explicitly be determined by the "font" and "y_pad" property set on it. Further changes in these properties do not affect the height, so they must be accompanied by a subsequent call to this function. Using this function is unflexible, and should really only be used if calculating the size of a cell is too slow (ie, a massive number of cells displayed). If number_of_rows is -1, then the fixed height is unset, and the height is determined by the properties again.