class Iup::StretchBox
A stretchable container around one child widget.
Note: named IupSBox in Tecgrafâs documentation.
Also see: SplitBox
Attributes
returns current offset of box in its client as âwidthxheightâ.
returns current size of box as âwidthxheightâ.
Specify RGB values for stretch bar color, as âr g bâ.
Direction and position of the stretch bar. Values as âeastâ / âwestâ / ânorthâ / âsouthâ.
Allows container to fill available space in indicated direction, but only on the side away from the stretch bar. Values ânoâ / âhorizontalâ / âverticalâ / âyesâ.
returns position in pixels within client window as âx,yâ.
Size of the container, in pixels, value as âwidthxheightâ.
Grip appearance:
-
ânoâ - grip is colored using
colorsetting, -
âlinesâ - shows two parallel lines
Public Class Methods
Source
# File lib/wrapped/stretchbox.rb, line 16 def initialize widget @handle = IupLib.IupSbox(widget.handle) # run any provided block on instance, to set up further attributes yield self if block_given? end
Creates an instance of the stretch box. If a block is given, the new instance is yielded to it.
-
widget- the widget to contain