hxn

Event

What Window.poll and Window.wait return: the next event, or None. device_id is a positive id per input device. Raw device events go to the focused window, or the first one open when none has focus.

Constructors

  • None
  • Closed
  • Destroyed
  • Resized(width:Int64, height:Int64)
  • Moved(x:Int, y:Int)
  • Focused(focused:Bool)
  • Occluded(occluded:Bool)
  • ScaleFactorChanged(scaleFactor:Float)
  • ThemeChanged(theme:Theme)
  • RedrawRequested
  • CursorEntered(deviceId:Int)
  • CursorLeft(deviceId:Int)
  • CursorMoved(x:Float, y:Float, deviceId:Int)
  • MouseInput(state:MouseElementState, button:MouseButton, deviceId:Int)
  • MouseWheel(delta:MouseScrollDelta, phase:TouchPhase, deviceId:Int)
  • KeyboardInput(deviceId:Int, event:KeyEvent, isSynthetic:Bool)
  • ModifiersChanged(modifiers:Modifiers)
  • Ime(event:Ime)
  • DroppedFile(path:FilePath)
  • HoveredFile(path:FilePath)
  • HoveredFileCancelled
  • PinchGesture(deviceId:Int, delta:Float, phase:TouchPhase)
  • PanGesture(deviceId:Int, x:Float, y:Float, phase:TouchPhase)
  • DoubleTapGesture(deviceId:Int)
  • RotationGesture(deviceId:Int, delta:Float, phase:TouchPhase)
  • TouchpadPressure(deviceId:Int, pressure:Float, stage:Int64)
  • AxisMotion(deviceId:Int, axis:Int64, value:Float)
  • Touch(deviceId:Int, phase:TouchPhase, x:Float, y:Float, force:TouchForce, id:Int64)
  • ActivationTokenDone(serial:Int64, token:String)
  • Device(deviceId:Int, event:DeviceEvent)
  • Resumed
  • Suspended
  • MemoryWarning
  • Paste