Skip to content

API reference

Struct FocusChange

Namespace: MicroEngine.UI
Assembly: MicroEngine.UI.dll
Guide: UI widgets

A move of the focus, as FocusChanged reports it.

C#
public readonly struct FocusChange : IEquatable<FocusChange>

Implements

IEquatable<FocusChange>

Constructors

FocusChange(Widget?, Widget?)

A move of the focus, as FocusChanged reports it.

C#
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.

C#
public Widget? From { get; init; }

Property Value

Widget?

To

The widget that has it now, or null.

C#
public Widget? To { get; init; }

Property Value

Widget?

Methods

Deconstruct(out Widget?, out Widget?)

C#
public void Deconstruct(out Widget? From, out Widget? To)

Parameters

From Widget?

To Widget?

Equals(object)

C#
public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(FocusChange)

C#
public bool Equals(FocusChange other)

Parameters

other FocusChange

Returns

bool

GetHashCode()

C#
public override int GetHashCode()

Returns

int

ToString()

C#
public override string ToString()

Returns

string

Operators

operator ==(FocusChange, FocusChange)

C#
public static bool operator ==(FocusChange left, FocusChange right)

Parameters

left FocusChange

right FocusChange

Returns

bool

operator !=(FocusChange, FocusChange)

C#
public static bool operator !=(FocusChange left, FocusChange right)

Parameters

left FocusChange

right FocusChange

Returns

bool