API reference
Struct FocusChange
Namespace: MicroEngine.UI
Assembly: MicroEngine.UI.dll
Guide: UI widgets
A move of the focus, as FocusChanged reports it.
public readonly struct FocusChange : IEquatable<FocusChange>Implements
Constructors
FocusChange(Widget?, Widget?)
A move of the focus, as FocusChanged reports it.
public FocusChange(Widget? From, Widget? To)Parameters
From Widget?
The widget that had the focus, or null.
To Widget?
The widget that has it now, or null.
Properties
From
The widget that had the focus, or null.
public Widget? From { get; init; }Property Value
To
The widget that has it now, or null.
public Widget? To { get; init; }Property Value
Methods
Deconstruct(out Widget?, out Widget?)
public void Deconstruct(out Widget? From, out Widget? To)Parameters
From Widget?
To Widget?
Equals(object)
public override bool Equals(object obj)Parameters
obj object
Returns
Equals(FocusChange)
public bool Equals(FocusChange other)Parameters
other FocusChange
Returns
GetHashCode()
public override int GetHashCode()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(FocusChange, FocusChange)
public static bool operator ==(FocusChange left, FocusChange right)Parameters
left FocusChange
right FocusChange
Returns
operator !=(FocusChange, FocusChange)
public static bool operator !=(FocusChange left, FocusChange right)Parameters
left FocusChange
right FocusChange