Class: Element

Inherits:
Object
  • Object
show all
Defined in:
lib/akane_sound/class.element.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeElement

Returns a new instance of Element.



4
5
6
7
# File 'lib/akane_sound/class.element.rb', line 4

def initialize
  @txt = nil
  @dur = nil
end

Instance Attribute Details

#bg_rectObject

Returns the value of attribute bg_rect.



2
3
4
# File 'lib/akane_sound/class.element.rb', line 2

def bg_rect
  @bg_rect
end

#durObject

Returns the value of attribute dur.



2
3
4
# File 'lib/akane_sound/class.element.rb', line 2

def dur
  @dur
end

#dur_dstObject

Returns the value of attribute dur_dst.



2
3
4
# File 'lib/akane_sound/class.element.rb', line 2

def dur_dst
  @dur_dst
end

#txtObject

Returns the value of attribute txt.



2
3
4
# File 'lib/akane_sound/class.element.rb', line 2

def txt
  @txt
end

#txt_bldObject

Returns the value of attribute txt_bld.



2
3
4
# File 'lib/akane_sound/class.element.rb', line 2

def txt_bld
  @txt_bld
end

#txt_dstObject

Returns the value of attribute txt_dst.



2
3
4
# File 'lib/akane_sound/class.element.rb', line 2

def txt_dst
  @txt_dst
end

#txt_selObject

Returns the value of attribute txt_sel.



2
3
4
# File 'lib/akane_sound/class.element.rb', line 2

def txt_sel
  @txt_sel
end

#txt_sel_bldObject

Returns the value of attribute txt_sel_bld.



2
3
4
# File 'lib/akane_sound/class.element.rb', line 2

def txt_sel_bld
  @txt_sel_bld
end

#txt_srcObject

Returns the value of attribute txt_src.



2
3
4
# File 'lib/akane_sound/class.element.rb', line 2

def txt_src
  @txt_src
end

Instance Method Details

#destroyObject



9
10
11
12
# File 'lib/akane_sound/class.element.rb', line 9

def destroy
  @txt.destroy if @txt
  @dur.destroy if @dur
end