Show / Hide Table of Contents

Class Overlay

A surface that's rendered on top of a host surface.

Inheritance
object
UpdateComponent
Overlay
Implements
IComponent
IDisposable
Inherited Members
UpdateComponent.SortOrder
object.GetType()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: SadConsole.Components
Assembly: SadConsole.dll
Syntax
public sealed class Overlay : UpdateComponent, IComponent, IDisposable

Constructors

Overlay()

Declaration
public Overlay()

Fields

RenderStep

Internal use.

Declaration
public IRenderStep? RenderStep
Field Value
Type Description
IRenderStep
Remarks

The render step used to draw the overlay. This render step is added to the host object and should draw the Surface of the Overlay component.

Properties

ClearOnAdd

When true, clears the Surface property when this object is added to a IScreenSurface.

Declaration
public bool ClearOnAdd { get; set; }
Property Value
Type Description
bool

Surface

A surface that's sized to match.

Declaration
public ScreenSurface? Surface { get; }
Property Value
Type Description
ScreenSurface

Methods

Dispose()

Declaration
public void Dispose()

Dispose(bool)

Declaration
protected void Dispose(bool disposing)
Parameters
Type Name Description
bool disposing

~Overlay()

Declaration
protected ~Overlay()

OnAdded(IScreenObject)

Called when the component is added to a host.

Declaration
public override void OnAdded(IScreenObject host)
Parameters
Type Name Description
IScreenObject host

The host that added the component.

Overrides
UpdateComponent.OnAdded(IScreenObject)

OnRemoved(IScreenObject)

Called when the component is removed from the host.

Declaration
public override void OnRemoved(IScreenObject host)
Parameters
Type Name Description
IScreenObject host

The host that removed the component.

Overrides
UpdateComponent.OnRemoved(IScreenObject)

Update(IScreenObject, TimeSpan)

Called by a host on the update frame.

Declaration
public override void Update(IScreenObject host, TimeSpan delta)
Parameters
Type Name Description
IScreenObject host

The host calling the component.

TimeSpan delta

The time that has elapsed since this method was last called.

Overrides
UpdateComponent.Update(IScreenObject, TimeSpan)

Implements

IComponent
IDisposable

Extension Methods

ExtensionsSystem.GetDebuggerDisplayValue(object)
In this article

Back to top

Back to top Generated by DocFX