This commit is contained in:
BeniS
2013-02-01 14:21:20 +13:00
parent e7012031eb
commit 469df27d9b
2 changed files with 24 additions and 4 deletions

View File

@@ -118,6 +118,10 @@ function UISpinBox:setValue(value)
signalcall(self.onValueChange, self, value)
end
function UISpinBox:getValue()
return self.value
end
function UISpinBox:setMinimum(minimum)
minimum = minimum or -9223372036854775808
self.minimum = minimum
@@ -129,6 +133,10 @@ function UISpinBox:setMinimum(minimum)
end
end
function UISpinBox:getMinimum()
return self.minimum
end
function UISpinBox:setMaximum(maximum)
maximum = maximum or 9223372036854775807
self.maximum = maximum
@@ -137,10 +145,10 @@ function UISpinBox:setMaximum(maximum)
end
end
function UISpinBox:getMaximum()
return self.maximum
end
function UISpinBox:setStep(step)
self.step = step or 1
end
function UISpinBox:getValue()
return self.value
end