Table of Contents

Interface ITextureRegionBuilder<TBuilder>

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

Places and sizes one region of a texture atlas.

public interface ITextureRegionBuilder<out TBuilder>

Type Parameters

TBuilder

Methods

WithPosition(int, int)

Sets the position in pixels of the region's top left corner, within the atlas.

ITextureRegionBuilder<out TBuilder> WithPosition(int x, int y)

Parameters

x int
y int

Returns

ITextureRegionBuilder<TBuilder>

WithSize(int, int)

Sets the region's width and height in pixels.

ITextureRegionBuilder<out TBuilder> WithSize(int width, int height)

Parameters

width int
height int

Returns

ITextureRegionBuilder<TBuilder>