Overlay Class
Definition
Section titled “Definition”A surface that’s rendered on top of a host surface.
public sealed class Overlay : UpdateComponent, IComponent, IDisposableInheritance object → UpdateComponent
Implements IComponent, IDisposable
Constructors
Section titled “Constructors”Overlay()
Section titled “Overlay()”public Overlay()Fields
Section titled “Fields”RenderStep
Section titled “RenderStep”Internal use.
public IRenderStep? RenderStepRemarks
Section titled “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
Section titled “Properties”Surface
Section titled “Surface”A surface that’s sized to match.
public ScreenSurface? Surface { get; }ClearOnAdd
Section titled “ClearOnAdd”When true, clears the Surface property when this object is added to a IScreenSurface.
public bool ClearOnAdd { get; set; }Methods
Section titled “Methods”OnAdded(IScreenObject)
Section titled “OnAdded(IScreenObject)”Called when the component is added to a host.
public override void OnAdded(IScreenObject host)Parameters
Section titled “Parameters”host IScreenObject
The host that added the component.
OnRemoved(IScreenObject)
Section titled “OnRemoved(IScreenObject)”Called when the component is removed from the host.
public override void OnRemoved(IScreenObject host)Parameters
Section titled “Parameters”host IScreenObject
The host that removed the component.
Update(IScreenObject, TimeSpan)
Section titled “Update(IScreenObject, TimeSpan)”Called by a host on the update frame.
public override void Update(IScreenObject host, TimeSpan delta)Parameters
Section titled “Parameters”host IScreenObject
The host calling the component.
delta TimeSpan
The time that has elapsed since this method was last called.
Dispose(bool)
Section titled “Dispose(bool)”protected void Dispose(bool disposing)Parameters
Section titled “Parameters”disposing bool
~Overlay()
Section titled “~Overlay()”protected ~Overlay()Dispose()
Section titled “Dispose()”public void Dispose()