mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-26 05:14:21 +00:00
Add frame:SetMinSize and frame:GetMinSize
This commit is contained in:
parent
b30b38f67b
commit
078588cc0f
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user