Skip to content

Class OverlayToggle

Namespace: Apogee.DevTools
Assembly: Apogee.DevTools.dll

A checkbox the host adds to the overlay's Debug section: it reads and writes a switch of the host's (physics debug drawing, say).

public sealed record OverlayToggle : IEquatable<OverlayToggle>

Inheritance

object ← OverlayToggle

Implements

IEquatable<OverlayToggle>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

OverlayToggle(string, Func<bool>, Action<bool>)

A checkbox the host adds to the overlay's Debug section: it reads and writes a switch of the host's (physics debug drawing, say).

public OverlayToggle(string Label, Func<bool> Get, Action<bool> Set)

Parameters

Label string

Get Func<bool>

Set Action<bool>

Properties

Get

public Func<bool> Get { get; init; }

Property Value

Func<bool>

Label

public string Label { get; init; }

Property Value

string

Set

public Action<bool> Set { get; init; }

Property Value

Action<bool>