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.



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

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



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

def destroy_image
  @destroy_image
end