Gtk.Cell_Renderer_Text

Entities

Tagged Types

Access Types

Constants

Subprograms

Description

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.

Align_Set_Property

Align_Set_Property : constant Glib.Properties.Property_Boolean;

Alignment_Property

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.

Attributes_Property

Attributes_Property : constant Glib.Properties.Property_Object;

Type: Pango.Attributes.Pango_Attr_List

Background_Gdk_Property

Background_Gdk_Property : constant Gdk.Color.Property_Gdk_Color;

Type: Gdk.Color.Gdk_Color Background color as a Gdk.Color.Gdk_Color

Background_Property

Background_Property : constant Glib.Properties.Property_String;

Flags: write

Background_Rgba_Property

Background_Rgba_Property : constant Gdk.RGBA.Property_RGBA;

Type: Gdk.RGBA.Gdk_RGBA Background color as a Gdk.RGBA.Gdk_RGBA

Background_Set_Property

Background_Set_Property : constant Glib.Properties.Property_Boolean;

Cancel_On_Focus_Out_Property

Cancel_On_Focus_Out_Property : constant Glib.Properties.Property_Boolean;

Specifies whether or not to discard the edition when the Gtk.Cell_Renderer.Gtk_Cell_Renderer loses focus.

If this is set to TRUE (the default), then edition will be canceled if the focus leaves the tree.

Since 3.22

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);
Parameters
Self
Path
New_Text

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);
Parameters
Self
Path
New_Text

Editable_Property

Editable_Property : constant Glib.Properties.Property_Boolean;

Editable_Set_Property

Editable_Set_Property : constant Glib.Properties.Property_Boolean;

Ellipsize_Property

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

Ellipsize_Set_Property : constant Glib.Properties.Property_Boolean;

Family_Property

Family_Property : constant Glib.Properties.Property_String;

Family_Set_Property

Family_Set_Property : constant Glib.Properties.Property_Boolean;

Font_Desc_Property

Font_Desc_Property : constant Pango.Font.Property_Font_Description;

Type: Pango.Font.Pango_Font_Description

Font_Property

Font_Property : constant Glib.Properties.Property_String;

Foreground_Gdk_Property

Foreground_Gdk_Property : constant Gdk.Color.Property_Gdk_Color;

Type: Gdk.Color.Gdk_Color Foreground color as a Gdk.Color.Gdk_Color

Foreground_Property

Foreground_Property : constant Glib.Properties.Property_String;

Flags: write

Foreground_Rgba_Property

Foreground_Rgba_Property : constant Gdk.RGBA.Property_RGBA;

Type: Gdk.RGBA.Gdk_RGBA Foreground color as a Gdk.RGBA.Gdk_RGBA

Foreground_Set_Property

Foreground_Set_Property : constant Glib.Properties.Property_Boolean;

Get_Type

function Get_Type return Glib.GType
Return Value

Gtk_Cell_Renderer_Text

type Gtk_Cell_Renderer_Text is access all Gtk_Cell_Renderer_Text_Record'Class;

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

Return Value

Gtk_Cell_Renderer_Text_Record

type Gtk_Cell_Renderer_Text_Record is new Gtk_Cell_Renderer_Record with null record;

Gtk_New

procedure Gtk_New (Self : out 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 Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Self

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 Initialize does nothing if the object was already created with another call to Initialize* or G_New.

Parameters
Self

Language_Property

Language_Property : constant Glib.Properties.Property_String;

Language_Set_Property

Language_Set_Property : constant Glib.Properties.Property_Boolean;

Markup_Property

Markup_Property : constant Glib.Properties.Property_String;

Flags: write

Max_Width_Chars_Property

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.

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: -- @param Path the path identifying the edited cell -- @param New_Text the new text

Parameters
Self
Call
Slot
After

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)

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: -- @param Path the path identifying the edited cell -- @param New_Text the new text

Parameters
Self
Call
After

Placeholder_Text_Property

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

Rise_Property

Rise_Property : constant Glib.Properties.Property_Int;

Rise_Set_Property

Rise_Set_Property : constant Glib.Properties.Property_Boolean;

Scale_Property

Scale_Property : constant Glib.Properties.Property_Double;

Type: Gdouble

Scale_Set_Property

Scale_Set_Property : constant Glib.Properties.Property_Boolean;

Set_Fixed_Height_From_Font

procedure Set_Fixed_Height_From_Font
   (Self           : not null access Gtk_Cell_Renderer_Text_Record;
    Number_Of_Rows : Glib.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.

Parameters
Self
Number_Of_Rows

Number of rows of text each cell renderer is allocated, or -1

Signal_Edited

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

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: -- @param Path the path identifying the edited cell -- @param New_Text the new text

Single_Paragraph_Mode_Property

Single_Paragraph_Mode_Property : constant Glib.Properties.Property_Boolean;

Size_Points_Property

Size_Points_Property : constant Glib.Properties.Property_Double;

Type: Gdouble

Size_Property

Size_Property : constant Glib.Properties.Property_Int;

Size_Set_Property

Size_Set_Property : constant Glib.Properties.Property_Boolean;

Stretch_Property

Stretch_Property : constant Pango.Enums.Property_Stretch;

Type: Pango.Enums.Stretch

Stretch_Set_Property

Stretch_Set_Property : constant Glib.Properties.Property_Boolean;

Strikethrough_Property

Strikethrough_Property : constant Glib.Properties.Property_Boolean;

Strikethrough_Set_Property

Strikethrough_Set_Property : constant Glib.Properties.Property_Boolean;

Style_Property

Style_Property : constant Pango.Enums.Property_Style;

Type: Pango.Enums.Style

Style_Set_Property

Style_Set_Property : constant Glib.Properties.Property_Boolean;

Text_Property

Text_Property : constant Glib.Properties.Property_String;

Underline_Property

Underline_Property : constant Pango.Enums.Property_Underline;

Type: Pango.Enums.Underline

Underline_Set_Property

Underline_Set_Property : constant Glib.Properties.Property_Boolean;

Variant_Property

Variant_Property : constant Pango.Enums.Property_Variant;

Type: Pango.Enums.Variant

Variant_Set_Property

Variant_Set_Property : constant Glib.Properties.Property_Boolean;

Weight_Property

Weight_Property : constant Pango.Enums.Property_Weight;

Type: Pango.Enums.Weight

Weight_Set_Property

Weight_Set_Property : constant Glib.Properties.Property_Boolean;

Width_Chars_Property

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

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

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.