Show / Hide Table of Contents

Struct ThemeInfo

Represents theme info.

Implements
IEquatable<ThemeInfo>
Inherited Members
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: OpenTK.Platform
Assembly: OpenTK.Platform.dll
Syntax
public struct ThemeInfo : IEquatable<ThemeInfo>

Fields

HighContrast

If a high contrast theme is preferred.

Declaration
public bool HighContrast
Field Value
Type Description
bool

Theme

The current preferred theme.

Declaration
public AppTheme Theme
Field Value
Type Description
AppTheme

Methods

Equals(ThemeInfo)

Indicates whether the current object is equal to another object of the same type.

Declaration
public bool Equals(ThemeInfo other)
Parameters
Type Name Description
ThemeInfo other

An object to compare with this object.

Returns
Type Description
bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj

The object to compare with the current instance.

Returns
Type Description
bool

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

Overrides
ValueType.Equals(object)

GetHashCode()

Returns the hash code for this instance.

Declaration
public override int GetHashCode()
Returns
Type Description
int

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

Overrides
ValueType.GetHashCode()

ToString()

Returns the fully qualified type name of this instance.

Declaration
public override string ToString()
Returns
Type Description
string

The fully qualified type name.

Overrides
ValueType.ToString()

Operators

operator ==(ThemeInfo, ThemeInfo)

Checks if two ThemeInfo structs are equal.

Declaration
public static bool operator ==(ThemeInfo left, ThemeInfo right)
Parameters
Type Name Description
ThemeInfo left

The first ThemeInfo struct.

ThemeInfo right

The second ThemeInfo struct.

Returns
Type Description
bool

If the two ThemeInfo structs where equal.

operator !=(ThemeInfo, ThemeInfo)

Checks if two ThemeInfo structs are not equal.

Declaration
public static bool operator !=(ThemeInfo left, ThemeInfo right)
Parameters
Type Name Description
ThemeInfo left

The first ThemeInfo struct.

ThemeInfo right

The second ThemeInfo struct.

Returns
Type Description
bool

If the two ThemeInfo structs where not equal.

Implements

IEquatable<T>
In this article
Back to top Generated by DocFX