Show / Hide Table of Contents

Delegate HitTest

A delegate for hit testing.

Hit testing is not always done in respone to the user clicking the mouse. The operating system can do hit testing for any reason and doesn't need to be in respose to some user action. It is recommended to keep this code efficient as it will be called often.

Namespace: OpenTK.Core.Platform
Assembly: OpenTK.Core.dll
Syntax
public delegate HitType HitTest(WindowHandle handle, Vector2 position)
Parameters
Type Name Description
WindowHandle handle

A handle to the window that hit testing is being done on.

Vector2 position

The position of where the hit test is being done, not always the position of the mouse. In client relative coordinates.

Returns
Type Description
HitType

The result of the hit test.

In this article
Back to top Generated by DocFX