class Gtk::Widget - gtk3-2.2.5 Documentation

# class Gtk::Widget

### Public Instance Methods

__set_allocation__(*args)
Alias for: set_allocation
set_allocation(*args) click to toggle source

    # File lib/gtk3/deprecated.rb, line 980
    def set_allocation(*args)
      case args.size
      when 1
        __set_allocation__(args.first)
      when 4
        warn "#{caller[0]}: '#{self.class}#set_allocation(x, y, width, height)' style has been deprecated. Use '#{self.class}#set_allocation(alloc)' style."
        __set_allocation__(Gtk::Allocation.new(*args))
      else
        raise ArgumentError.new("need 1 or 4 arguments.")
      end
    end

Also aliased as: __set_allocation__