mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-26 05:14:21 +00:00
Add frame min/max size methods
This commit is contained in:
parent
0960a2a08d
commit
2b1627d2a0
@ -2,6 +2,16 @@
|
||||
Version 0.9.7 - Alpha (Release Date TBD)
|
||||
================================================
|
||||
[ADDED] a new base method: textinput(text)
|
||||
[ADDED] a new frame method: SetResizable(bool)
|
||||
[ADDED] a new frame method: GetResizable()
|
||||
[ADDED] a new frame method: SetMinWidth(width)
|
||||
[ADDED] a new frame method: GetMinWidth()
|
||||
[ADDED] a new frame method: SetMaxWidth(width)
|
||||
[ADDED] a new frame method: GetMaxWidth()
|
||||
[ADDED] a new frame method: SetMinHeight(height)
|
||||
[ADDED] a new frame method: GetMinHeight()
|
||||
[ADDED] a new frame method: SetMaxHeight(height)
|
||||
[ADDED] a new frame method: GetMaxHeight()
|
||||
[ADDED] a new progressbar method: SetText(text)
|
||||
[ADDED] a new progressbar method: GetText()
|
||||
[ADDED] a new tabs method: SetButtonAreaX(x)
|
||||
|
@ -966,3 +966,83 @@ function newobject:GetResizable()
|
||||
return self.canresize
|
||||
|
||||
end
|
||||
|
||||
--[[---------------------------------------------------------
|
||||
- func: SetMinWidth(width)
|
||||
- desc: sets the object's minimum width
|
||||
--]]---------------------------------------------------------
|
||||
function newobject:SetMinWidth(width)
|
||||
|
||||
self.minwidth = width
|
||||
|
||||
end
|
||||
|
||||
--[[---------------------------------------------------------
|
||||
- func: GetMinWidth()
|
||||
- desc: gets the object's minimum width
|
||||
--]]---------------------------------------------------------
|
||||
function newobject:GetMinWidth()
|
||||
|
||||
return self.minwidth
|
||||
|
||||
end
|
||||
|
||||
--[[---------------------------------------------------------
|
||||
- func: SetMaxWidth(width)
|
||||
- desc: sets the object's maximum width
|
||||
--]]---------------------------------------------------------
|
||||
function newobject:SetMaxWidth(width)
|
||||
|
||||
self.maxwidth = width
|
||||
|
||||
end
|
||||
|
||||
--[[---------------------------------------------------------
|
||||
- func: GetMaxWidth()
|
||||
- desc: gets the object's maximum width
|
||||
--]]---------------------------------------------------------
|
||||
function newobject:GetMaxWidth()
|
||||
|
||||
return self.maxwidth
|
||||
|
||||
end
|
||||
|
||||
--[[---------------------------------------------------------
|
||||
- func: SetMinHeight(height)
|
||||
- desc: sets the object's minimum height
|
||||
--]]---------------------------------------------------------
|
||||
function newobject:SetMinHeight(height)
|
||||
|
||||
self.minheight = height
|
||||
|
||||
end
|
||||
|
||||
--[[---------------------------------------------------------
|
||||
- func: GetMinHeight()
|
||||
- desc: gets the object's minimum height
|
||||
--]]---------------------------------------------------------
|
||||
function newobject:GetMinHeight()
|
||||
|
||||
return self.minheight
|
||||
|
||||
end
|
||||
|
||||
--[[---------------------------------------------------------
|
||||
- func: SetMaxHeight(height)
|
||||
- desc: sets the object's maximum height
|
||||
--]]---------------------------------------------------------
|
||||
function newobject:SetMaxHeight(height)
|
||||
|
||||
self.maxheight = height
|
||||
|
||||
end
|
||||
|
||||
--[[---------------------------------------------------------
|
||||
- func: GetMaxHeight()
|
||||
- desc: gets the object's maximum height
|
||||
--]]---------------------------------------------------------
|
||||
function newobject:GetMaxHeight()
|
||||
|
||||
return self.maxheight
|
||||
|
||||
end
|
Loading…
Reference in New Issue
Block a user