Index

Package: Cell_Renderer_Text

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

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

Ancestors:

Immediate Children:

Primitive operations:

Glib.Object.Deallocate (Inherited)
Glib.Object.Get_Type (Inherited)
Glib.Object.Notify (Inherited)
Glib.Object.Ref (Inherited)
Glib.Object.Ref_Sink (Inherited)
Glib.Object.Unref (Inherited)
Gtk.Cell_Renderer.Activate (Inherited)
Gtk.Cell_Renderer.Get_Fixed_Size (Inherited)
Gtk.Cell_Renderer.Get_Size (Inherited)
Gtk.Cell_Renderer.Render (Inherited)
Gtk.Cell_Renderer.Set_Fixed_Size (Inherited)
Gtk.Cell_Renderer.Start_Editing (Inherited)
Set_Fixed_Height_From_Font

Types

Gtk_Cell_Renderer_Text

type Gtk_Cell_Renderer_Text is
     access all Gtk_Cell_Renderer_Text_Record'Class;

Constants & Global variables

Signal_Edited (Glib.Signal_Name)

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

Background_Property (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 (Glib.Properties.Property_Boolean)

Editable_Property              : constant Glib.Properties.Property_Boolean;
Background_Gdk_Property : constant Glib.Properties.Property_Boxed;

Family_Property (Glib.Properties.Property_String)

Family_Property                : constant Glib.Properties.Property_String;
Ellipsize_Property : constant Glib.Properties.Property_Enum;

Foreground_Property (Glib.Properties.Property_String)

Foreground_Property            : constant Glib.Properties.Property_String;
Font_Desc_Property : constant Glib.Properties.Property_Boxed;

Foreground_Gdk_Property (Gdk.Color.Property_Gdk_Color)

Foreground_Gdk_Property        : constant Gdk.Color.Property_Gdk_Color;

Single_Paragraph_Mode_Property (Glib.Properties.Property_Boolean)

Single_Paragraph_Mode_Property : constant Glib.Properties.Property_Boolean;

Size_Points_Property (Glib.Properties.Property_Double)

Size_Points_Property           : constant Glib.Properties.Property_Double;
Stretch_Property : constant Glib.Properties.Property_Enum;

Strikethrough_Property (Glib.Properties.Property_Boolean)

Strikethrough_Property         : constant Glib.Properties.Property_Boolean;
Stretch_Property : constant Glib.Properties.Property_Enum;

Weight_Property (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 (Glib.Properties.Property_Int)

Width_Chars_Property           : constant Glib.Properties.Property_Int;

Wrap_Width_Property (Glib.Properties.Property_Int)

Wrap_Width_Property            : constant Glib.Properties.Property_Int;

Subprograms & Entries

Gtk_New

procedure Gtk_New 
(Widget: out Gtk_Cell_Renderer_Text);

Initialize

procedure Initialize 
(Widget: access Gtk_Cell_Renderer_Text_Record'Class);
Creates or initializes a new renderer

Get_Type

function Get_Type return Gtk.Gtk_Type;
Return the internal value associated with this widget.

Set_Fixed_Height_From_Font

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.