Mir
Macros | Functions
event.cpp File Reference
#include "mir/event_type_to_string.h"
#include "mir/log.h"
#include "mir_toolkit/events/event.h"
#include "mir/events/event_private.h"
#include "mir_toolkit/events/surface_event.h"
#include "mir_toolkit/events/resize_event.h"
#include "mir_toolkit/events/prompt_session_event.h"
#include "mir_toolkit/events/orientation_event.h"
#include <cstdlib>
#include <cstring>
Include dependency graph for event.cpp:

Macros

#define MIR_LOG_COMPONENT   "event-access"
 

Functions

MirEventType mir_event_get_type (MirEvent const *ev)
 Retrieves the type of a MirEvent. More...
 
MirInputEvent const * mir_event_get_input_event (MirEvent const *ev)
 Retrieve the MirInputEvent associated with a MirEvent of type mir_event_type_input. More...
 
MirSurfaceEvent const * mir_event_get_surface_event (MirEvent const *ev)
 Retrieve the MirSurfaceEvent associated with a MirEvent of type mir_event_type_surface. More...
 
MirResizeEvent const * mir_event_get_resize_event (MirEvent const *ev)
 Retrieve the MirResizeEvent associated with a MirEvent of type mir_event_type_resize. More...
 
MirPromptSessionEvent const * mir_event_get_prompt_session_event (MirEvent const *ev)
 Retrieve the MirPromptSessionEvent associated with a MirEvent of type mir_event_type_prompt_session_state_change. More...
 
MirOrientationEvent const * mir_event_get_orientation_event (MirEvent const *ev)
 Retrieve the MirOrientationEvent associated with a MirEvent of type mir_event_type_orientation. More...
 
MirCloseSurfaceEvent const * mir_event_get_close_surface_event (MirEvent const *ev)
 
MirKeymapEvent const * mir_event_get_keymap_event (MirEvent const *ev)
 Retrieve the MirKeymapEvent associated with a MirEvent of type mir_event_type_keymap. More...
 
MirInputConfigurationEvent const * mir_event_get_input_configuration_event (MirEvent const *ev)
 Retrieve the MirInputConfiguration associated with a MirEvent of type mir_event_type_input_configuration. More...
 
MirSurfaceOutputEvent const * mir_event_get_surface_output_event (MirEvent const *ev)
 Retrieve the MirSurfaceOutputEvent associated with a MirEvent of type mir_event_type_surface_output. More...
 
MirSurfaceAttrib mir_surface_event_get_attribute (MirSurfaceEvent const *ev)
 Retrieve the attribute index configured with a given MirSurfaceEvent. More...
 
int mir_surface_event_get_attribute_value (MirSurfaceEvent const *ev)
 Retrieve the new value of the associated attribute for a given MirSurfaceEvent. More...
 
int mir_resize_event_get_width (MirResizeEvent const *ev)
 Retrieve the new width reported by a given MirResizeEvent. More...
 
int mir_resize_event_get_height (MirResizeEvent const *ev)
 Retrieve the new height reported by a given MirResizeEvent. More...
 
MirPromptSessionState mir_prompt_session_event_get_state (MirPromptSessionEvent const *ev)
 Retrieve the new prompt session state reported by a given MirPromptSessionEvent. More...
 
MirOrientation mir_orientation_event_get_direction (MirOrientationEvent const *ev)
 Retrieve the new orientation reported by this MirOrientationEvent. More...
 
void mir_keymap_event_get_keymap_buffer (MirKeymapEvent const *ev, char const **buffer, size_t *length)
 Retrieve the new keymap reported by this MirKeymapEvent. More...
 
MirInputDeviceId mir_keymap_event_get_device_id (MirKeymapEvent const *ev)
 Retrieve the device id the keymap reported by this MirKeymapEvent applies to. More...
 
MirInputConfigurationAction mir_input_configuration_event_get_action (MirInputConfigurationEvent const *ev)
 Retrieve the input configuration action which occurred. More...
 
int64_t mir_input_configuration_event_get_time (MirInputConfigurationEvent const *ev)
 Retreive the time associated with a MirInputConfiguration event. More...
 
MirInputDeviceId mir_input_configuration_event_get_device_id (MirInputConfigurationEvent const *ev)
 Retreive the device id associated with a MirInputConfiguration event. More...
 
int mir_surface_output_event_get_dpi (MirSurfaceOutputEvent const *ev)
 Retrieve the DPI of the new output configuration of a MirSurfaceOutputEvent. More...
 
MirFormFactor mir_surface_output_event_get_form_factor (MirSurfaceOutputEvent const *ev)
 Retrieve the form factor of the new output configuration of a MirSurfaceOutputEvent. More...
 
float mir_surface_output_event_get_scale (MirSurfaceOutputEvent const *ev)
 Retrieve the form factor of the new output configuration of a MirSurfaceOutputEvent. More...
 
uint32_t mir_surface_output_event_get_output_id (MirSurfaceOutputEvent const *ev)
 Retrieve the ID of the output this surface is on from a MirSurfaceOutputEvent. More...
 
MirEvent const * mir_event_ref (MirEvent const *ev)
 Reference this MirEvent and return a pointer to the newly referenced instance. More...
 
void mir_event_unref (MirEvent const *ev)
 Release a reference to a MirEvent. More...
 

Macro Definition Documentation

#define MIR_LOG_COMPONENT   "event-access"

Function Documentation

MirCloseSurfaceEvent const* mir_event_get_close_surface_event ( MirEvent const *  ev)

Copyright © 2012-2015 Canonical Ltd.
Generated on Wed Mar 30 00:29:56 UTC 2016