Table of Contents

Interface IImageBuilder

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

An image, the Image element of a view file, built in C#.

public interface IImageBuilder : IControlBuilder<IImageBuilder>
Inherited Members

Methods

BindSource(string)

Binds the picture to the view model property propertyName.

IImageBuilder BindSource(string propertyName)

Parameters

propertyName string

Returns

IImageBuilder

WithColor(string)

Sets the tint applied to the image's texture.

IImageBuilder WithColor(string colorHex)

Parameters

colorHex string

Returns

IImageBuilder

WithHorizontalThreePatchTextureReference(string)

Uses a horizontal three-patch texture declared in the view's resources.

IImageBuilder WithHorizontalThreePatchTextureReference(string id)

Parameters

id string

Returns

IImageBuilder

WithNinePatchTextureReference(string)

Uses a nine-patch texture declared in the view's resources.

IImageBuilder WithNinePatchTextureReference(string id)

Parameters

id string

Returns

IImageBuilder

WithSize(int, int)

Sets the image's size in pixels.

IImageBuilder WithSize(int width, int height)

Parameters

width int
height int

Returns

IImageBuilder

WithSource(string)

Sets the picture the game draws, by a name it gives meaning to, as the Source attribute does.

IImageBuilder WithSource(string source)

Parameters

source string

Returns

IImageBuilder

WithTexture(string, string)

Sets the image's texture from a file, under the id id.

IImageBuilder WithTexture(string id, string sourceFile)

Parameters

id string
sourceFile string

Returns

IImageBuilder

WithTextureIndexAtlas(string, int, string, int, int)

Sets the image's texture to one indexed texture of an atlas file.

IImageBuilder WithTextureIndexAtlas(string id, int index, string sourceFile, int eachTextureWidth, int eachTextureHeight)

Parameters

id string
index int
sourceFile string
eachTextureWidth int
eachTextureHeight int

Returns

IImageBuilder

WithTextureIndexReference(string, int)

Uses one indexed texture of an atlas declared in the view's resources.

IImageBuilder WithTextureIndexReference(string id, int index)

Parameters

id string
index int

Returns

IImageBuilder

WithTextureReference(string)

Uses a texture declared in the view's resources.

IImageBuilder WithTextureReference(string id)

Parameters

id string

Returns

IImageBuilder

WithTextureRegionAtlas(string, string, string, int, int, int, int)

Sets the image's texture to one named region of a texture atlas file.

IImageBuilder WithTextureRegionAtlas(string id, string sourceFile, string regionId, int x, int y, int width, int height)

Parameters

id string
sourceFile string
regionId string
x int
y int
width int
height int

Returns

IImageBuilder

WithTextureRegionReference(string, string)

Uses one named region of a texture atlas declared in the view's resources.

IImageBuilder WithTextureRegionReference(string id, string regionName)

Parameters

id string
regionName string

Returns

IImageBuilder