19 #ifndef MIR_EVENT_BUILDERS_H_ 20 #define MIR_EVENT_BUILDERS_H_ 39 typedef std::unique_ptr<MirEvent, void(*)(MirEvent*)>
EventUPtr;
58 std::string
const& layout, std::string
const& variant, std::string
const& options);
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,
149 EventUPtr
make_event(std::chrono::nanoseconds timestamp,
154 std::vector<InputDeviceState>&& device_states);
158 std::vector<ContactState>
const& contacts);
169 #endif // MIR_EVENT_BUILDERS_H_
AutoUnblockThread is a helper thread class that can gracefully shutdown at destruction time...
Definition: blob.h:26
void set_modifier(MirEvent &event, MirInputEventModifiers modifiers)
std::unique_ptr< MirEvent, void(*)(MirEvent *)> EventUPtr
Definition: event_builders.h:39
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)
#define MIR_FOR_REMOVAL_IN_VERSION_1(message)
Definition: deprecations.h:30
void set_button_state(MirEvent &event, MirPointerButtons button_state)
void set_cursor_position(MirEvent &event, mir::geometry::Point const &pos)
EventUPtr make_event(frontend::SurfaceId const &surface_id, MirOrientation orientation)
void set_window_id(MirEvent &event, int window_id)
void transform_positions(MirEvent &event, mir::geometry::Displacement const &movement)
Definition: displacement.h:32
Definition: int_wrapper.h:27
EventUPtr clone_event(MirEvent const &event)
Definition: rectangle.h:33
void set_drag_and_drop_handle(MirEvent &event, std::vector< uint8_t > const &handle)
EventUPtr make_start_drag_and_drop_event(frontend::SurfaceId const &surface_id, std::vector< uint8_t > const &handle)