Wikia

WoWWiki

Changes: API Frame SetHitRectInsets

Edit

Back to page

m (catfix, Replaced: {{widgetmethod}} → {{widgetmethod}}<br>)
m (catfix, Replaced: {{widgetmethod}}<br> → {{widgetmethod}})
 
Line 1: Line 1:
{{widgetmethod}}<br> __NOTOC__
+
{{widgetmethod}} __NOTOC__
 
Modifies the size of the frame's hit rectangle - the area in which clicks are sent to the frame in question.
 
Modifies the size of the frame's hit rectangle - the area in which clicks are sent to the frame in question.
 
frame:SetHitRectInsets(left, right, top, bottom);
 
frame:SetHitRectInsets(left, right, top, bottom);

Latest revision as of 00:04, July 15, 2008

Widget API

Modifies the size of the frame's hit rectangle - the area in which clicks are sent to the frame in question.

frame:SetHitRectInsets(left, right, top, bottom);

Arguments Edit

left 
Number - pixels to move the frame's left hit edge to the right by.
right 
Number - pixels to move the frame's right hit edge to the left by.
top 
Number - pixels to move the frame's top hit edge down by.
bottom 
Number - pixels to move the frame's bottom hit edge up by.

Notes Edit

  • Negative values of left, right, top and botton may be used to move the edges away from the frames center, potentially extending a frame's hit rectangle outside of the frame itself.
  • This method will silently fail if called on a protected frame in combat from insecure code.

Around Wikia's network

Random Wiki