A Gtk_Label is a light widget associated with some text you want to display on the screen. You can change the text dynamically if needed.
The text can be on multiple lines if you separate each line with the ASCII.LF character. However, this is not the recommended way to display long texts (see the Gtk_Text widget instead)
Widget Hierarchy |
---|
GObject (see section Package Glib.Object) Gtk_Object (see section Package Gtk.Object) \___ Gtk_Widget (see section Package Gtk.Widget) \___ Gtk_Misc (see section Package Gtk.Misc) \___ Gtk_Label (see section Package Gtk.Label) |
Subprograms |
---|
procedure Gtk_New (Label : out Gtk_Label; Str : UTF8_String := ""); | ||
Create a new label. | ||
procedure Gtk_New_With_Mnemonic (Label : out Gtk_Label; Str : UTF8_String); | ||
Create a new label containing the text in Str. | ||
procedure Initialize_With_Mnemonic (Label : access Gtk_Label_Record'Class; Str : UTF8_String); | ||
Internal initialization function.
| ||
function Get_Justify (Label : access Gtk_Label_Record) return Enums.Gtk_Justification; | ||
Returns the justification of the label. See Set_Justify.
| ||
function Get_Line_Wrap (Label : access Gtk_Label_Record) return Boolean; | ||
Returns True if the lines of the label are automatically wrapped.
| ||
function Get_Selectable (Label : access Gtk_Label_Record) return Boolean; | ||
Returns True if the user can copy text from the label.
| ||
function Get_Type return Glib.GType; | ||
Return the internal value associated with a Gtk_Label.
| ||
function Get_Use_Markup (Label : access Gtk_Label_Record) return Boolean; | ||
Return True if the label's text will be parsed for markup.
| ||
function Get_Use_Underline (Label : access Gtk_Label_Record) return Boolean; | ||
Return True whether an embedded underline in the label indicates | ||
procedure Set_Text (Label : access Gtk_Label_Record; Str : UTF8_String); | ||
Change the text of the label. | ||
function Get_Text (Label : access Gtk_Label_Record) return UTF8_String; | ||
Get the current value of the text displayed in the label.
| ||
procedure Set_Markup (Label : access Gtk_Label_Record; Str : UTF8_String); | ||
Parses Str which is marked up with the Pango text markup language, | ||
procedure Select_Region (Label : access Gtk_Label_Record; Start_Offset : Integer := -1; End_Offset : Integer := -1); | ||
Selects a range of characters in the label, if the label is | ||
procedure Set_Justify (Label : access Gtk_Label_Record; Jtype : Enums.Gtk_Justification); | ||
Set the justification for the label. | ||
procedure Set_Pattern (Label : access Gtk_Label_Record; Pattern : String); | ||
Change the underlines pattern. | ||
procedure Set_Selectable (Label : access Gtk_Label_Record; Selectable : Boolean); | ||
Selectable labels allow the user to select text from the label, | ||
procedure Set_Line_Wrap (Label : access Gtk_Label_Record; Wrap : Boolean); | ||
Toggle line wrapping within Label. | ||
procedure Set_Use_Markup (Label : access Gtk_Label_Record; Markup : Boolean); | ||
Sets whether the text of the label contains markup in Pango's | ||
procedure Set_Use_Underline (Label : access Gtk_Label_Record; Underline : Boolean); | ||
Sets whether the text of the label should be underlined. |