Show / Hide Table of Contents

Struct InputLanguage

Represents a input language + keyboard layout name combination.

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

Constructors

InputLanguage(CultureInfo, string)

Declaration
public InputLanguage(CultureInfo culture, string layoutName)
Parameters
Type Name Description
CultureInfo culture
string layoutName

Properties

Culture

The current culture/language used for input. The input language.

Declaration
public CultureInfo Culture { get; }
Property Value
Type Description
CultureInfo

LayoutName

A display string representing the keyboard layout name.

Declaration
public string LayoutName { get; }
Property Value
Type Description
string

Methods

Equals(InputLanguage)

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

Declaration
public bool Equals(InputLanguage other)
Parameters
Type Name Description
InputLanguage 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 ==(InputLanguage, InputLanguage)

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

operator !=(InputLanguage, InputLanguage)

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

Implements

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