Index

Package: Cell_Renderer_Text

Description

package Gtk.Cell_Renderer_Text is

A Gtk.Cell_Renderer_Text.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 Gtk.Cell_Renderer_Text.Gtk_Cell_Renderer_Text:ellipsize property allows it.

If the Gtk.Cell_Renderer.Gtk_Cell_Renderer:mode is Gtk.Cell_Renderer.Cell_Renderer_Mode_Editable, the Gtk.Cell_Renderer_Text.Gtk_Cell_Renderer_Text allows to edit its text using an entry.

Classes

Gtk_Cell_Renderer_Text_Record

type Gtk_Cell_Renderer_Text_Record is new Gtk_Cell_Renderer_Record with null record;

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_Aligned_Area (Inherited)
Gtk.Cell_Renderer.Get_Alignment (Inherited)
Gtk.Cell_Renderer.Get_Fixed_Size (Inherited)
Gtk.Cell_Renderer.Get_Padding (Inherited)
Gtk.Cell_Renderer.Get_Preferred_Height (Inherited)
Gtk.Cell_Renderer.Get_Preferred_Height_For_Width (Inherited)
Gtk.Cell_Renderer.Get_Preferred_Size (Inherited)
Gtk.Cell_Renderer.Get_Preferred_Width (Inherited)
Gtk.Cell_Renderer.Get_Preferred_Width_For_Height (Inherited)
Gtk.Cell_Renderer.Get_Request_Mode (Inherited)
Gtk.Cell_Renderer.Get_Sensitive (Inherited)
Gtk.Cell_Renderer.Get_Size (Inherited)
Gtk.Cell_Renderer.Get_State (Inherited)
Gtk.Cell_Renderer.Get_Visible (Inherited)
Gtk.Cell_Renderer.Is_Activatable (Inherited)
Gtk.Cell_Renderer.On_Editing_Canceled (Inherited)
Gtk.Cell_Renderer.On_Editing_Canceled (Inherited)
Gtk.Cell_Renderer.On_Editing_Started (Inherited)
Gtk.Cell_Renderer.On_Editing_Started (Inherited)
Gtk.Cell_Renderer.Render (Inherited)
Gtk.Cell_Renderer.Set_Alignment (Inherited)
Gtk.Cell_Renderer.Set_Fixed_Size (Inherited)
Gtk.Cell_Renderer.Set_Padding (Inherited)
Gtk.Cell_Renderer.Set_Sensitive (Inherited)
Gtk.Cell_Renderer.Set_Visible (Inherited)
Gtk.Cell_Renderer.Start_Editing (Inherited)
Gtk.Cell_Renderer.Stop_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;

Cb_Gtk_Cell_Renderer_Text_UTF8_String_UTF8_String_Void

type Cb_Gtk_Cell_Renderer_Text_UTF8_String_UTF8_String_Void is not null access procedure
     (Self     : access Gtk_Cell_Renderer_Text_Record'Class;
      Path     : UTF8_String;
      New_Text : UTF8_String);

Cb_GObject_UTF8_String_UTF8_String_Void

type Cb_GObject_UTF8_String_UTF8_String_Void is not null access procedure
     (Self     : access Glib.Object.GObject_Record'Class;
      Path     : UTF8_String;
      New_Text : UTF8_String);

Constants & Global variables

Alignment_Property (Pango.Enums.Property_Alignment)

Alignment_Property : constant Pango.Enums.Property_Alignment;
Type: Pango.Enums.Alignment Specifies how to align the lines of text with respect to each other. Note that this property describes how to align the lines of text in case there are several of them. The "xalign" property of Gtk.Cell_Renderer.Gtk_Cell_Renderer, on the other hand, sets the horizontal alignment of the whole text.

Background_Property (Glib.Properties.Property_String)

Background_Property : constant Glib.Properties.Property_String;
Flags: write

Background_Gdk_Property (Gdk.Color.Property_Gdk_Color)

Background_Gdk_Property : constant Gdk.Color.Property_Gdk_Color;
Type: Gdk.Color.Gdk_Color Background color as a Gdk.Color.Gdk_Color

Background_Rgba_Property (Gdk.RGBA.Property_RGBA)

Background_Rgba_Property : constant Gdk.RGBA.Property_RGBA;
Type: Gdk.RGBA.Gdk_RGBA Background color as a Gdk.RGBA.Gdk_RGBA

Background_Set_Property (Glib.Properties.Property_Boolean)

Background_Set_Property : constant Glib.Properties.Property_Boolean;

Editable_Set_Property (Glib.Properties.Property_Boolean)

Editable_Set_Property : constant Glib.Properties.Property_Boolean;

Ellipsize_Property (Pango.Layout.Property_Pango_Ellipsize_Mode)

Ellipsize_Property : constant Pango.Layout.Property_Pango_Ellipsize_Mode;
Type: Pango.Layout.Pango_Ellipsize_Mode Specifies the preferred place to ellipsize the string, if the cell renderer does not have enough room to display the entire string. Setting it to Pango.Layout.Ellipsize_None turns off ellipsizing. See the wrap-width property for another way of making the text fit into a given width.

Ellipsize_Set_Property (Glib.Properties.Property_Boolean)

Ellipsize_Set_Property : constant Glib.Properties.Property_Boolean;

Foreground_Property (Glib.Properties.Property_String)

Foreground_Property : constant Glib.Properties.Property_String;
Flags: write

Foreground_Gdk_Property (Gdk.Color.Property_Gdk_Color)

Foreground_Gdk_Property : constant Gdk.Color.Property_Gdk_Color;
Type: Gdk.Color.Gdk_Color Foreground color as a Gdk.Color.Gdk_Color

Foreground_Rgba_Property (Gdk.RGBA.Property_RGBA)

Foreground_Rgba_Property : constant Gdk.RGBA.Property_RGBA;
Type: Gdk.RGBA.Gdk_RGBA Foreground color as a Gdk.RGBA.Gdk_RGBA

Foreground_Set_Property (Glib.Properties.Property_Boolean)

Foreground_Set_Property : constant Glib.Properties.Property_Boolean;

Language_Set_Property (Glib.Properties.Property_Boolean)

Language_Set_Property : constant Glib.Properties.Property_Boolean;

Markup_Property (Glib.Properties.Property_String)

Markup_Property : constant Glib.Properties.Property_String;
Flags: write

Max_Width_Chars_Property (Glib.Properties.Property_Int)

Max_Width_Chars_Property : constant Glib.Properties.Property_Int;
The desired maximum width of the cell, in characters. If this property is set to -1, the width will be calculated automatically. For cell renderers that ellipsize or wrap text; this property controls the maximum reported width of the cell. The cell should not receive any greater allocation unless it is set to expand in its Gtk.Cell_Layout.Gtk_Cell_Layout and all of the cell's siblings have received their natural width.

Placeholder_Text_Property (Glib.Properties.Property_String)

Placeholder_Text_Property : constant Glib.Properties.Property_String;
The text that will be displayed in the Gtk.Cell_Renderer.Gtk_Cell_Renderer if Gtk.Cell_Renderer_Text.Gtk_Cell_Renderer_Text:editable is True and the cell is empty. Since 3.6

Scale_Property (Glib.Properties.Property_Double)

Scale_Property : constant Glib.Properties.Property_Double;
Type: Gdouble

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;
Type: Gdouble

Stretch_Set_Property (Glib.Properties.Property_Boolean)

Stretch_Set_Property : constant Glib.Properties.Property_Boolean;

Strikethrough_Property (Glib.Properties.Property_Boolean)

Strikethrough_Property : constant Glib.Properties.Property_Boolean;

Strikethrough_Set_Property (Glib.Properties.Property_Boolean)

Strikethrough_Set_Property : constant Glib.Properties.Property_Boolean;

Underline_Set_Property (Glib.Properties.Property_Boolean)

Underline_Set_Property : constant Glib.Properties.Property_Boolean;

Variant_Set_Property (Glib.Properties.Property_Boolean)

Variant_Set_Property : constant Glib.Properties.Property_Boolean;

Width_Chars_Property (Glib.Properties.Property_Int)

Width_Chars_Property : constant Glib.Properties.Property_Int;
The desired width of the cell, in characters. If this property is set to -1, the width will be calculated automatically, otherwise the cell will request either 3 characters or the property value, whichever is greater.

Wrap_Mode_Property (Pango.Enums.Property_Wrap_Mode)

Wrap_Mode_Property : constant Pango.Enums.Property_Wrap_Mode;
Type: Pango.Enums.Wrap_Mode Specifies how to break the string into multiple lines, if the cell renderer does not have enough room to display the entire string. This property has no effect unless the wrap-width property is set.

Wrap_Width_Property (Glib.Properties.Property_Int)

Wrap_Width_Property : constant Glib.Properties.Property_Int;
Specifies the minimum width at which the text is wrapped. The wrap-mode property can be used to influence at what character positions the line breaks can be placed. Setting wrap-width to -1 turns wrapping off.

Signal_Edited (Glib.Signal_Name)

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

Subprograms & Entries

Gtk_New

procedure Gtk_New 
(Self: out Gtk_Cell_Renderer_Text);

Initialize

procedure Initialize 
(Self: not null access Gtk_Cell_Renderer_Text_Record'Class);
Creates a new Gtk.Cell_Renderer_Text.Gtk_Cell_Renderer_Text. Adjust how text is drawn using object properties. Object properties can be set globally (with g_object_set). Also, with Gtk.Tree_View_Column.Gtk_Tree_View_Column, you can bind a property to a value in a Gtk.Tree_Model.Gtk_Tree_Model. For example, you can bind the "text" property on the cell renderer to a string value in the model, thus rendering a different string in each row of the Gtk.Tree_View.Gtk_Tree_View

Gtk_Cell_Renderer_Text_New

function Gtk_Cell_Renderer_Text_New return Gtk_Cell_Renderer_Text;
Creates a new Gtk.Cell_Renderer_Text.Gtk_Cell_Renderer_Text. Adjust how text is drawn using object properties. Object properties can be set globally (with g_object_set). Also, with Gtk.Tree_View_Column.Gtk_Tree_View_Column, you can bind a property to a value in a Gtk.Tree_Model.Gtk_Tree_Model. For example, you can bind the "text" property on the cell renderer to a string value in the model, thus rendering a different string in each row of the Gtk.Tree_View.Gtk_Tree_View

Get_Type

function Get_Type return Glib.GType;

Set_Fixed_Height_From_Font

procedure Set_Fixed_Height_From_Font 
(Self: not null 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. "number_of_rows": Number of rows of text each cell renderer is allocated, or -1

On_Edited

procedure On_Edited 
(Self: not null access Gtk_Cell_Renderer_Text_Record;
Call: Cb_Gtk_Cell_Renderer_Text_UTF8_String_UTF8_String_Void;
After: Boolean := False);

On_Edited

procedure On_Edited 
(Self: not null access Gtk_Cell_Renderer_Text_Record;
Call: Cb_GObject_UTF8_String_UTF8_String_Void;
Slot: not null access Glib.Object.GObject_Record'Class;
After: Boolean := False);
This signal is emitted after Renderer has been edited. It is the responsibility of the application to update the model and store New_Text at the position indicated by Path. Callback parameters: -- "path": the path identifying the edited cell -- "new_text": the new text