NinePatchSliceSpec

Describes one of a NinePatchImage's 9 slices: which segment of the source/destination grid it occupies along each axis. 0 = the fixed leading segment (the left/top inset), 1 = the stretchable middle segment, 2 = the fixed trailing segment (the right/bottom inset). Both slicing (in new()) and drawing (in draw()) are driven generically from this list instead of writing out 9 near-identical blocks by hand.

Properties

  • name (string)
  • gridX (integer)
  • gridY (integer)