Class: Gdk::Texture

Inherits:
Object
  • Object
show all
Defined in:
lib/gdk4/texture.rb

Class Method Summary collapse

Class Method Details

.try_convert(value) ⇒ Object



20
21
22
23
24
25
26
27
# File 'lib/gdk4/texture.rb', line 20

def try_convert(value)
  case value
  when GdkPixbuf::Pixbuf
    new(value)
  else
    nil
  end
end