file: NineSliceTextureBuilder.aus

class: NineSliceTextureBuilder

[21:7] extends: FxObj

Wraps FXGL's NineSliceTextureBuilder (com.almasb.fxgl.texture.NineSliceTextureBuilder), the only path to a 9-slice-resizable Texture. Build by giving the source Texture's nine sub-rectangles (4 corners, 4 sides, 1 center) then call build(width, height) to produce a Texture sized to any (w, h) where corners stay fixed and sides + center stretch to fill. Kept despite the no-builders rule: there is no NineSliceTexture class; build is the only way to obtain a 9-slice-resizable Texture.

Methods