Class: Gtk::IconTheme

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

Instance Method Summary collapse

Instance Method Details

#lookup_icon(icon, size, scale: 1, direction: :none, flags: nil) ⇒ Object



20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/gtk4/icon-theme.rb', line 20

def lookup_icon(icon, size, scale: 1, direction: :none, flags: nil)
  case icon
  when String, Symbol
    flags ||= 0
    lookup_icon_raw(icon.to_s, nil, size, scale, direction, flags)
  when Array
    icon, *fallbacks = *icon
    flags ||= 0
    lookup_icon_raw(icon.to_s, fallbacks, size, scale, direction, flags)
  else
    flags ||= 0
    lookup_by_gicon(icon, size, scale, direction, flags)
  end
end

#lookup_icon_rawObject



19
# File 'lib/gtk4/icon-theme.rb', line 19

alias_method :lookup_icon_raw, :lookup_icon