Mercurial > geeqie
comparison src/typedefs.h @ 448:a73cc0fa14d0
Use explicit names for mouse buttons instead of numbers.
MOUSE_BUTTON_LEFT = 1
MOUSE_BUTTON_MIDDLE = 2
MOUSE_BUTTON_RIGHT = 3
It makes the code easier to read.
author | zas_ |
---|---|
date | Sun, 20 Apr 2008 21:30:36 +0000 |
parents | ddabc4873a3f |
children | 7a69309b91c8 |
comparison
equal
deleted
inserted
replaced
447:d87de3a3eb3b | 448:a73cc0fa14d0 |
---|---|
10 */ | 10 */ |
11 | 11 |
12 | 12 |
13 #ifndef TYPEDEFS_H | 13 #ifndef TYPEDEFS_H |
14 #define TYPEDEFS_H | 14 #define TYPEDEFS_H |
15 | |
16 typedef enum { | |
17 MOUSE_BUTTON_LEFT = 1, | |
18 MOUSE_BUTTON_MIDDLE = 2, | |
19 MOUSE_BUTTON_RIGHT = 3, | |
20 MOUSE_BUTTON_WHEEL_UP = 4, | |
21 MOUSE_BUTTON_WHEEL_DOWN = 5 | |
22 } MouseButton; | |
15 | 23 |
16 typedef enum { | 24 typedef enum { |
17 DIRVIEW_LIST, | 25 DIRVIEW_LIST, |
18 DIRVIEW_TREE | 26 DIRVIEW_TREE |
19 } DirViewType; | 27 } DirViewType; |