Class ContentRenderer<TContent>
- Namespace
- Termule.Engine.Components
- Assembly
- Termule.Engine.dll
Renders a IContent instance at the local IPositionProvider's position.
public sealed class ContentRenderer<TContent> : PositionalRenderer where TContent : IContent
Type Parameters
TContentThe type of content to render. An instance will be created automatically if a parameterless constructor exists.
- Inheritance
-
ContentRenderer<TContent>
- Inherited Members
Constructors
ContentRenderer()
Initializes a new instance of the ContentRenderer<TContent> class.
public ContentRenderer()
Properties
Centered
Gets or sets a value indicating whether the content should be drawn centered.
public bool Centered { get; set; }
Property Value
Content
Gets or sets the content to render.
public TContent Content { get; set; }
Property Value
- TContent
FlipX
Gets or sets a value indicating whether the content should be drawn flipped on the x-axis.
public bool FlipX { get; set; }
Property Value
FlipY
Gets or sets a value indicating whether the content should be drawn flipped on the y-axis.
public bool FlipY { get; set; }
Property Value
Offset
Gets an offset applied to the position before rendering.
protected override Vector Offset { get; }