Show / Hide Table of Contents

Interface IMouseComponent

Base interface for drivers which implement the mouse component.

Inherited Members
IPalComponent.Name
IPalComponent.Provides
IPalComponent.Logger
IPalComponent.Initialize(ToolkitOptions)
Namespace: OpenTK.Core.Platform
Assembly: OpenTK.Core.dll
Syntax
public interface IMouseComponent : IPalComponent

Properties

CanSetMousePosition

If it's possible to set the position of the mouse.

Declaration
bool CanSetMousePosition { get; }
Property Value
Type Description
bool

Methods

GetMouseState(out MouseState)

Fills the state struct with the current mouse state.

Declaration
void GetMouseState(out MouseState state)
Parameters
Type Name Description
MouseState state

The current mouse state.

GetPosition(out int, out int)

Get the mouse cursor position.

Declaration
void GetPosition(out int x, out int y)
Parameters
Type Name Description
int x

X coordinate of the mouse in desktop space.

int y

Y coordinate of the mouse in desktop space.

SetPosition(int, int)

Set the mouse cursor position.

Declaration
void SetPosition(int x, int y)
Parameters
Type Name Description
int x

X coordinate of the mouse in desktop space.

int y

Y coordinate of the mouse in desktop space.

In this article
Back to top Generated by DocFX