Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Mouse-position/Nanoquery/mouse-position.nanoquery
Normal file
12
Task/Mouse-position/Nanoquery/mouse-position.nanoquery
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import Nanoquery.Util.Windows
|
||||
|
||||
// a function to handle the mouse moved event
|
||||
def mouse_moved($caller, $e)
|
||||
println "(" + $e.getX() + ", " + $e.getY() + ")"
|
||||
end
|
||||
|
||||
// create a window, set the handler for mouse moved, and show it
|
||||
w = new("Window")
|
||||
w.setSize(500, 500)
|
||||
w.setHandler(w.mouseMoved, mouse_moved)
|
||||
w.show()
|
||||
Loading…
Add table
Add a link
Reference in a new issue