BioCore  4.0.1
A .NET library & program for annotating, editing various microscopy imaging formats using Bioformats supported images. Including whole slide, pyramidal, and series.
All Classes Namespaces Functions Enumerations Properties
BioCore.MouseOperations Class Reference

Classes

struct  MousePoint
 

Public Types

enum  MouseEventFlags
 

Static Public Member Functions

static void LeftClick ()
 
static void RightClick ()
 
static void LeftDown ()
 The function takes the mouse event flag and calls the mouse event function. More...
 
static void RightDown ()
 It sends a message to the operating system that the right mouse button has been pressed. More...
 
static void LeftUp ()
 
static void RightUp ()
 
static void SetCursorPosition (int x, int y)
 
static void SetCursorPosition (MousePoint point)
 
static MousePoint GetCursorPosition ()
 
static void MouseEvent (MouseEventFlags value)
 

Detailed Description

Definition at line 119 of file Win32.cs.

Member Enumeration Documentation

◆ MouseEventFlags

enum BioCore.MouseOperations.MouseEventFlags

Definition at line 123 of file Win32.cs.

Member Function Documentation

◆ GetCursorPosition()

static MousePoint BioCore.MouseOperations.GetCursorPosition ( )
static

Get the current mouse position, if it fails, return a point of 0,0

Returns
A MousePoint object.

Definition at line 223 of file Win32.cs.

◆ LeftClick()

static void BioCore.MouseOperations.LeftClick ( )
static

It sends a message to the operating system that the left mouse button has been pressed and released

Definition at line 170 of file Win32.cs.

◆ LeftDown()

static void BioCore.MouseOperations.LeftDown ( )
static

The function takes the mouse event flag and calls the mouse event function.

Definition at line 181 of file Win32.cs.

◆ LeftUp()

static void BioCore.MouseOperations.LeftUp ( )
static

LeftUp() is a function that calls the MouseEvent() function with the MouseEventFlags.LeftUp parameter.

Definition at line 192 of file Win32.cs.

◆ MouseEvent()

static void BioCore.MouseOperations.MouseEvent ( MouseEventFlags  value)
static

It takes a MouseEventFlags enum value and calls the mouse_event function with the current cursor position

Parameters
MouseEventFlagsThis is the type of mouse event you want to simulate.

Definition at line 235 of file Win32.cs.

◆ RightClick()

static void BioCore.MouseOperations.RightClick ( )
static

RightClick() is a function that calls the MouseEvent() function with the MouseEventFlags.RightDown and MouseEventFlags.RightUp flags

Definition at line 176 of file Win32.cs.

◆ RightDown()

static void BioCore.MouseOperations.RightDown ( )
static

It sends a message to the operating system that the right mouse button has been pressed.

Definition at line 186 of file Win32.cs.

◆ RightUp()

static void BioCore.MouseOperations.RightUp ( )
static

RightUp() is a function that calls the MouseEvent() function with the MouseEventFlags.RightUp flag

Definition at line 198 of file Win32.cs.

◆ SetCursorPosition() [1/2]

static void BioCore.MouseOperations.SetCursorPosition ( int  x,
int  y 
)
static

SetCursorPos(x, y);

Parameters
xThe x coordinate of the cursor.
yThe y coordinate of the cursor.

Definition at line 206 of file Win32.cs.

◆ SetCursorPosition() [2/2]

static void BioCore.MouseOperations.SetCursorPosition ( MousePoint  point)
static

It takes a MousePoint object, which contains an X and Y coordinate, and sets the cursor position to that point

Parameters
MousePointA struct that contains the X and Y coordinates of the mouse.

Definition at line 215 of file Win32.cs.


The documentation for this class was generated from the following file: