class Interphase::Fixed

A container in which items can be placed in a specific x/y location.

Public Class Methods

new(**options, &block) click to toggle source

Construct a new fixed container.

Calls superclass method Interphase::Widget::new
# File lib/interphase/widgets/fixed.rb, line 9
def initialize(**options, &block)
  super(Gtk::Fixed.new, **options, &block)
end

Public Instance Methods

add(child, x_pos, y_pos, &block) click to toggle source

Add a child widget to this Fixed at a location.

child

The new child widget.

x_pos

The x position.

y_pos

The y position.

Calls superclass method Interphase::Container#add
# File lib/interphase/widgets/fixed.rb, line 17
def add(child, x_pos, y_pos, &block)
  gtk_instance.put(child.gtk_instance, x_pos, y_pos)

  super(child, false, &block)
end