Class: AnimatedImageLabel

Inherits:
AnimatedTextLabel show all
Defined in:
sample/demos-jp/anilabel.rb,
sample/demos-en/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.



85
86
87
88
89
90
91
92
93
94
95
96
# File 'sample/demos-jp/anilabel.rb', line 85

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



97
98
99
# File 'sample/demos-jp/anilabel.rb', line 97

def destroy_image
  @destroy_image
end