Class: AnimatedImageLabel

Inherits:
AnimatedTextLabel show all
Defined in:
sample/demos-en/anilabel.rb,
sample/demos-jp/anilabel.rb

Overview

animated image

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from AnimatedTextLabel

#start, #stop

Constructor Details

#initialize(*args) ⇒ AnimatedImageLabel

Returns a new instance of AnimatedImageLabel.



82
83
84
85
86
87
88
89
90
91
92
93
# File 'sample/demos-en/anilabel.rb', line 82

def initialize(*args)
  super(*args)
  @destroy_image = false
  @btag.bind_append('Destroy'){
    if @destroy_image
      begin
        self.image.delete
      rescue
      end
    end
  }
end

Instance Attribute Details

#destroy_imageObject

Returns the value of attribute destroy_image



94
95
96
# File 'sample/demos-en/anilabel.rb', line 94

def destroy_image
  @destroy_image
end