Interface IImageBuilder
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
propertyNamestring
Returns
WithColor(string)
Sets the tint applied to the image's texture.
IImageBuilder WithColor(string colorHex)
Parameters
colorHexstring
Returns
WithHorizontalThreePatchTextureReference(string)
Uses a horizontal three-patch texture declared in the view's resources.
IImageBuilder WithHorizontalThreePatchTextureReference(string id)
Parameters
idstring
Returns
WithNinePatchTextureReference(string)
Uses a nine-patch texture declared in the view's resources.
IImageBuilder WithNinePatchTextureReference(string id)
Parameters
idstring
Returns
WithSize(int, int)
Sets the image's size in pixels.
IImageBuilder WithSize(int width, int height)
Parameters
Returns
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
sourcestring
Returns
WithTexture(string, string)
Sets the image's texture from a file, under the id id.
IImageBuilder WithTexture(string id, string sourceFile)
Parameters
Returns
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
Returns
WithTextureIndexReference(string, int)
Uses one indexed texture of an atlas declared in the view's resources.
IImageBuilder WithTextureIndexReference(string id, int index)
Parameters
Returns
WithTextureReference(string)
Uses a texture declared in the view's resources.
IImageBuilder WithTextureReference(string id)
Parameters
idstring
Returns
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
Returns
WithTextureRegionReference(string, string)
Uses one named region of a texture atlas declared in the view's resources.
IImageBuilder WithTextureRegionReference(string id, string regionName)