index
gtk-- homepage



Description:
Gtk_Label

#include <gtk--/label.h>
Base classes: Gtk_Misc
Derived by: Gtk_AccelLabel Gtk_TipsQuery

Text string widget.
A simple setable widget for holding a string.



Properties:

NameTypeGetSetDescription
label string get(),get_text() set(),set_text() Labels text.
label_wc GdkWChar*     Label in wide characters. (not tested)
pattern string      
words GtkLabelWord*      
max_width guint:16      
jtype guint:2   set_justify() Specifies how label will behave with more than one line in it. If you're looking for changing label alignment, check Gtk_Misc::set_alignment().

Possible values: GTK_JUSTIFY_LEFT, GTK_JUSTIFY_RIGHT, GTK_JUSTIFY_CENTER, GTK_JUSTIFY_FILL

wrap gboolean    



Public member index:


Gtk_Label(const _gtk_string &label=0);
Gtk_Label(GtkLabel *castitem);
void set(const string &str);
Set the label text to match str.

void set_text(const string &str);
Alias for set()

string get()const;
Return the current label text.

string get_text()const;
Return the current label text.

void set_justify(GtkJustification jtype);
Sets the justification for multiple lines.

void set_pattern(const _gtk_string &pattern);
(Gtk 1.1)

void parse_uline(const string &str);
(Gtk 1.1)

void set_line_wrap(bool wrap);
(Gtk 1.1)

GtkLabel *gtkobj();
const GtkLabel *gtkobj()const;
static bool isGtkLabel(Gtk_Object *checkcast);
Protected member index:


virtual void *get_parent_class();
Private member index:


GtkType get_type();

Public member details:


set
void Gtk_Label::set(const string &str);

Set the label text to match str.
Text can not be NULL.


Protected member details:



Private member details:



Examples:





(pages generated by PERCEPS -script.)