class Adjustor

Attributes

num[RW]
origValue[RW]
slider[RW]

Public Class Methods

new(slider, num, origValue = 0) click to toggle source
# File examples/ruboids/ruboids/CameraDialog.rb, line 14
def initialize(slider, num, origValue = 0)
    @slider = slider
    @num = num
    @origValue = origValue
end

Public Instance Methods

reset() click to toggle source
# File examples/ruboids/ruboids/CameraDialog.rb, line 25
def reset
    set(@origValue)
    return @origValue
end
set(val) click to toggle source
# File examples/ruboids/ruboids/CameraDialog.rb, line 21
def set(val)
    setSlider(val)
    setNum(val)
end
setNum(val) click to toggle source
# File examples/ruboids/ruboids/CameraDialog.rb, line 20
def setNum(val); @num.setNum(val); end
setSlider(val) click to toggle source
# File examples/ruboids/ruboids/CameraDialog.rb, line 19
def setSlider(val); @slider.setValue(val); end