Table of Contents

Interface INinePatchSubsectionBuilder<TBuilder>

Namespace
BSGameLib.UI.Builder
Assembly
BSGameLib.UI.dll

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

colorHex string

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

x int
y int

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

width int
height int

Returns

INinePatchSubsectionBuilder<TBuilder>