blob: e759cf2edc59d1d96accde42d217db689e11253b [file] [log] [blame]
sergeyu@chromium.org6c82a7e2013-06-04 18:51:23 +00001/*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11#ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_MOUSE_CURSOR_SHAPE_H_
12#define WEBRTC_MODULES_DESKTOP_CAPTURE_MOUSE_CURSOR_SHAPE_H_
13
14#include <string>
15
16#include "webrtc/modules/desktop_capture/desktop_geometry.h"
17
18namespace webrtc {
19
20// Type used to return mouse cursor shape from video capturers.
sergeyu@chromium.orgaf54d4b2013-10-16 02:42:38 +000021//
22// TODO(sergeyu): Remove this type and use MouseCursor instead.
sergeyu@chromium.org6c82a7e2013-06-04 18:51:23 +000023struct MouseCursorShape {
24 // Size of the cursor in screen pixels.
25 DesktopSize size;
26
27 // Coordinates of the cursor hotspot relative to upper-left corner.
28 DesktopVector hotspot;
29
30 // Cursor pixmap data in 32-bit BGRA format.
31 std::string data;
32};
33
34} // namespace webrtc
35
36#endif // WEBRTC_MODULES_DESKTOP_CAPTURE_MOUSE_CURSOR_SHAPE_H_