Show / Hide Table of Contents

Class WindowScaleChangeEventArgs

This event is triggered when the DPI of a window changes. This can happen if the window is moved between monitors with different DPI scaling settings or if the user changes DPI settings.

Inheritance
object
EventArgs
WindowEventArgs
WindowScaleChangeEventArgs
Inherited Members
WindowEventArgs.Window
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 WindowScaleChangeEventArgs : WindowEventArgs

Constructors

WindowScaleChangeEventArgs(WindowHandle, float, float)

Initializes a new instance of the WindowScaleChangeEventArgs class.

Declaration
public WindowScaleChangeEventArgs(WindowHandle window, float scaleX, float scaleY)
Parameters
Type Name Description
WindowHandle window

The window whose dpi has changed.

float scaleX

The new x axis scale factor.

float scaleY

The new y axis scale factor.

Properties

ScaleX

The new scale value in the x-axis.

Declaration
public float ScaleX { get; }
Property Value
Type Description
float

ScaleY

The new scale value in the y-axis.

Declaration
public float ScaleY { get; }
Property Value
Type Description
float
In this article
Back to top Generated by DocFX