From 0960a2a08db290362032e9c05398e9fc5c903b06 Mon Sep 17 00:00:00 2001 From: Kenny Shields Date: Tue, 7 Jan 2014 19:33:30 -0500 Subject: [PATCH] Add frame:SetResizable and frame:GetResizable --- objects/frame.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/objects/frame.lua b/objects/frame.lua index 9eab5b7..f14f160 100644 --- a/objects/frame.lua +++ b/objects/frame.lua @@ -945,4 +945,24 @@ function newobject:GetDockZoneSize() return self.dockzonesize +end + +--[[--------------------------------------------------------- + - func: SetResizable(bool) + - desc: sets whether or not the object can be resized +--]]--------------------------------------------------------- +function newobject:SetResizable(bool) + + self.canresize = bool + +end + +--[[--------------------------------------------------------- + - func: GetResizable() + - desc: gets whether or not the object can be resized +--]]--------------------------------------------------------- +function newobject:GetResizable() + + return self.canresize + end \ No newline at end of file