Enumerations | |
enum | t_modifiers { eCommandKey, eShiftKey, eControlKey, eAltKey, eLeftButton, eRightButton, eMiddleButton, ePopupMenu, eCapsLock, eAutoRepeat } |
Bit mask values for various meta-key presses on the keyboard. More... | |
enum | t_jmouse_cursortype { JMOUSE_CURSOR_NONE, JMOUSE_CURSOR_ARROW, JMOUSE_CURSOR_WAIT, JMOUSE_CURSOR_IBEAM, JMOUSE_CURSOR_CROSSHAIR, JMOUSE_CURSOR_COPYING, JMOUSE_CURSOR_POINTINGHAND, JMOUSE_CURSOR_DRAGGINGHAND, JMOUSE_CURSOR_RESIZE_LEFTRIGHT, JMOUSE_CURSOR_RESIZE_UPDOWN, JMOUSE_CURSOR_RESIZE_FOURWAY, JMOUSE_CURSOR_RESIZE_TOPEDGE, JMOUSE_CURSOR_RESIZE_BOTTOMEDGE, JMOUSE_CURSOR_RESIZE_LEFTEDGE, JMOUSE_CURSOR_RESIZE_RIGHTEDGE, JMOUSE_CURSOR_RESIZE_TOPLEFTCORNER, JMOUSE_CURSOR_RESIZE_TOPRIGHTCORNER, JMOUSE_CURSOR_RESIZE_BOTTOMLEFTCORNER, JMOUSE_CURSOR_RESIZE_BOTTOMRIGHTCORNER } |
Mouse cursor types. More... | |
Functions | |
t_modifiers | jkeyboard_getcurrentmodifiers () |
Return the last known combination of modifier keys being held by the user. More... | |
t_modifiers | jkeyboard_getcurrentmodifiers_realtime () |
Return the current combination of modifier keys being held by the user. More... | |
void | jmouse_getposition_global (int *x, int *y) |
Get the position of the mouse cursor in screen coordinates. More... | |
void | jmouse_setposition_global (int x, int y) |
Set the position of the mouse cursor in screen coordinates. More... | |
void | jmouse_setposition_view (t_object *patcherview, double cx, double cy) |
Set the position of the mouse cursor relative to the patcher canvas coordinates. More... | |
void | jmouse_setposition_box (t_object *patcherview, t_object *box, double bx, double by) |
Set the position of the mouse cursor relative to a box within the patcher canvas coordinates. More... | |
void | jmouse_setcursor (t_object *patcherview, t_object *box, t_jmouse_cursortype type) |
Set the mouse cursor. More... | |
enum t_jmouse_cursortype |
Mouse cursor types.
enum t_modifiers |
Bit mask values for various meta-key presses on the keyboard.
t_modifiers jkeyboard_getcurrentmodifiers | ( | ) |
Return the last known combination of modifier keys being held by the user.
t_modifiers jkeyboard_getcurrentmodifiers_realtime | ( | ) |
Return the current combination of modifier keys being held by the user.
void jmouse_getposition_global | ( | int * | x, |
int * | y | ||
) |
Get the position of the mouse cursor in screen coordinates.
x | The address of a variable to hold the x-coordinate upon return. |
y | The address of a variable to hold the y-coordinate upon return. |
void jmouse_setcursor | ( | t_object * | patcherview, |
t_object * | box, | ||
t_jmouse_cursortype | type | ||
) |
Set the mouse cursor.
patcherview | The patcherview for which the cursor should be applied. |
box | The box for which the cursor should be applied. |
type | The type of cursor for the mouse to use. |
Set the position of the mouse cursor relative to a box within the patcher canvas coordinates.
patcherview | The patcherview containing the box upon which the mouse coordinates are based. |
box | The box upon which the mouse coordinates are based. |
bx | The new x-coordinate of the mouse cursor position. |
by | The new y-coordinate of the mouse cursor position. |
void jmouse_setposition_global | ( | int | x, |
int | y | ||
) |
Set the position of the mouse cursor in screen coordinates.
x | The new x-coordinate of the mouse cursor position. |
y | The new y-coordinate of the mouse cursor position. |
void jmouse_setposition_view | ( | t_object * | patcherview, |
double | cx, | ||
double | cy | ||
) |
Set the position of the mouse cursor relative to the patcher canvas coordinates.
patcherview | The patcherview upon which the mouse coordinates are based. |
cx | The new x-coordinate of the mouse cursor position. |
cy | The new y-coordinate of the mouse cursor position. |