
$label=Paw::Label::new($text, [$color], [$name]);
Beispiel
$label=Paw::Label::new(text=>"Text", color=>3, name=>"Linux_Label");
Parameter
text => Text des Labels
color => Das Farbpaar (colorpair) muss mit
Curses::init_pair(pair_nr, COLOR_fg, COLOR_bg)
erzeugt werden[optional]
name => Name des Fensters [optional]
Ändert den Text des Labels auf den String in $text.
Beispiel
$label->set_text("changed label text");
Gibt den Text des Labels zurueck.
Beispiel
$text=$label->get_text();
the widget moves to the new absolute screen position. if you set only one of the two parameters, the other one keeps the old value.
Example
$label->abs_move_widget( new_x=>5 ); #y-pos is the same
returns an array of two values, the x-position and the y-position of the widget.
Example
($xpos,$ypos)=$label->get_widget_pos(); #y-pos is the same
Set a new color_pair for the widget.
Example
$label->set_color(3);
Das Widget verschiebt sich auf die neue absolute Schirm Position. Wird nur einer der Parameter angegeben, so behaelt der andere seinen Wert bei.
Beispiel
$label->abs_move_widget( new_x=>5 ); #y-pos bleibt wie sie ist
returns an array of two values, the x-position and the y-position of the widget. Gibt ein Array mit den beiden Wertde (x-Position, y-Position) zurueck.
Beispiel
($xpos,$ypos)=$label->get_widget_pos();
Setzt ein neues color_pair.
Beispiel
$label->set_color(3);
aktiviert den Rahmen der Box. Optional auch mit Schatten.
Beispiel
$box->set_border("shade"); or $win->set_border();