The Open Toolkit library  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
OpenTK.DisplayResolution Class Reference

Contains information regarding a monitor's display resolution. More...

Public Member Functions

override string ToString ()
 Returns a System.String representing this DisplayResolution. More...
 
override bool Equals (object obj)
 Determines whether the specified resolutions are equal. More...
 
override int GetHashCode ()
 Returns a unique hash representing this resolution. More...
 

Static Public Member Functions

static bool operator== (DisplayResolution left, DisplayResolution right)
 Compares two instances for equality. More...
 
static bool operator!= (DisplayResolution left, DisplayResolution right)
 Compares two instances for inequality. More...
 

Properties

Rectangle Bounds [get]
 Gets a System.Drawing.Rectangle that contains the bounds of this display device. More...
 
int Width [get, set]
 Gets a System.Int32 that contains the width of this display in pixels. More...
 
int Height [get, set]
 Gets a System.Int32 that contains the height of this display in pixels. More...
 
int BitsPerPixel [get, set]
 Gets a System.Int32 that contains number of bits per pixel of this display. Typical values include 8, 16, 24 and 32. More...
 
float RefreshRate [get, set]
 Gets a System.Single representing the vertical refresh rate of this display. More...
 

Detailed Description

Contains information regarding a monitor's display resolution.

Member Function Documentation

override bool OpenTK.DisplayResolution.Equals ( object  obj)

Determines whether the specified resolutions are equal.

Parameters
objThe System.Object to check against.
Returns
True if the System.Object is an equal DisplayResolution; false otherwise.
override int OpenTK.DisplayResolution.GetHashCode ( )

Returns a unique hash representing this resolution.

Returns
A System.Int32 that may serve as a hash code for this resolution.
static bool OpenTK.DisplayResolution.operator!= ( DisplayResolution  left,
DisplayResolution  right 
)
static

Compares two instances for inequality.

Parameters
leftThe first instance.
rightThe second instance.
Returns
True, if left does not equal right; false otherwise.
static bool OpenTK.DisplayResolution.operator== ( DisplayResolution  left,
DisplayResolution  right 
)
static

Compares two instances for equality.

Parameters
leftThe first instance.
rightThe second instance.
Returns
True, if left equals right; false otherwise.
override string OpenTK.DisplayResolution.ToString ( )

Returns a System.String representing this DisplayResolution.

Returns
A System.String representing this DisplayResolution.

Property Documentation

int OpenTK.DisplayResolution.BitsPerPixel
getset

Gets a System.Int32 that contains number of bits per pixel of this display. Typical values include 8, 16, 24 and 32.

Rectangle OpenTK.DisplayResolution.Bounds
get

Gets a System.Drawing.Rectangle that contains the bounds of this display device.

int OpenTK.DisplayResolution.Height
getset

Gets a System.Int32 that contains the height of this display in pixels.

float OpenTK.DisplayResolution.RefreshRate
getset

Gets a System.Single representing the vertical refresh rate of this display.

int OpenTK.DisplayResolution.Width
getset

Gets a System.Int32 that contains the width of this display in pixels.