Class DisplayValuesChangedEventArgs
This event is triggered when any property of a display changes. Video mode, position, resolution, etc.
Inherited Members
Namespace: OpenTK.Platform
Assembly: OpenTK.Platform.dll
Syntax
public class DisplayValuesChangedEventArgs : EventArgs
Constructors
DisplayValuesChangedEventArgs(int)
Initializes a new instance of the DisplayValuesChangedEventArgs class with all changes set to false.
Declaration
public DisplayValuesChangedEventArgs(int displayIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| int | displayIndex | The index of the display whoes values changed. |
DisplayValuesChangedEventArgs(int, bool, bool, bool, bool, bool, bool, bool)
Initializes a new instance of the DisplayValuesChangedEventArgs class.
Declaration
public DisplayValuesChangedEventArgs(int displayIndex, bool bitsPerPixelChanged, bool virtualPositionChanged, bool resolutionChanged, bool workAreaChanged, bool refreshRateChanged, bool displayScaleChanged, bool colorInfoChanged)
Parameters
| Type | Name | Description |
|---|---|---|
| int | displayIndex | The index of the display whoes values changed. |
| bool | bitsPerPixelChanged | The bits per pixel value of the video mode of the display has changed. |
| bool | virtualPositionChanged | The virtual position of the display has changed. |
| bool | resolutionChanged | The resolution of the display has changed. |
| bool | workAreaChanged | The work area of the display has changed. |
| bool | refreshRateChanged | The refresh rate of the display has changed. |
| bool | displayScaleChanged | The scale factor of the display has changed. |
| bool | colorInfoChanged | The color info of the display has changed. |
Properties
BitsPerPixelChanged
Declaration
public bool BitsPerPixelChanged { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
Get the new value by calling GetVideoMode(DisplayHandle) on the display with index DisplayIndex.
ColorInfoChanged
Declaration
public bool ColorInfoChanged { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
Get the new color info by calling GetColorInfo(DisplayHandle, out DisplayColorInfo) on the display with index DisplayIndex.
DisplayIndex
The display index for the display whos values have changed.
Declaration
public int DisplayIndex { get; }
Property Value
| Type | Description |
|---|---|
| int |
DisplayScaleChanged
Declaration
public bool DisplayScaleChanged { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
Get the new value by calling GetDisplayScale(DisplayHandle) on the display with index DisplayIndex.
RefreshRateChanged
Declaration
public bool RefreshRateChanged { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
Get the new value by calling GetRefreshRate(DisplayHandle) on the display with index DisplayIndex.
ResolutionChanged
Declaration
public bool ResolutionChanged { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
Get the new value by calling GetResolution(DisplayHandle) on the display with index DisplayIndex.
VirtualPositionChanged
Declaration
public bool VirtualPositionChanged { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
Get the new value by calling GetVirtualPosition(DisplayHandle) on the display with index DisplayIndex.
WorkAreaChanged
Declaration
public bool WorkAreaChanged { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
Get the new value by calling GetWorkArea(DisplayHandle) on the display with index DisplayIndex.