Class WMouseEvent

    • Constructor Detail

      • WMouseEvent

        public WMouseEvent()
        Default constructor.
    • Method Detail

      • getButton

        public MouseButton getButton()
        Returns the button.

        If multiple buttons are currently pressed for a mouse moved or mouse dragged event, then the one with the smallest numerical value is returned.

      • getDocument

        public Coordinates getDocument()
        Returns the mouse position relative to the document.
      • getWindow

        public Coordinates getWindow()
        Returns the mouse position relative to the window.

        This differs from documentX() only through scrolling through the document.

      • getScreen

        public Coordinates getScreen()
        Returns the mouse position relative to the screen.
      • getWidget

        public Coordinates getWidget()
        Returns the mouse position relative to the widget.
      • getWheelDelta

        public int getWheelDelta()
        Returns the scroll wheel delta.

        This is 1 when wheel was scrolled up or -1 when wheel was scrolled down.

        This is only defined for a WInteractWidget.mouseWheel() event.