API GetUnscaledFrameRect

Extends to return position and size from the lower-left screen corner in any arbitrary coordinate system. left, bottom, width, height = GetUnscaledScaledRect(frame, scale)

Arguments

 * frame : Region - A region positioned somewhere on the screen
 * scale : Number - Size of the arbitrary coordinate system, divided into Region:GetScaledRect

Returns
The following returns only apply if the region has a defined position and size (nil otherwise).
 * left : Number - Distance between the region and left edge of the screen (negative values are beyond the screen edge)
 * bottom : Number - Distance between the region and bottom edge of the screen (negative values are beyond the screen edge)
 * width : Number - Width between the region's left and right edges
 * height : Number - Height between the region's bototm and top edges

Examples
The example below shows the difference of GetRect, GetScaledRect and GetUnscaledFrameRect using a tiny 1x1 box a short distance from the lower-left corner of the screen local myFrame = CreateFrame("Frame")    -- a frame is a type of region myFrame:SetScale(2)                     -- the frame's coordinate system is 2x larger myFrame:SetPoint("BOTTOMLEFT", 100, 100) myFrame:SetSize(1,1) print(myFrame:GetRect)                -- 100, 100, 1, 1 print(myFrame:GetScaledRect)          -- 200, 200, 2, 2 print(GetUnscaledFrameRect(myFrame, 4)) -- 50, 50, 0.5, 0.5