BioGTK  5.4.1
A .NET library & program for annotating, editing various microscopy imaging formats using Bioformats supported images. Including whole slide, pyramidal, and series.
Loading...
Searching...
No Matches
BioGTK.Scripting.State Class Reference

Public Member Functions

override string ToString ()
 

Static Public Member Functions

static State GetUp (PointD pf, uint mb)
 
static State GetMove (PointD pf, uint mb)
 
static State GetDown (PointD pf, uint mb)
 
static State GetNone ()
 

Public Attributes

Event type
 
PointD p
 
uint buts
 
bool processed = false
 
Gdk.? Key key
 

Detailed Description

Definition at line 340 of file Scripting.cs.

Member Function Documentation

◆ GetDown()

static State BioGTK.Scripting.State.GetDown ( PointD pf,
uint mb )
static

It returns a new State object with the type set to Down, the point set to a new PointD object, and the buttons set to

Returns
A new State object is being returned.

Definition at line 379 of file Scripting.cs.

380 {
381 State st = new State();
382 st.type = Event.Down;
383 st.p = pf;
384 st.buts = mb;
385 return st;
386 }

◆ GetMove()

static State BioGTK.Scripting.State.GetMove ( PointD pf,
uint mb )
static

‍This function returns a new state object with the type set to Event.Move, the point set to the point passed in, and the mouse buttons set to the mouse buttons passed in

Parameters
PointDA point with double precision.
mbMouse button
Returns
A new state object with the type of event, the point, and the mouse button.

Definition at line 366 of file Scripting.cs.

367 {
368 State st = new State();
369 st.type = Event.Move;
370 st.p = pf;
371 st.buts = mb;
372 return st;
373 }

◆ GetNone()

static State BioGTK.Scripting.State.GetNone ( )
static

It returns a new State object with the type set to None, the point set to a new PointD object, and the buttons set to 0

Returns
A new State object is being returned.

Definition at line 392 of file Scripting.cs.

393 {
394 State st = new State();
395 st.type = Event.None;
396 st.p = new PointD();
397 st.buts = 0;
398 return st;
399 }

◆ GetUp()

static State BioGTK.Scripting.State.GetUp ( PointD pf,
uint mb )
static

‍This function returns a new State object with the type set to Event.Up, the point set to the point passed in, and the buttons set to the buttons passed in

Parameters
PointDA point with double precision.
mbMouse button
Returns
A new state object is being returned.

Definition at line 350 of file Scripting.cs.

351 {
352
353 State st = new State();
354 st.type = Event.Up;
355 st.p = pf;
356 st.buts = mb;
357 return st;
358 }

◆ ToString()

override string BioGTK.Scripting.State.ToString ( )

Definition at line 405 of file Scripting.cs.

406 {
407 return type.ToString() + " ,(" + p.X.ToString() + ", " + p.Y.ToString() + "), " + buts.ToString();
408 }

Member Data Documentation

◆ buts

uint BioGTK.Scripting.State.buts

Definition at line 402 of file Scripting.cs.

◆ key

Gdk.? Key BioGTK.Scripting.State.key

Definition at line 404 of file Scripting.cs.

◆ p

PointD BioGTK.Scripting.State.p

Definition at line 401 of file Scripting.cs.

◆ processed

bool BioGTK.Scripting.State.processed = false

Definition at line 403 of file Scripting.cs.

◆ type

Event BioGTK.Scripting.State.type

Definition at line 342 of file Scripting.cs.


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