GtkLabel

GtkLabel

Widget that displays a small amount of text.

Object Hierarchy

GtkObject
`-- GtkWidget
       `-- GtkMisc
              `-- GtkLabel

Direct subclasses

Description

A very common use of GtkLabel is to display text that describes or makes some comment about the use of an adjacent widget. If you need to display a great deal of text, use GtkText instead.

Note that labels do not generate events. If you want to catch events (e.g. from a mouse click) you will need to put the label in a GtkEventBox.

See also: GtkEditable, GtkEventBox, GtkText.

Constructor

GtkLabel ([string label_text ]);
-- Creates a new label with the given text inside it. If no text is specified, an empty label is created.

Methods

set_text()
  Sets the label text.
set_justify()
  Sets label justification.
set_pattern()
  Underlines text in the label.
set_line_wrap()
  Toggles line wrapping.
get()
  Gets label text. *deprecated in GTK2*
parse_uline()
  Parses underscores into underlines. *deprecated in GTK2*

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.