Rui::Widget::Label - the label widget
$label = $parent->Label(
value => 'Hello World',
image => Rui::Image->new(file => "pic.gif", size => [16, 16]),
hAlign => 'right',
);
the Rui::Widget::Base manpage
A label shows some text. You can add an image and set horizontal text
alignment.
- parameters
-
Setting - string to set as text of label
- description
-
Get/set label value.
- parameters
-
Setting - the Rui::Image manpage
- description
-
Get/set label image. Set image as undefined to remove.
- parameters
-
Setting - one of 3 values:
left
, center
, right
- description
-
Get/set the horizontal text alignment for the label text.