class Iup::ProgressBar
A progress bar control, showing a percent-complete value.
Attributes¶ ↑
- dashed
-
Changes style of progress bar to a dashed pattern, as 'yes' / 'no'.
- expand
-
Allows bar to fill available space in indicated direction. Values 'no' / 'horizontal' / 'vertical' / 'yes'.
- marquee
-
Displays an undefined state if set. Values 'yes' / 'no'.
- max
-
maximum value, default 1.
- min
-
minimum value, default 0.
- orientation
-
'horizontal' / 'vertical'.
- position
-
read-only returns position in pixels within client window as “x,y”.
- rastersize
-
Size of the widget, in pixels, value as “widthxheight”.
- screenposition
-
read-only returns position in pixels on screen as “x,y”.
- tip
-
Tooltip string.
- value
-
number between
min
andmax
, for current position.
Public Class Methods
new(&block)
click to toggle source
Creates an instance of a progress bar.
- block
-
optional block to set up the widget's appearance.
# File lib/wrapped/progressbar.rb, line 26 def initialize &block @handle = IupLib.IupProgressBar # run any provided block on instance, to set up further attributes self.instance_eval &block if block_given? end