Table of Contents

Struct MessageBoxColorScheme

Namespace
Sdl3Sharp.Utilities
Assembly
Sdl3Sharp.dll
public readonly struct MessageBoxColorScheme : IEquatable<MessageBoxColorScheme>, ISpanFormattable, IFormattable, IEqualityOperators<MessageBoxColorScheme, MessageBoxColorScheme, bool>
Implements
Inherited Members

Constructors

MessageBoxColorScheme(MessageBoxColor, MessageBoxColor, MessageBoxColor, MessageBoxColor, MessageBoxColor)

[SetsRequiredMembers]
public MessageBoxColorScheme(MessageBoxColor background, MessageBoxColor text, MessageBoxColor buttonBorder, MessageBoxColor buttonBackground, MessageBoxColor buttonSelected)

Parameters

background MessageBoxColor
text MessageBoxColor
buttonBorder MessageBoxColor
buttonBackground MessageBoxColor
buttonSelected MessageBoxColor

Properties

Background

public required MessageBoxColor Background { get; init; }

Property Value

MessageBoxColor

ButtonBackground

public required MessageBoxColor ButtonBackground { get; init; }

Property Value

MessageBoxColor

ButtonBorder

public required MessageBoxColor ButtonBorder { get; init; }

Property Value

MessageBoxColor

ButtonSelected

public required MessageBoxColor ButtonSelected { get; init; }

Property Value

MessageBoxColor

Text

public required MessageBoxColor Text { get; init; }

Property Value

MessageBoxColor

Methods

Deconstruct(out MessageBoxColor, out MessageBoxColor, out MessageBoxColor, out MessageBoxColor, out MessageBoxColor)

public void Deconstruct(out MessageBoxColor background, out MessageBoxColor text, out MessageBoxColor buttonBorder, out MessageBoxColor buttonBackground, out MessageBoxColor buttonSelected)

Parameters

background MessageBoxColor
text MessageBoxColor
buttonBorder MessageBoxColor
buttonBackground MessageBoxColor
buttonSelected MessageBoxColor

Equals(in MessageBoxColorScheme)

public bool Equals(in MessageBoxColorScheme other)

Parameters

other MessageBoxColorScheme

Returns

bool

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

ToString(IFormatProvider?)

public string ToString(IFormatProvider? formatProvider)

Parameters

formatProvider IFormatProvider

Returns

string

ToString(string?)

public string ToString(string? format)

Parameters

format string

Returns

string

ToString(string?, IFormatProvider?)

Formats the value of the current instance using the specified format.

public string ToString(string? format, IFormatProvider? formatProvider)

Parameters

format string

The format to use.

-or-

A null reference (Nothing in Visual Basic) to use the default format defined for the type of the IFormattable implementation.

formatProvider IFormatProvider

The provider to use to format the value.

-or-

A null reference (Nothing in Visual Basic) to obtain the numeric format information from the current locale setting of the operating system.

Returns

string

The value of the current instance in the specified format.

TryFormat(Span<char>, out int, ReadOnlySpan<char>, IFormatProvider?)

Tries to format the value of the current instance into the provided span of characters.

public bool TryFormat(Span<char> destination, out int charsWritten, ReadOnlySpan<char> format = default, IFormatProvider? provider = null)

Parameters

destination Span<char>

The span in which to write this instance's value formatted as a span of characters.

charsWritten int

When this method returns, contains the number of characters that were written in destination.

format ReadOnlySpan<char>

A span containing the characters that represent a standard or custom format string that defines the acceptable format for destination.

provider IFormatProvider

An optional object that supplies culture-specific formatting information for destination.

Returns

bool

true if the formatting was successful; otherwise, false.

Operators

operator ==(in MessageBoxColorScheme, in MessageBoxColorScheme)

public static bool operator ==(in MessageBoxColorScheme left, in MessageBoxColorScheme right)

Parameters

left MessageBoxColorScheme
right MessageBoxColorScheme

Returns

bool

operator !=(in MessageBoxColorScheme, in MessageBoxColorScheme)

public static bool operator !=(in MessageBoxColorScheme left, in MessageBoxColorScheme right)

Parameters

left MessageBoxColorScheme
right MessageBoxColorScheme

Returns

bool