Frame:GetClampRectInsets

From Warcraft Wiki
Jump to navigation Jump to search

Returns the frame's clamp rectangle offsets.

left, right, top, bottom = Frame:GetClampRectInsets()

Returns

left
number : uiUnit - Left clamp region offset. Controls collision with the left edge of the screen, positive values allow the frame to be moved off-screen, negative values enforce minimum distance to the edge.
right
number : uiUnit - Right clamp region offset. Controls collision with the right edge of the screen, negative values allow the frame to be moved off-screen, positive values enforce minimum distance to the edge.
top
number : uiUnit - Top clamp region offset. Controls collision with the top edge of the screen, negative values allow the frame to be moved off-screen, positive values enforce minimum distance to the edge.
bottom
number : uiUnit - Bottom clamp region offset. Controls collision with the bottom edge of the screen, positive values allow the frame to be moved off-screen, negative values enforce minimum distance to the edge.