Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API Frame SetClampRectInsets

Last wiki revision 2023-08-19

Controls how much of the frame may be moved off-screen. Frame:SetClampRectInsets(left, right, top, bottom)

  • left: - 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: - 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: - 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: - 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.
  • Requires.

The following code creates a draggable frame that can be moved 42 size units off any edge of the screen, but can never be entirely off-screen.

Source

https://warcraft.wiki.gg/wiki/API_Frame_SetClampRectInsets · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.