19 #ifndef MIR_EVENT_BUILDERS_H_ 20 #define MIR_EVENT_BUILDERS_H_ 39 typedef std::unique_ptr<MirEvent, void(*)(MirEvent*)>
EventUPtr;
51 __attribute__ ((deprecated(
"use make_event with MirWindowAttribute instead")));
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,
113 float hscroll_value,
float vscroll_value) __attribute__ ((deprecated));
119 float x_axis_value,
float y_axis_value,
120 float hscroll_value,
float vscroll_value) __attribute__ ((deprecated));
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,
135 float relative_x_value,
float relative_y_value) __attribute__ ((deprecated));
141 float x_axis_value,
float y_axis_value,
142 float hscroll_value,
float vscroll_value,
143 float relative_x_value,
float relative_y_value) __attribute__ ((deprecated));
147 MirInputDeviceId id, std::chrono::nanoseconds time) __attribute__((deprecated));
149 EventUPtr
make_event(std::chrono::nanoseconds timestamp,
154 std::vector<InputDeviceState>&& device_states);
158 std::vector<ContactState>
const& contacts);
166 #endif // MIR_EVENT_BUILDERS_H_
Definition: as_render_target.h:27
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)
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 transform_positions(MirEvent &event, mir::geometry::Displacement const &movement)
std::unique_ptr< MirEvent, void(*)(MirEvent *)> EventUPtr
Definition: event_builders.h:39
Definition: displacement.h:32
Definition: int_wrapper.h:27
EventUPtr clone_event(MirEvent const &event)
Definition: rectangle.h:33