Go to the documentation of this file.
19 #ifndef MIR_EVENT_BUILDERS_H_
20 #define MIR_EVENT_BUILDERS_H_
28 #include "mir/frontend/surface_id.h"
29 #include "mir/events/input_device_state.h"
30 #include "mir/events/contact_state.h"
58 std::string
const& layout, std::string
const& variant, std::string
const& options);
61 frontend::SurfaceId
const& surface_id,
73 std::vector<uint8_t>
const& cookie,
MirKeyboardAction action, xkb_keysym_t key_code,
105 float pressure_value,
float touch_major_value,
float touch_minor_value,
float size_value);
112 float x_axis_value,
float y_axis_value,
119 float x_axis_value,
float y_axis_value,
125 float x_axis_value,
float y_axis_value,
126 float hscroll_value,
float vscroll_value,
127 float relative_x_value,
float relative_y_value);
133 float x_axis_value,
float y_axis_value,
134 float hscroll_value,
float vscroll_value,
141 float x_axis_value,
float y_axis_value,
142 float hscroll_value,
float vscroll_value,
154 std::vector<InputDeviceState>&& device_states);
158 std::vector<ContactState>
const& contacts);
169 #endif // MIR_EVENT_BUILDERS_H_
void set_modifier(MirEvent &event, MirInputEventModifiers modifiers)
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(frontend::SurfaceId const &surface_id, MirOrientation orientation)
void set_cursor_position(MirEvent &event, mir::geometry::Point const &pos)
void set_button_state(MirEvent &event, MirPointerButtons button_state)
void set_window_id(MirEvent &event, int window_id)
Definition: rectangle.h:33
#define MIR_FOR_REMOVAL_IN_VERSION_1(message)
Definition: deprecations.h:30
Definition: splash_session.h:24
void transform_positions(MirEvent &event, mir::geometry::Displacement const &movement)
void set_drag_and_drop_handle(MirEvent &event, std::vector< uint8_t > const &handle)
Definition: displacement.h:33
std::unique_ptr< MirEvent, void(*)(MirEvent *)> EventUPtr
Definition: event_builders.h:39
EventUPtr clone_event(MirEvent const &event)
EventUPtr make_start_drag_and_drop_event(frontend::SurfaceId const &surface_id, std::vector< uint8_t > const &handle)
Copyright © 2012-2020
Canonical Ltd.
Generated on Sun Jul 12 13:42:31 UTC 2020
This documentation is licensed under the GPL version 2 or 3.