Mir
Loading...
Searching...
No Matches
mir::events Namespace Reference

Functions

EventUPtr make_event (frontend::SurfaceId const &surface_id, MirOrientation orientation)
EventUPtr make_event (MirPromptSessionState state)
EventUPtr make_event (frontend::SurfaceId const &surface_id, geometry::Size const &size)
EventUPtr make_event (frontend::SurfaceId const &surface_id, MirSurfaceAttrib attribute, int value) MIR_FOR_REMOVAL_IN_VERSION_1("use make_event with MirWindowAttribute instead")
EventUPtr make_event (frontend::SurfaceId const &surface_id, MirWindowAttrib attribute, int value)
EventUPtr make_event (frontend::SurfaceId const &surface_id)
EventUPtr make_event (frontend::SurfaceId const &surface_id, MirInputDeviceId id, std::string const &model, std::string const &layout, std::string const &variant, std::string const &options)
EventUPtr make_event (frontend::SurfaceId const &surface_id, int dpi, float scale, double refresh_rate, MirFormFactor form_factor, uint32_t id)
EventUPtr make_event (frontend::SurfaceId const &surface_id, geometry::Rectangle placement)
 Surface placement event.
EventUPtr make_event (MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, std::vector< uint8_t > const &cookie, MirKeyboardAction action, xkb_keysym_t key_code, int scan_code, MirInputEventModifiers modifiers)
void set_modifier (MirEvent &event, MirInputEventModifiers modifiers)
void set_cursor_position (MirEvent &event, mir::geometry::Point const &pos)
void set_cursor_position (MirEvent &event, float x, float y)
void set_button_state (MirEvent &event, MirPointerButtons button_state)
EventUPtr make_event (MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, uint64_t mac, MirKeyboardAction action, xkb_keysym_t key_code, int scan_code, MirInputEventModifiers modifiers) MIR_FOR_REMOVAL_IN_VERSION_1("unused")
EventUPtr make_event (MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, MirKeyboardAction action, xkb_keysym_t key_code, int scan_code, MirInputEventModifiers modifiers) MIR_FOR_REMOVAL_IN_VERSION_1("unused")
EventUPtr make_event (MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, std::vector< uint8_t > const &mac, MirInputEventModifiers modifiers)
EventUPtr make_event (MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, uint64_t mac, MirInputEventModifiers modifiers) MIR_FOR_REMOVAL_IN_VERSION_1("unused")
EventUPtr make_event (MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, MirInputEventModifiers modifiers) MIR_FOR_REMOVAL_IN_VERSION_1("unused")
void add_touch (MirEvent &event, MirTouchId touch_id, MirTouchAction action, MirTouchTooltype tooltype, float x_axis_value, float y_axis_value, float pressure_value, float touch_major_value, float touch_minor_value, float size_value)
EventUPtr make_event (MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, uint64_t mac, MirInputEventModifiers modifiers, MirPointerAction action, MirPointerButtons buttons_pressed, float x_axis_value, float y_axis_value, float hscroll_value, float vscroll_value) MIR_FOR_REMOVAL_IN_VERSION_1("unused")
EventUPtr make_event (MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, MirInputEventModifiers modifiers, MirPointerAction action, MirPointerButtons buttons_pressed, float x_axis_value, float y_axis_value, float hscroll_value, float vscroll_value) MIR_FOR_REMOVAL_IN_VERSION_1("unused")
EventUPtr make_event (MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, std::vector< uint8_t > const &mac, MirInputEventModifiers modifiers, MirPointerAction action, MirPointerButtons buttons_pressed, float x_axis_value, float y_axis_value, float hscroll_value, float vscroll_value, float relative_x_value, float relative_y_value)
EventUPtr make_event (MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, uint64_t mac, MirInputEventModifiers modifiers, MirPointerAction action, MirPointerButtons buttons_pressed, float x_axis_value, float y_axis_value, float hscroll_value, float vscroll_value, float relative_x_value, float relative_y_value) MIR_FOR_REMOVAL_IN_VERSION_1("unused")
EventUPtr make_event (MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, MirInputEventModifiers modifiers, MirPointerAction action, MirPointerButtons buttons_pressed, float x_axis_value, float y_axis_value, float hscroll_value, float vscroll_value, float relative_x_value, float relative_y_value) MIR_FOR_REMOVAL_IN_VERSION_1("unused")
EventUPtr make_event (MirInputConfigurationAction action, MirInputDeviceId id, std::chrono::nanoseconds time) MIR_FOR_REMOVAL_IN_VERSION_1("unused")
EventUPtr make_event (std::chrono::nanoseconds timestamp, MirPointerButtons pointer_buttons, MirInputEventModifiers modifiers, float x_axis_value, float y_axis_value, std::vector< InputDeviceState > &&device_states)
EventUPtr make_event (MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, std::vector< uint8_t > const &mac, MirInputEventModifiers modifiers, std::vector< ContactState > const &contacts)
EventUPtr clone_event (MirEvent const &event)
void transform_positions (MirEvent &event, mir::geometry::Displacement const &movement)
void set_window_id (MirEvent &event, int window_id)
EventUPtr make_start_drag_and_drop_event (frontend::SurfaceId const &surface_id, std::vector< uint8_t > const &handle)
void set_drag_and_drop_handle (MirEvent &event, std::vector< uint8_t > const &handle)

Function Documentation

◆ add_touch()

void mir::events::add_touch ( MirEvent & event,
MirTouchId touch_id,
MirTouchAction action,
MirTouchTooltype tooltype,
float x_axis_value,
float y_axis_value,
float pressure_value,
float touch_major_value,
float touch_minor_value,
float size_value )

◆ clone_event()

EventUPtr mir::events::clone_event ( MirEvent const & event)

◆ make_event() [1/23]

EventUPtr mir::events::make_event ( frontend::SurfaceId const & surface_id)

◆ make_event() [2/23]

EventUPtr mir::events::make_event ( frontend::SurfaceId const & surface_id,
geometry::Rectangle placement )

Surface placement event.

◆ make_event() [3/23]

EventUPtr mir::events::make_event ( frontend::SurfaceId const & surface_id,
geometry::Size const & size )

◆ make_event() [4/23]

EventUPtr mir::events::make_event ( frontend::SurfaceId const & surface_id,
int dpi,
float scale,
double refresh_rate,
MirFormFactor form_factor,
uint32_t id )

◆ make_event() [5/23]

EventUPtr mir::events::make_event ( frontend::SurfaceId const & surface_id,
MirInputDeviceId id,
std::string const & model,
std::string const & layout,
std::string const & variant,
std::string const & options )

◆ make_event() [6/23]

EventUPtr mir::events::make_event ( frontend::SurfaceId const & surface_id,
MirOrientation orientation )

◆ make_event() [7/23]

EventUPtr mir::events::make_event ( frontend::SurfaceId const & surface_id,
MirSurfaceAttrib attribute,
int value )

◆ make_event() [8/23]

EventUPtr mir::events::make_event ( frontend::SurfaceId const & surface_id,
MirWindowAttrib attribute,
int value )

◆ make_event() [9/23]

EventUPtr mir::events::make_event ( MirInputConfigurationAction action,
MirInputDeviceId id,
std::chrono::nanoseconds time )

◆ make_event() [10/23]

EventUPtr mir::events::make_event ( MirInputDeviceId device_id,
std::chrono::nanoseconds timestamp,
MirInputEventModifiers modifiers )

◆ make_event() [11/23]

EventUPtr mir::events::make_event ( MirInputDeviceId device_id,
std::chrono::nanoseconds timestamp,
MirInputEventModifiers modifiers,
MirPointerAction action,
MirPointerButtons buttons_pressed,
float x_axis_value,
float y_axis_value,
float hscroll_value,
float vscroll_value )

◆ make_event() [12/23]

EventUPtr mir::events::make_event ( MirInputDeviceId device_id,
std::chrono::nanoseconds timestamp,
MirInputEventModifiers modifiers,
MirPointerAction action,
MirPointerButtons buttons_pressed,
float x_axis_value,
float y_axis_value,
float hscroll_value,
float vscroll_value,
float relative_x_value,
float relative_y_value )

◆ make_event() [13/23]

EventUPtr mir::events::make_event ( MirInputDeviceId device_id,
std::chrono::nanoseconds timestamp,
MirKeyboardAction action,
xkb_keysym_t key_code,
int scan_code,
MirInputEventModifiers modifiers )

◆ make_event() [14/23]

EventUPtr mir::events::make_event ( MirInputDeviceId device_id,
std::chrono::nanoseconds timestamp,
std::vector< uint8_t > const & cookie,
MirKeyboardAction action,
xkb_keysym_t key_code,
int scan_code,
MirInputEventModifiers modifiers )

◆ make_event() [15/23]

EventUPtr mir::events::make_event ( MirInputDeviceId device_id,
std::chrono::nanoseconds timestamp,
std::vector< uint8_t > const & mac,
MirInputEventModifiers modifiers )

◆ make_event() [16/23]

EventUPtr mir::events::make_event ( MirInputDeviceId device_id,
std::chrono::nanoseconds timestamp,
std::vector< uint8_t > const & mac,
MirInputEventModifiers modifiers,
MirPointerAction action,
MirPointerButtons buttons_pressed,
float x_axis_value,
float y_axis_value,
float hscroll_value,
float vscroll_value,
float relative_x_value,
float relative_y_value )

◆ make_event() [17/23]

EventUPtr mir::events::make_event ( MirInputDeviceId device_id,
std::chrono::nanoseconds timestamp,
std::vector< uint8_t > const & mac,
MirInputEventModifiers modifiers,
std::vector< ContactState > const & contacts )

◆ make_event() [18/23]

EventUPtr mir::events::make_event ( MirInputDeviceId device_id,
std::chrono::nanoseconds timestamp,
uint64_t mac,
MirInputEventModifiers modifiers )

◆ make_event() [19/23]

EventUPtr mir::events::make_event ( MirInputDeviceId device_id,
std::chrono::nanoseconds timestamp,
uint64_t mac,
MirInputEventModifiers modifiers,
MirPointerAction action,
MirPointerButtons buttons_pressed,
float x_axis_value,
float y_axis_value,
float hscroll_value,
float vscroll_value )

◆ make_event() [20/23]

EventUPtr mir::events::make_event ( MirInputDeviceId device_id,
std::chrono::nanoseconds timestamp,
uint64_t mac,
MirInputEventModifiers modifiers,
MirPointerAction action,
MirPointerButtons buttons_pressed,
float x_axis_value,
float y_axis_value,
float hscroll_value,
float vscroll_value,
float relative_x_value,
float relative_y_value )

◆ make_event() [21/23]

EventUPtr mir::events::make_event ( MirInputDeviceId device_id,
std::chrono::nanoseconds timestamp,
uint64_t mac,
MirKeyboardAction action,
xkb_keysym_t key_code,
int scan_code,
MirInputEventModifiers modifiers )

◆ make_event() [22/23]

EventUPtr mir::events::make_event ( MirPromptSessionState state)

◆ make_event() [23/23]

EventUPtr mir::events::make_event ( std::chrono::nanoseconds timestamp,
MirPointerButtons pointer_buttons,
MirInputEventModifiers modifiers,
float x_axis_value,
float y_axis_value,
std::vector< InputDeviceState > && device_states )

◆ make_start_drag_and_drop_event()

EventUPtr mir::events::make_start_drag_and_drop_event ( frontend::SurfaceId const & surface_id,
std::vector< uint8_t > const & handle )

◆ set_button_state()

void mir::events::set_button_state ( MirEvent & event,
MirPointerButtons button_state )

◆ set_cursor_position() [1/2]

void mir::events::set_cursor_position ( MirEvent & event,
float x,
float y )

◆ set_cursor_position() [2/2]

void mir::events::set_cursor_position ( MirEvent & event,
mir::geometry::Point const & pos )

◆ set_drag_and_drop_handle()

void mir::events::set_drag_and_drop_handle ( MirEvent & event,
std::vector< uint8_t > const & handle )

◆ set_modifier()

void mir::events::set_modifier ( MirEvent & event,
MirInputEventModifiers modifiers )

◆ set_window_id()

void mir::events::set_window_id ( MirEvent & event,
int window_id )

◆ transform_positions()

void mir::events::transform_positions ( MirEvent & event,
mir::geometry::Displacement const & movement )

Copyright © 2012-2026 Canonical Ltd.
Generated on Sun Mar 15 06:10:58 UTC 2026
This documentation is licensed under the GPL version 2 or 3.