class Gdk::PixbufAnimationPaintable
Public Class Methods
Source
# File lib/rabbit/gtk.rb, line 38 def initialize(animation) super() @animation = animation @iter = @animation.get_iter end
Calls superclass method
Public Instance Methods
Source
# File lib/rabbit/gtk.rb, line 61 def virtual_do_get_intrinsic_height @animation.height end
Source
# File lib/rabbit/gtk.rb, line 57 def virtual_do_get_intrinsic_width @animation.width end
Source
# File lib/rabbit/gtk.rb, line 44 def virtual_do_snapshot(snapshot, width, height) @iter.advance texture = Texture.new(@iter.pixbuf) snapshot.append_texture(texture, [0, 0, width, height]) delay_time = @iter.delay_time if delay_time != -1 GLib::Timeout.add(@iter.delay_time) do invalidate_contents GLib::Source::REMOVE end end end