Add frame:SetMaxSize and frame:GetMaxSize

This commit is contained in:
Kenny Shields 2014-09-13 11:57:21 -04:00
parent 078588cc0f
commit 40c65f1b8f

View File

@ -1105,6 +1105,28 @@ function newobject:GetMinSize()
end
--[[---------------------------------------------------------
- func: SetMaxSize(width, height)
- desc: sets the object's maximum size
--]]---------------------------------------------------------
function newobject:SetMaxSize(width, height)
self.maxwidth = width
self.maxheight = height
return self
end
--[[---------------------------------------------------------
- func: GetMaxSize()
- desc: gets the object's maximum size
--]]---------------------------------------------------------
function newobject:GetMaxSize()
return self.maxwidth, self.maxheight
end
--[[---------------------------------------------------------
- func: SetAlwaysOnTop(bool)
- desc: sets whether or not a frame should always be