Pepper_31_C_interfaces
Public Attributes | List of all members
PPB_CursorControl_Dev_0_4 Struct Reference

#include <ppb_cursor_control_dev.h>

Collaboration diagram for PPB_CursorControl_Dev_0_4:
Collaboration graph

Public Attributes

PP_Bool(* SetCursor )(PP_Instance instance, enum PP_CursorType_Dev type, PP_Resource custom_image, const struct PP_Point *hot_spot)
 
PP_Bool(* LockCursor )(PP_Instance instance)
 
PP_Bool(* UnlockCursor )(PP_Instance instance)
 
PP_Bool(* HasCursorLock )(PP_Instance instance)
 
PP_Bool(* CanLockCursor )(PP_Instance instance)
 

Detailed Description

Definition at line 33 of file ppb_cursor_control_dev.h.

Member Data Documentation

PP_Bool(* PPB_CursorControl_Dev_0_4::CanLockCursor)(PP_Instance instance)

Returns PP_TRUE if the cursor can be locked, PP_FALSE otherwise.

Definition at line 76 of file ppb_cursor_control_dev.h.

PP_Bool(* PPB_CursorControl_Dev_0_4::HasCursorLock)(PP_Instance instance)

Returns PP_TRUE if the cursor is locked, PP_FALSE otherwise.

Definition at line 72 of file ppb_cursor_control_dev.h.

PP_Bool(* PPB_CursorControl_Dev_0_4::LockCursor)(PP_Instance instance)

This method causes the cursor to be moved to the center of the instance and be locked, preventing the user from moving it. The cursor is implicitly hidden from the user while locked. Cursor lock may only be requested in response to a PP_InputEvent_MouseDown, and then only if the event was generated via user gesture.

While the cursor is locked, any movement of the mouse will generate a PP_InputEvent_Type_MouseMove, whose x and y values indicate the position the cursor would have been moved to had the cursor not been locked, and had the screen been infinite in size.

The browser may revoke cursor lock for reasons including but not limited to the user pressing the ESC key, the user activating another program via a reserved keystroke (e.g., ALT+TAB), or some other system event.

Returns PP_TRUE if the cursor could be locked, PP_FALSE otherwise.

Definition at line 63 of file ppb_cursor_control_dev.h.

PP_Bool(* PPB_CursorControl_Dev_0_4::SetCursor)(PP_Instance instance, enum PP_CursorType_Dev type, PP_Resource custom_image, const struct PP_Point *hot_spot)

Set a cursor. If "type" is PP_CURSORTYPE_CUSTOM, then "custom_image" must be an ImageData resource containing the cursor and "hot_spot" must contain the offset within that image that refers to the cursor's position.

Definition at line 39 of file ppb_cursor_control_dev.h.

PP_Bool(* PPB_CursorControl_Dev_0_4::UnlockCursor)(PP_Instance instance)

Causes the cursor to be unlocked, allowing it to track user movement again.

Definition at line 68 of file ppb_cursor_control_dev.h.


The documentation for this struct was generated from the following file: