Struct Mode
Represents a video mode, definining its width (rows), height (columns) and color depth.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Cosmos.System2.dll
Syntax
public readonly struct Mode
Constructors
|
Improve this Doc
View Source
Mode(UInt32, UInt32, ColorDepth)
Initializes a new instance of the Mode struct.
Declaration
public Mode(uint columns, uint rows, ColorDepth colorDepth)
Parameters
Type |
Name |
Description |
System.UInt32 |
columns |
The number of columns.
|
System.UInt32 |
rows |
The number of rows.
|
ColorDepth |
colorDepth |
The color depth, i.e. the amount of bits per a single pixel.
|
Properties
|
Improve this Doc
View Source
ColorDepth
The color depth of the display mode, i.e. the amount of bits per a single pixel.
Declaration
public readonly ColorDepth ColorDepth { get; }
Property Value
|
Improve this Doc
View Source
Height
The height, or columns, of the display mode.
Declaration
public readonly uint Height { get; }
Property Value
Type |
Description |
System.UInt32 |
|
|
Improve this Doc
View Source
Width
The width, or rows, of the display mode.
Declaration
public readonly uint Width { get; }
Property Value
Type |
Description |
System.UInt32 |
|
Methods
|
Improve this Doc
View Source
CompareTo(Mode)
Declaration
public readonly int CompareTo(Mode other)
Parameters
Type |
Name |
Description |
Mode |
other |
|
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Equals(Mode)
Declaration
public readonly bool Equals(Mode other)
Parameters
Type |
Name |
Description |
Mode |
other |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override readonly bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.ValueType.Equals(System.Object)
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.ValueType.GetHashCode()
|
Improve this Doc
View Source
ToString()
Declaration
public override readonly string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.ValueType.ToString()
Operators
|
Improve this Doc
View Source
Equality(Mode, Mode)
Declaration
public static bool operator ==(Mode a, Mode b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GreaterThan(Mode, Mode)
Declaration
public static bool operator>(Mode a, Mode b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GreaterThanOrEqual(Mode, Mode)
Declaration
public static bool operator >=(Mode a, Mode b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Inequality(Mode, Mode)
Declaration
public static bool operator !=(Mode a, Mode b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
LessThan(Mode, Mode)
Declaration
public static bool operator <(Mode a, Mode b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
LessThanOrEqual(Mode, Mode)
Declaration
public static bool operator <=(Mode a, Mode b)
Parameters
Returns
Type |
Description |
System.Boolean |
|