$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.
$label->set_text("changed label text");
Gibt den Text des Labels zurueck.
$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.
($xpos,$ypos)=$label->get_widget_pos(); #y-pos is the same
Set a new color_pair for the widget.
$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.
$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.
($xpos,$ypos)=$label->get_widget_pos();
Setzt ein neues color_pair.
aktiviert den Rahmen der Box. Optional auch mit Schatten.
$box->set_border("shade"); or $win->set_border();
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'Ändert'. Assuming CP1252
To install Paw, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Paw
CPAN shell
perl -MCPAN -e shell install Paw
For more information on module installation, please visit the detailed CPAN module installation guide.