5#ifndef INCLUDE_FIFECHAN_MOUSEEVENT_HPP_
6#define INCLUDE_FIFECHAN_MOUSEEVENT_HPP_
10#include "fifechan/inputevent.hpp"
11#include "fifechan/platform.hpp"
27 enum class Type : std::uint8_t
75 bool isControlPressed,
117 int getClickCount()
const;
Represents a mouse event.
friend class Gui
Gui is a friend of this class in order to be able to manipulate the protected member variables of thi...
int mClickCount
The number of clicks generated with the same button.
MouseEvent::Button mButton
Holds the button of the mouse event.
Button
Mouse button types.
int mY
Holds the y-coordinate of the mouse event.
MouseEvent::Type mType
Holds the type of the mouse event.
MouseEvent(Widget *source, Widget *distributor, bool isShiftPressed, bool isControlPressed, bool isAltPressed, bool isMetaPressed, MouseEvent::Type type, MouseEvent::Button button, int x, int y, int clickCount)
Constructor.
int mX
Holds the x-coordinate of the mouse event.