Mir
Namespaces | Typedefs | Functions
event_builders.h File Reference
#include "mir_toolkit/event.h"
#include "mir/geometry/size.h"
#include "mir/geometry/point.h"
#include "mir/geometry/rectangle.h"
#include "mir/geometry/displacement.h"
#include "mir/frontend/surface_id.h"
#include "mir/events/input_device_state.h"
#include "mir/events/contact_state.h"
#include <memory>
#include <functional>
#include <chrono>
#include <vector>
Include dependency graph for event_builders.h:

Go to the source code of this file.

Namespaces

 mir
 
 mir::events
 

Typedefs

typedef std::unique_ptr< MirEvent, void(*)(MirEvent *)> mir::EventUPtr
 

Functions

EventUPtr mir::events::make_event (frontend::SurfaceId const &surface_id, MirOrientation orientation)
 
EventUPtr mir::events::make_event (MirPromptSessionState state)
 
EventUPtr mir::events::make_event (frontend::SurfaceId const &surface_id, geometry::Size const &size)
 
EventUPtr mir::events::make_event (frontend::SurfaceId const &surface_id, MirSurfaceAttrib attribute, int value) MIR_FOR_REMOVAL_IN_VERSION_1("use make_event with MirWindowAttribute instead")
 
EventUPtr mir::events::make_event (frontend::SurfaceId const &surface_id, MirWindowAttrib attribute, int value)
 
EventUPtr mir::events::make_event (frontend::SurfaceId const &surface_id)
 
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)
 
EventUPtr mir::events::make_event (frontend::SurfaceId const &surface_id, int dpi, float scale, double refresh_rate, MirFormFactor form_factor, uint32_t id)
 
EventUPtr mir::events::make_event (frontend::SurfaceId const &surface_id, geometry::Rectangle placement)
 Surface placement event. More...
 
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)
 
void mir::events::set_modifier (MirEvent &event, MirInputEventModifiers modifiers)
 
void mir::events::set_cursor_position (MirEvent &event, mir::geometry::Point const &pos)
 
void mir::events::set_cursor_position (MirEvent &event, float x, float y)
 
void mir::events::set_button_state (MirEvent &event, MirPointerButtons button_state)
 
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) MIR_FOR_REMOVAL_IN_VERSION_1("unused")
 
EventUPtr mir::events::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 mir::events::make_event (MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, std::vector< uint8_t > const &mac, MirInputEventModifiers modifiers)
 
EventUPtr mir::events::make_event (MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, uint64_t mac, MirInputEventModifiers modifiers) MIR_FOR_REMOVAL_IN_VERSION_1("unused")
 
EventUPtr mir::events::make_event (MirInputDeviceId device_id, std::chrono::nanoseconds timestamp, MirInputEventModifiers modifiers) MIR_FOR_REMOVAL_IN_VERSION_1("unused")
 
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)
 
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) MIR_FOR_REMOVAL_IN_VERSION_1("unused")
 
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) MIR_FOR_REMOVAL_IN_VERSION_1("unused")
 
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)
 
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) MIR_FOR_REMOVAL_IN_VERSION_1("unused")
 
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) MIR_FOR_REMOVAL_IN_VERSION_1("unused")
 
EventUPtr mir::events::make_event (MirInputConfigurationAction action, MirInputDeviceId id, std::chrono::nanoseconds time) MIR_FOR_REMOVAL_IN_VERSION_1("unused")
 
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)
 
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)
 
EventUPtr mir::events::clone_event (MirEvent const &event)
 
void mir::events::transform_positions (MirEvent &event, mir::geometry::Displacement const &movement)
 
void mir::events::set_window_id (MirEvent &event, int window_id)
 
EventUPtr mir::events::make_start_drag_and_drop_event (frontend::SurfaceId const &surface_id, std::vector< uint8_t > const &handle)
 
void mir::events::set_drag_and_drop_handle (MirEvent &event, std::vector< uint8_t > const &handle)
 

Copyright © 2012-2020 Canonical Ltd.
Generated on Tue Jul 28 09:29:59 UTC 2020
This documentation is licensed under the GPL version 2 or 3.