Skip to content

RenderComponent Class

A base class that implements Render(IScreenObject, TimeSpan) of IComponent.

C#
public abstract class RenderComponent : IComponent

Inheritance object

Implements IComponent

C#
protected RenderComponent()

Indicates priority to other components.

C#
public uint SortOrder { get; set; }

Called by a host on the draw frame.

C#
public abstract void Render(IScreenObject host, TimeSpan delta)

host IScreenObject
The host calling the component.

delta TimeSpan
The time that has elapsed from the last call to this component.

Called when the component is added to a host.

C#
public virtual void OnAdded(IScreenObject host)

host IScreenObject
The host that added the component.

Called when the component is removed from the host.

C#
public virtual void OnRemoved(IScreenObject host)

host IScreenObject
The host that removed the component.