class Iup::Frame
A frame contains a child widget and displays it with a border. Optionally, the frame can have a text title.
Example
Example placing a text label on widgets placed into a HBox:
Iup::Frame.new(hbox) do |f| f.title = 'ALIGNMENT=ALEFT, GAP=10' end
Attributes
Returns current offset of frame in its client as “widthxheight”.
Returns current size of frame as “widthxheight”.
Allows frame to fill available space in indicated direction. Values ‘no’ / ‘horizontal’ / ‘vertical’ / ‘yes’.
returns position in pixels within client window as “x,y”.
Size of the frame, in pixels, value as “widthxheight”.
returns position in pixels on screen as “x,y”.
For frame with no title, gives a sunken appearance if set: values as ‘yes’ / ‘no’.
Text displayed as frame title.
Public Class Methods
Source
# File lib/wrapped/frame.rb, line 19 def initialize widget @handle = IupLib.IupFrame(widget.handle) # run any provided block on instance, to set up further attributes yield self if block_given? end
Creates an instance of the frame. If a block is given, the new instance is yielded to it.
-
widget- the child widget to display.