5#ifndef INCLUDE_FIFECHAN_MOUSELISTENER_HPP_
6#define INCLUDE_FIFECHAN_MOUSELISTENER_HPP_
8#include "fifechan/events/mouseevent.hpp"
9#include "fifechan/platform.hpp"
Represents a mouse event.
MouseListener(MouseListener &&)=default
Move constructor.
virtual void mouseClicked(MouseEvent &mouseEvent)
Called when a mouse button is pressed and released (clicked) on the widget area.
MouseListener & operator=(MouseListener &&)=default
Move assignment operator.
MouseListener(MouseListener const &)=default
Copy constructor.
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.
MouseListener & operator=(MouseListener const &)=default
Copy assignment operator.
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.