Mir
Classes | Functions
mir::events Namespace Reference

Classes

struct  ContactState
 
struct  InputDeviceState
 

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. More...
 
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)
 
bool operator== (ContactState const &lhs, ContactState const &rhs)
 

Function Documentation

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::clone_event ( MirEvent const &  event)
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 
)
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.

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 
)
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 
)
EventUPtr mir::events::make_event ( MirInputDeviceId  device_id,
std::chrono::nanoseconds  timestamp,
MirKeyboardAction  action,
xkb_keysym_t  key_code,
int  scan_code,
MirInputEventModifiers  modifiers 
)
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 
)
EventUPtr mir::events::make_event ( MirInputDeviceId  device_id,
std::chrono::nanoseconds  timestamp,
MirInputEventModifiers  modifiers 
)
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 
)
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 
)
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 
)
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 
)
EventUPtr mir::events::make_event ( MirInputConfigurationAction  action,
MirInputDeviceId  id,
std::chrono::nanoseconds  time 
)
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 
)
bool mir::events::operator== ( ContactState const &  lhs,
ContactState const &  rhs 
)
inline
void mir::events::set_button_state ( MirEvent event,
MirPointerButtons  button_state 
)
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_modifier ( MirEvent event,
MirInputEventModifiers  modifiers 
)
void mir::events::transform_positions ( MirEvent event,
mir::geometry::Displacement const &  movement 
)

Copyright © 2012-2016 Canonical Ltd.
Generated on Mon Jun 5 13:49:26 UTC 2017