Class: Gtk::IconSize

Inherits:
Object
  • Object
show all
Extended by:
GLib::Deprecatable
Defined in:
lib/gtk3/icon-size.rb,
lib/gtk3/deprecated.rb

Class Method Summary collapse

Class Method Details

.lookup(size) ⇒ Object



21
22
23
24
25
26
27
28
29
# File 'lib/gtk3/icon-size.rb', line 21

def lookup(size)
  size = new(size) unless size.is_a?(self)
  valid, width, height = lookup_raw(size)
  if valid
    [width, height]
  else
    nil
  end
end

.lookup_rawObject



20
# File 'lib/gtk3/icon-size.rb', line 20

alias_method :lookup_raw, :lookup