~ubuntu-branches/ubuntu/vivid/mir/vivid

« back to all changes in this revision

Viewing changes to include/shared/mir_toolkit/event.h

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2014-07-01 15:54:36 UTC
  • mfrom: (1.1.65)
  • Revision ID: package-import@ubuntu.com-20140701155436-2gtp39qr2hu7a22w
Tags: 0.4.0+14.10.20140701.1-0ubuntu1
* New upstream release 0.4.0 (https://launchpad.net/mir/+milestone/0.4.0)
  - mirclient ABI bumped to 8. Clients need rebuilding.
    . Add surface attribute for visibility.
    . Add surface orientation API.
  - mirserver ABI bumped to 22. Shells need rebuilding.
    . Allow setting the orientation of a server surface.
    . Change compositor::Scene to expose compositor::SceneElements instead
      of graphics::Renderables.
    . Change various input and Surface classes to support the client cursor
      API.
    . Support unregistering fd handlers in the EventHandlerRegister and
      related interfaces (MainLoop).
    . server: Change mc::Scene to deal in mc::SceneElements instead of
      mg::Renderables.
    . Add visibility tracking to mc::SceneElement interface and
      implementations.
    . Unregister FD Handler from EventHandlerRegister.
    . Sending user input events through Surfaces.
    . Move InputChannelFactory into DefaultServerConfiguration.
    . Ensure default input region is updated when surface is resized. (LP: #1332632)
  - android: support alpha blending overlays together in HWC. Bumps
    android-headers version requirement from 4.2.2 to 4.4.2. (LP: #1329879)
  - android: designate the buffer usage when attempting to access or
    update the fence associated with the native buffer. (LP: #1329868)
  - Enable client cursor API.
  - Enable support for USB touchscreens.
  - Various test improvements.
  - Ensure the_cursor() is not null. (LP: #1334010)

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
    mir_event_type_motion,
42
42
    mir_event_type_surface,
43
43
    mir_event_type_resize,
44
 
    mir_event_type_prompt_session_state_change
 
44
    mir_event_type_prompt_session_state_change,
 
45
    mir_event_type_orientation
45
46
} MirEventType;
46
47
 
47
48
typedef enum {
212
213
    MirPromptSessionState new_state;
213
214
} MirPromptSessionEvent;
214
215
 
 
216
typedef struct MirOrientationEvent
 
217
{
 
218
    MirEventType type;
 
219
 
 
220
    int surface_id;
 
221
    MirOrientation direction;
 
222
} MirOrientationEvent;
 
223
 
215
224
typedef union
216
225
{
217
226
    MirEventType    type;
220
229
    MirSurfaceEvent surface;
221
230
    MirResizeEvent  resize;
222
231
    MirPromptSessionEvent  prompt_session;
 
232
    MirOrientationEvent orientation;
223
233
} MirEvent;
224
234
 
225
235
#ifdef __cplusplus