5#ifndef INCLUDE_FIFECHAN_MOUSELISTENER_HPP_
6#define INCLUDE_FIFECHAN_MOUSELISTENER_HPP_
8#include "fifechan/mouseevent.hpp"
9#include "fifechan/platform.hpp"
20 class FIFEGUI_API MouseListener
23 virtual ~MouseListener() =
default;
25 MouseListener(MouseListener
const &) =
default;
26 MouseListener& operator=(MouseListener
const &) =
default;
27 MouseListener(MouseListener&&) =
default;
28 MouseListener& operator=(MouseListener&&) =
default;
Represents a mouse event.
virtual void mouseClicked(MouseEvent &mouseEvent)
Called when a mouse button is pressed and released (clicked) on the widget area.
virtual void mouseWheelMovedDown(MouseEvent &mouseEvent)
Called when the mouse wheel has moved down on the widget area.
virtual void mouseDragged(MouseEvent &mouseEvent)
Called when the mouse has moved and the mouse has previously been pressed on the widget.
virtual void mouseEntered(MouseEvent &mouseEvent)
Called when the mouse has entered into the widget area.
virtual void mouseWheelMovedRight(MouseEvent &mouseEvent)
Called when the mouse wheel has moved right on the widget area.
virtual void mouseMoved(MouseEvent &mouseEvent)
Called when the mouse has moved in the widget area and no mouse button has been pressed (i....
virtual void mousePressed(MouseEvent &mouseEvent)
Called when a mouse button has been pressed on the widget area.
virtual void mouseWheelMovedLeft(MouseEvent &mouseEvent)
Called when the mouse wheel has moved left on the widget area.
MouseListener()=default
Constructor.
virtual void mouseExited(MouseEvent &mouseEvent)
Called when the mouse has exited the widget area.
virtual void mouseReleased(MouseEvent &mouseEvent)
Called when a mouse button has been released on the widget area.
virtual void mouseWheelMovedUp(MouseEvent &mouseEvent)
Called when the mouse wheel has moved up on the widget area.