Gtk-- Reference: Gtk::Label

Class Index | Cross Index | Namespace Index

# Class Gtk::Label

Text string widget.
Contained in: Gtk
Derived from: Gtk::Misc
Derived by: Gtk::AccelLabel Gtk::TipsQuery

#include <gtk--/label.h>

### public function member index:
``explicit`` | `Label` | `(`const` `nstring`& `label` = 0, `gfloat` `x`=0.5, `gfloat` `y`=0.5)`;
``string`` | `get` | `() `const``;
``string`` | `get_text` | `() `const``;
``GtkLabel`*` | `gtkobj` | `()`;
``const` `GtkLabel`*` | `gtkobj` | `() `const``;
``static` `bool`` | `isA` | `(`Object`* `object`)`;
``guint`` | `parse_uline` | `(`const` `string`& `str`)`;
``void`` | `set` | `(`const` `string`& `str`)`;
``void`` | `set_justify` | `(`GtkJustification` `jtype`)`;
``void`` | `set_line_wrap` | `(`bool` `wrap`)`;
``void`` | `set_pattern` | `(`const` `nstring`& `pattern`)`;
``void`` | `set_text` | `(`const` `string`& `str`)`;
``virtual`` | `~Label` | `()`;

## Description:

A simple setable widget for holding a string.

## Function Member Descriptions:

Gtk::Label::get - Return the current label text.

``string`` `get``() `const``;
Gtk::Label::get_text - Return the current label text.

``string`` `get_text``() `const``;
Gtk::Label::gtkobj - Returns the underlaying gtk+ object.

``GtkLabel`*` `gtkobj``()`;
Gtk::Label::isA - Returns true if object is this type.

``static` `bool`` `isA``(`Object`* `object`)`;
Gtk::Label::parse_uline - (Gtk 1.1)

``guint`` `parse_uline``(`const` `string`& `str`)`;
Gtk::Label::set - Set the label text to match `str`.

``void`` `set``(`const` `string`& `str`)`;

> Text can not be NULL.

Gtk::Label::set_justify - Sets the justification for multiple lines.

``void`` `set_justify``(`GtkJustification` `jtype`)`;
Gtk::Label::set_line_wrap - (Gtk 1.1)

``void`` `set_line_wrap``(`bool` `wrap`)`;
Gtk::Label::set_pattern - (Gtk 1.1)

``void`` `set_pattern``(`const` `nstring`& `pattern`)`;
Gtk::Label::set_text - Alias for `set`

``void`` `set_text``(`const` `string`& `str`)`;