Struct MirInputEvent

Inheritance Relationships

Base Type

Derived Types

Struct Documentation

struct MirInputEvent : public MirEvent

Subclassed by MirKeyboardEvent, MirKeyboardResyncEvent, MirPointerEvent, MirTouchEvent

Public Functions

MirInputEventType input_type() const
int window_id() const
void set_window_id(int id)
MirInputDeviceId device_id() const
void set_device_id(MirInputDeviceId id)
std::chrono::nanoseconds event_time() const
void set_event_time(std::chrono::nanoseconds const &event_time)
MirInputEventModifiers modifiers() const
void set_modifiers(MirInputEventModifiers mods)
MirKeyboardEvent *to_keyboard()
MirKeyboardEvent const *to_keyboard() const
MirPointerEvent *to_pointer()
MirPointerEvent const *to_pointer() const
MirTouchEvent *to_touch()
MirTouchEvent const *to_touch() const

Protected Functions

MirInputEvent(MirInputEventType input_type, MirInputDeviceId dev, std::chrono::nanoseconds et, MirInputEventModifiers mods)
MirInputEvent(MirInputEventType input_type)
MirInputEvent(MirInputEvent const &event) = default
MirInputEvent &operator=(MirInputEvent const &event) = delete