Show / Hide Table of Contents

Class DisplayValuesChangedEventArgs

This event is triggered when any property of a display changes. Video mode, position, resolution, etc.

Inheritance
object
EventArgs
DisplayValuesChangedEventArgs
Inherited Members
EventArgs.Empty
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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

true if the video mode bits per pixel value of the display changed, false otherwise.

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

true if the color info of display changed, false otherwise.

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

true if the scale factor of the display changed, false otherwise.

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

true if the refresh rate of the display changed, false otherwise.

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

true if the resolution of the display changed, false otherwise.

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

true if the virtual position of the display changed, false otherwise.

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

true if the work area of the display changed, false otherwise.

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.

In this article
Back to top Generated by DocFX