Class ImageWidgetBuilder
A recyclable widget builder for building picture widgets.
Implements
Inherited Members
Namespace: SociallyDistant.Core.UI.Recycling
Assembly: SociallyDistant.Framework.dll
Syntax
public sealed class ImageWidgetBuilder : IRecyclableWidgetBuilder
Properties
Color
Gets or sets a color tint to be applied to the picture. If no value is provided, white will be used.
Declaration
public Color? Color { get; set; }
Property Value
Type | Description |
---|---|
Color? |
Texture
Gets or sets a Microsoft.Xna.Framework.Graphics.Texture2D instance to show as the picture.
Declaration
public Texture2D? Texture { get; set; }
Property Value
Type | Description |
---|---|
Texture2D |
Methods
Build()
Create a RecyclableWidgetController based on this widget builder's properties.
Declaration
public RecyclableWidgetController Build()
Returns
Type | Description |
---|---|
RecyclableWidgetController | A new instance of RecyclableWidgetController. |