BioGTK  6.0.0
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 343 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 382 of file Scripting.cs.

383 {
384 State st = new State();
385 st.type = Event.Down;
386 st.p = pf;
387 st.buts = mb;
388 return st;
389 }

◆ 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 369 of file Scripting.cs.

370 {
371 State st = new State();
372 st.type = Event.Move;
373 st.p = pf;
374 st.buts = mb;
375 return st;
376 }

◆ 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 395 of file Scripting.cs.

396 {
397 State st = new State();
398 st.type = Event.None;
399 st.p = new PointD();
400 st.buts = 0;
401 return st;
402 }

◆ 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 353 of file Scripting.cs.

354 {
355
356 State st = new State();
357 st.type = Event.Up;
358 st.p = pf;
359 st.buts = mb;
360 return st;
361 }

◆ ToString()

override string BioGTK.Scripting.State.ToString ( )

Definition at line 408 of file Scripting.cs.

409 {
410 return type.ToString() + " ,(" + p.X.ToString() + ", " + p.Y.ToString() + "), " + buts.ToString();
411 }

Member Data Documentation

◆ buts

uint BioGTK.Scripting.State.buts

Definition at line 405 of file Scripting.cs.

◆ key

Gdk.? Key BioGTK.Scripting.State.key

Definition at line 407 of file Scripting.cs.

◆ p

PointD BioGTK.Scripting.State.p

Definition at line 404 of file Scripting.cs.

◆ processed

bool BioGTK.Scripting.State.processed = false

Definition at line 406 of file Scripting.cs.

◆ type

Event BioGTK.Scripting.State.type

Definition at line 345 of file Scripting.cs.


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