XML UI ← XML types < AbsInset

AbsInset is the 'unit based' integer value for Inset which alters the hit rectangle or 'hit rect' for user input.

Inheritance Edit

Inherited by: none, Inherits: none, Defined in: Inset

Elements Edit


Attributes Edit

  • left (int) - Default is '0'.
  • right (int) - Default is '0'.
  • top (int) - Default is '0'.
  • bottom (int) - Default is '0'.

Summary Edit

AbsInset alters the active hit area for positional input devices. Hit rects are used for determining which screen element belongs to an input event by having an associated screen rectangle.

Example Edit

<Frame name="MyFrame">
        <Size x="100" y="100" />
          <AbsInset left="0" right="-100" top="0" bottom="0"/>
        <Color a="1" r="1" g="1" b="1" />

This example will show a frame with several textures, with altered 'hit rect' insets.

Community content is available under CC-BY-SA unless otherwise noted.