Definition at line 340 of file Scripting.cs.
◆ 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
-
PointD | A point with double precision. |
mb | Mouse 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
-
PointD | A point with double precision. |
mb | Mouse 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 }
◆ buts
uint BioGTK.Scripting.State.buts |
◆ key
Gdk.? Key BioGTK.Scripting.State.key |
PointD BioGTK.Scripting.State.p |
◆ processed
bool BioGTK.Scripting.State.processed = false |
◆ type
Event BioGTK.Scripting.State.type |
The documentation for this class was generated from the following file: