Class: Core::GUI::Slider

Inherits:
Element show all
Defined in:
lib/gui/slider.rb

Instance Attribute Summary collapse

Attributes inherited from Element

#h, #w, #x, #xoff, #y, #yoff, #zoff

Instance Method Summary collapse

Methods inherited from Element

#draw, #remove?, #update

Constructor Details

#initialize(x, y, w, h) ⇒ Slider

Returns a new instance of Slider.



5
6
7
8
# File 'lib/gui/slider.rb', line 5

def initialize(x, y, w, h)
  super
  @value = 0
end

Instance Attribute Details

#valueObject

Returns the value of attribute value.



4
5
6
# File 'lib/gui/slider.rb', line 4

def value
  @value
end