1971bc855b1694f9c4b32babc10b3f6639816b23
[dana/openbox.git] / openbox / misc.h
1 /* -*- indent-tabs-mode: t; tab-width: 4; c-basic-offset: 4; -*-
2
3    misc.h for the Openbox window manager
4    Copyright (c) 2003        Ben Jansens
5
6    This program is free software; you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation; either version 2 of the License, or
9    (at your option) any later version.
10
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15
16    See the COPYING file for a copy of the GNU General Public License.
17 */
18
19 #ifndef __ob__misc_h
20 #define __ob__misc_h
21
22 typedef enum
23 {
24     OB_CURSOR_NONE,
25     OB_CURSOR_POINTER,
26     OB_CURSOR_BUSY,
27     OB_CURSOR_MOVE,
28     OB_CURSOR_NORTH,
29     OB_CURSOR_NORTHEAST,
30     OB_CURSOR_EAST,
31     OB_CURSOR_SOUTHEAST,
32     OB_CURSOR_SOUTH,
33     OB_CURSOR_SOUTHWEST,
34     OB_CURSOR_WEST,
35     OB_CURSOR_NORTHWEST,
36     OB_NUM_CURSORS
37 } ObCursor;
38
39 typedef enum
40 {
41     OB_KEY_RETURN,
42     OB_KEY_ESCAPE,
43     OB_KEY_LEFT,
44     OB_KEY_RIGHT,
45     OB_KEY_UP,
46     OB_KEY_DOWN,
47     OB_NUM_KEYS
48 } ObKey;
49
50 typedef enum
51 {
52     OB_STATE_STARTING,
53     OB_STATE_RUNNING,
54     OB_STATE_EXITING
55 } ObState;
56
57 typedef enum
58 {
59     OB_DIRECTION_NORTH,
60     OB_DIRECTION_NORTHEAST,
61     OB_DIRECTION_EAST,
62     OB_DIRECTION_SOUTHEAST,
63     OB_DIRECTION_SOUTH,
64     OB_DIRECTION_SOUTHWEST,
65     OB_DIRECTION_WEST,
66     OB_DIRECTION_NORTHWEST
67 } ObDirection;
68
69 typedef enum
70 {
71     OB_ORIENTATION_HORZ,
72     OB_ORIENTATION_VERT
73 } ObOrientation;
74
75 typedef enum
76 {
77     OB_CORNER_TOPLEFT,
78     OB_CORNER_TOPRIGHT,
79     OB_CORNER_BOTTOMLEFT,
80     OB_CORNER_BOTTOMRIGHT
81 } ObCorner;
82
83 typedef enum {
84     OB_MOUSE_ACTION_PRESS,
85     OB_MOUSE_ACTION_RELEASE,
86     OB_MOUSE_ACTION_CLICK,
87     OB_MOUSE_ACTION_DOUBLE_CLICK,
88     OB_MOUSE_ACTION_MOTION,
89     OB_NUM_MOUSE_ACTIONS
90 } ObMouseAction;
91
92 typedef enum {
93     OB_USER_ACTION_KEYBOARD_KEY,
94     OB_USER_ACTION_MOUSE_PRESS,
95     OB_USER_ACTION_MOUSE_RELEASE,
96     OB_USER_ACTION_MOUSE_CLICK,
97     OB_USER_ACTION_MOUSE_DOUBLE_CLICK,
98     OB_USER_ACTION_MOUSE_MOTION,
99     OB_USER_ACTION_MENU_SELECTION,
100     OB_NUM_USER_ACTIONS
101 } ObUserAction;
102
103 #endif