5#ifndef INCLUDE_FIFECHAN_MOUSEEVENT_HPP_
6#define INCLUDE_FIFECHAN_MOUSEEVENT_HPP_
12#include "fifechan/platform.hpp"
15#include "fifechan/events/inputevent.hpp"
31 enum class Type : std::uint8_t
79 bool isControlPressed,
124 int getClickCount()
const;
Represents a mouse event.
friend class Gui
Grants Gui privileged access to internal state.
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.
Used replacement tokens by configure_file():