Interface INinePatchSubsectionBuilder<TBuilder>
Configures one subsection of a nine-patch texture: its place in the texture, size and color.
public interface INinePatchSubsectionBuilder<out TBuilder>
Type Parameters
TBuilder
Methods
WithColor(string)
Sets the color of this subsection, overriding the texture's color.
INinePatchSubsectionBuilder<out TBuilder> WithColor(string colorHex)
Parameters
colorHexstring
Returns
- INinePatchSubsectionBuilder<TBuilder>
WithPosition(int, int)
Sets the subsection's position in pixels, from the top left of the texture.
INinePatchSubsectionBuilder<out TBuilder> WithPosition(int x, int y)
Parameters
Returns
- INinePatchSubsectionBuilder<TBuilder>
WithSize(int, int)
Sets the subsection's size in pixels, overriding the texture's size.
INinePatchSubsectionBuilder<out TBuilder> WithSize(int width, int height)
Parameters
Returns
- INinePatchSubsectionBuilder<TBuilder>