Skip to content

KernelAPI reference

Struct SurfaceResized

Namespace: MicroEngine.Kernel
Assembly: MicroEngine.Kernel.dll
Guide: Modules and the frame schedule

The new size of the drawing surface, in pixels (Resized).

C#
public readonly struct SurfaceResized : IEquatable<SurfaceResized>

Implements

IEquatable<SurfaceResized>

Constructors

SurfaceResized(int, int)

The new size of the drawing surface, in pixels (Resized).

C#
public SurfaceResized(int Width, int Height)

Parameters

Width int

Width in pixels.

Height int

Height in pixels.

Properties

Height

Height in pixels.

C#
public int Height { get; init; }

Property Value

int

Width

Width in pixels.

C#
public int Width { get; init; }

Property Value

int

Methods

Deconstruct(out int, out int)

C#
public void Deconstruct(out int Width, out int Height)

Parameters

Width int

Height int

Equals(object)

C#
public override bool Equals(object obj)

Parameters

obj object

Returns

bool

Equals(SurfaceResized)

C#
public bool Equals(SurfaceResized other)

Parameters

other SurfaceResized

Returns

bool

GetHashCode()

C#
public override int GetHashCode()

Returns

int

ToString()

C#
public override string ToString()

Returns

string

Operators

operator ==(SurfaceResized, SurfaceResized)

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

Parameters

left SurfaceResized

right SurfaceResized

Returns

bool

operator !=(SurfaceResized, SurfaceResized)

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

Parameters

left SurfaceResized

right SurfaceResized

Returns

bool