Merge pull request #6 from NoryiE/samkist-deprecate-isMoveable-and-setMoveable

deprecated isMoveable and setMoveable
This commit is contained in:
Robert Jelic
2022-05-19 20:01:17 +02:00
committed by GitHub

View File

@@ -78,12 +78,15 @@ local function Frame(name, parent)
return false
end
---@class Frame
object = {
barActive = false,
barBackground = colors.gray,
barTextcolor = colors.black,
barText = "New Frame",
barTextAlign = "left",
isMovable = false,
---@deprecated deprecated in favor of Frame#isMovable
isMoveable = false,
getType = function(self)
@@ -149,13 +152,19 @@ local function Frame(name, parent)
return self
end;
setMovable = function(self, movable)
self.isMovable = movable or not self.isMovable
self:setVisualChanged()
return self;
end;
---@deprecated deprecated in favor of @see Frame#setMovable
setMoveable = function(self, moveable)
self.isMoveable = moveable or not self.isMoveable
self:setVisualChanged()
return self;
end;
showBar = function(self, showIt)
self.barActive = showIt or not self.barActive
self:setVisualChanged()