class Iup::ScrollBox
A container holding a single child widget, enabling that child widget to be scrolled.
Example
Wrapping a matrix element in a scroll box before showing on a dialog:
Iup::Dialog.new( Iup::ScrollBox.new(matrix) ).map
Attributes
Returns current offset of box in its client as “widthxheight”.
Returns current size of box as “widthxheight”.
Public Class Methods
Source
# File lib/wrapped/scrollbox.rb, line 21 def initialize widget @handle = IupLib.IupScrollBox(widget.handle) # run any provided block on instance, to set up further attributes yield self if block_given? end
Creates a new instance of the container. If a block is given, the new instance is yielded to it.
-
widget- the child widget to display.