Frame:SetHitRectInsets
Jump to navigation
Jump to search
This function is restricted.
|
Sets the insets of the frame's hit rectangle.
Frame:SetHitRectInsets(left, right, top, bottom)
Arguments
- left
- number : uiUnit - Pixels to move the frame's left hit edge to the right by.
- right
- number : uiUnit - Pixels to move the frame's right hit edge to the left by.
- top
- number : uiUnit - Pixels to move the frame's top hit edge down by.
- bottom
- number : uiUnit - Pixels to move the frame's bottom hit edge up by.
Details
- Basically, negative values of
left, right, top, buttom
increase the size of the frame's hit rectangle, positive values decrease the size. - Calling this function on a CheckButton and passing 0 as all four parameters will make its checkbox clickable and its FontString unclickable.
Patch changes
Patch 1.11.0 (2006-06-19): Added.