Class PowerStateChangeEventArgs
This event is triggered when the power state of the system changes.
Inherited Members
Namespace: OpenTK.Core.Platform
Assembly: OpenTK.Core.dll
Syntax
public class PowerStateChangeEventArgs : EventArgs
Constructors
PowerStateChangeEventArgs(bool)
Initializes a new instance of the PowerStateChangeEventArgs class.
Declaration
public PowerStateChangeEventArgs(bool goingToSleep)
Parameters
Type | Name | Description |
---|---|---|
bool | goingToSleep | If we are going to sleep. |
Properties
GoingToSleep
If the computer is entering sleep or if it's being woken from sleep.
Declaration
public bool GoingToSleep { get; }
Property Value
Type | Description |
---|---|
bool |