Add frame:SetMinSize and frame:GetMinSize

This commit is contained in:
Kenny Shields 2014-09-13 11:55:41 -04:00
parent b30b38f67b
commit 078588cc0f

View File

@ -1083,6 +1083,28 @@ function newobject:GetMaxHeight()
end end
--[[---------------------------------------------------------
- func: SetMinSize(width, height)
- desc: sets the object's minimum size
--]]---------------------------------------------------------
function newobject:SetMinSize(width, height)
self.minwidth = width
self.minheight = height
return self
end
--[[---------------------------------------------------------
- func: GetMinSize()
- desc: gets the object's minimum size
--]]---------------------------------------------------------
function newobject:GetMinSize()
return self.minwidth, self.maxwidth
end
--[[--------------------------------------------------------- --[[---------------------------------------------------------
- func: SetAlwaysOnTop(bool) - func: SetAlwaysOnTop(bool)
- desc: sets whether or not a frame should always be - desc: sets whether or not a frame should always be