Definition at line 343 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 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
-
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 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
-
PointD | A point with double precision. |
mb | Mouse 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 }
◆ 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: