Class RenderComponent
A base class that implements Render(IScreenObject, TimeSpan) of IComponent.
Implements
Inherited Members
Namespace: SadConsole.Components
Assembly: SadConsole.dll
Syntax
public abstract class RenderComponent : IComponent
Constructors
RenderComponent()
Declaration
protected RenderComponent()
Properties
SortOrder
Indicates priority to other components.
Declaration
public uint SortOrder { get; set; }
Property Value
Type | Description |
---|---|
uint |
Methods
OnAdded(IScreenObject)
Called when the component is added to a host.
Declaration
public virtual void OnAdded(IScreenObject host)
Parameters
Type | Name | Description |
---|---|---|
IScreenObject | host | The host that added the component. |
OnRemoved(IScreenObject)
Called when the component is removed from the host.
Declaration
public virtual void OnRemoved(IScreenObject host)
Parameters
Type | Name | Description |
---|---|---|
IScreenObject | host | The host that removed the component. |
Render(IScreenObject, TimeSpan)
Called by a host on the draw frame.
Declaration
public abstract void Render(IScreenObject host, TimeSpan delta)
Parameters
Type | Name | Description |
---|---|---|
IScreenObject | host | The host calling the component. |
TimeSpan | delta | The time that has elapsed from the last call to this component. |