class Iup::Label

A static control used to display some text or an image, or act as a separator.

Example

(1) label with text and setting font and colors:

Iup::Label.new("Iup Label Text") do |l|
  l.bgcolor = '255 255 0'
  l.fgcolor = '0 0 255'
  l.font = 'Courier, Normal 14'
  l.alignment = 'ACENTER'
 end

(2) label with image aligned to right

Iup::Label.new do |l|
  l.image = img_star
end

(3) label as a horizontal separator

Iup::Label.new do |l|
  l.separator = 'HORIZONTAL'
end