aboutsummaryrefslogtreecommitdiff
path: root/src/cursor.h
blob: b8b686853893d64ae78c9a36cb78e51b0125e20a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
 * @file confirm.h
 * @author Joe Wingbermuehle
 * @date 2004-2006
 *
 * @brief Header for the cursor functions.
 *
 */

#ifndef CURSOR_H
#define CURSOR_H

#include "border.h"

/*@{*/
void InitializeCursors();
void StartupCursors();
void ShutdownCursors();
void DestroyCursors();
/*@}*/

int GrabMouseForResize(BorderActionType action);
int GrabMouseForMove();

int GrabMouseForMenu();
int GrabMouseForChoose();

Cursor GetFrameCursor(BorderActionType action);

void MoveMouse(Window win, int x, int y);

void SetMousePosition(int x, int y);
void GetMousePosition(int *x, int *y);

unsigned int GetMouseMask();

void SetDefaultCursor(Window w);

void SetDoubleClickSpeed(const char *str);
void SetDoubleClickDelta(const char *str);

#endif