Pepper_31_C++_interfaces
cursor_control_dev.h
Go to the documentation of this file.
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef PPAPI_CPP_DEV_CURSOR_CONTROL_DEV_H_
6 #define PPAPI_CPP_DEV_CURSOR_CONTROL_DEV_H_
7 
8 #include "ppapi/c/dev/ppb_cursor_control_dev.h"
9 
10 /// @file
11 /// This file defines APIs for controlling the cursor.
12 
13 namespace pp {
14 
15 class ImageData;
16 class InstanceHandle;
17 class Point;
18 
19 /// APIs for controlling the cursor.
21  public:
23 
24  bool SetCursor(const InstanceHandle& instance,
25  PP_CursorType_Dev type,
26  const ImageData& custom_image,
27  const Point& hot_spot);
28  bool LockCursor(const InstanceHandle& instance);
29  bool UnlockCursor(const InstanceHandle& instance);
30  bool HasCursorLock(const InstanceHandle& instance);
31  bool CanLockCursor(const InstanceHandle& instance);
32 };
33 
34 } // namespace pp
35 
36 #endif // PPAPI_CPP_DEV_CURSOR_CONTROL_DEV_H_
APIs for controlling the cursor.
A 2 dimensional point with 0,0 being the upper-left starting coordinate.
Definition: point.h:16
bool SetCursor(const InstanceHandle &instance, PP_CursorType_Dev type, const ImageData &custom_image, const Point &hot_spot)
bool LockCursor(const InstanceHandle &instance)
bool CanLockCursor(const InstanceHandle &instance)
bool HasCursorLock(const InstanceHandle &instance)
bool UnlockCursor(const InstanceHandle &instance)