Class FocusEventArgs
This event is triggered when a window gets or loses input focus.
Inherited Members
Namespace: OpenTK.Core.Platform
Assembly: OpenTK.Core.dll
Syntax
public class FocusEventArgs : WindowEventArgs
Constructors
FocusEventArgs(WindowHandle, bool)
Initializes a new instance of the FocusEventArgs class.
Declaration
public FocusEventArgs(WindowHandle window, bool gotFocus)
Parameters
Type | Name | Description |
---|---|---|
WindowHandle | window | The window that got or lost focus. |
bool | gotFocus | If the window got focus. |
Properties
GotFocus
If the window got or lost focus.
Declaration
public bool GotFocus { get; }
Property Value
Type | Description |
---|---|
bool |