Webhosting and cheap domain registration service
  

 Home

GTK Classes
Prev GtkLabel Next

GtkLabel

Widget that displays a small amount of text.

Object Hierarchy

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

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*


Prev Home Next
GtkItemFactory::popup Up GtkLabel Constructor

 

  

Network sites:

Cheap domain registrar's cheap domain registration service

$8.95 domain registration : Buy domain name or register domain name 

 
 
Quotes:
Men never do evil so cheerfully and so completely as when they do so from religious conviction.All the good maxims have been written. It only remains to put them into practice.  
 
 

Disclaimer: This documentation is provided only for the benefits of our webhosting customers.
For authoritative source of the documentation, please refer to http://gtk.php.net/docs.php