Toc Gallery Index Tree Gtk.Cell_Renderer_Text

Hierarchy

Description

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.

Types

Subprograms

  • procedure Gtk_New (Widget : out Gtk_Cell_Renderer_Text);
    procedure Initialize (Widget : access Gtk_Cell_Renderer_Text_Record'Class);
    Creates or initializes a new renderer
  • function Get_Type return Gtk.Gtk_Type;
    Return the internal value associated with this widget.
  • 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.

Signals

  • edited
    procedure Handler (Widget : access Gtk_Cell_Renderer_Text_Record'Class; Path : UTF8_String; New_Text : UTF8_String);
    Called when the text has been edited interactively . Note that you also need to set the attribute "editable" for users to be able to interactively edit the cell. If you want to take into account the change, you need to change the value in the model appropriately, for instance through a call to Set_Value

Properties

  • Attributes_Property
    Boxed
    A list of style attributes to apply to the text of the renderer
  • Background_Gdk_Property
    Boxed
    Background color as a GdkColor
  • Background_Property
    String
    Background color as a string
  • Editable_Property
    Boolean
    Whether the text can be modified by the user
  • Ellipsize_Property
    Enum
    The preferred place to ellipsize the string,
  • Family_Property
    String
    Name of the font family, e.g. Sans, Helvetica, Times, Monospace
  • Font_Desc_Property
    Boxed
    Font description as a PangoFontDescription struct
  • Font_Property
    String
    Font description as a string
  • Foreground_Gdk_Property
    Boxed
    Foreground color as a GdkColor
  • Foreground_Property
    String
    Foreground color as a string
  • Language_Property
    String
    The language this text is in, as an ISO code.
  • Markup_Property
    String
    Marked up text to render
  • Rise_Property
    Int
    Offset of text above the baseline
  • Scale_Property
    Double
    Font scaling factor
  • Single_Paragraph_Mode_Property
    Boolean
    Whether or not to keep all text in a single paragraph
  • Size_Points_Property
    Double
    Font size in points
  • Size_Property
    Int
    Font size
  • Stretch_Property
    Enum
    Font stretch
  • Strikethrough_Property
    Boolean
    Whether to strike through the text
  • Style_Property
    Enum
    Font style
  • Text_Property
    String
    Text to render
  • Underline_Property
    Enum
    Style of underline for this text
  • Variant_Property
    Enum
    Font variant
  • Weight_Property
    Int
    Font weight
  • Width_Chars_Property
    Int
    The desired width of the label, in characters
  • Wrap_Mode_Property
    Enum
    How to break the string into multiple lines,
  • Wrap_Width_Property
    Int
    The width at which the text is wrapped

Alphabetical Index