Struct InputLanguage
Represents a input language + keyboard layout name combination.
Implements
Inherited Members
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 |
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 |
Overrides
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
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
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 |