comparison doodle/tk/types.d @ 64:eb5436b47d13

Implemented crossing events
author "David Bryant <bagnose@gmail.com>"
date Thu, 12 Aug 2010 22:21:12 +0930
parents 20d6327c4a75
children 43cc2135ced0
comparison
equal deleted inserted replaced
63:20d6327c4a75 64:eb5436b47d13
20 20
21 mixin(defineEnum!("Modifier", 21 mixin(defineEnum!("Modifier",
22 "SHIFT", "CAPS_LOCK", "CONTROL", "ALT", "NUM_LOCK", "META", 22 "SHIFT", "CAPS_LOCK", "CONTROL", "ALT", "NUM_LOCK", "META",
23 "SCROLL_LOCK", "LEFT_BUTTON", "MIDDLE_BUTTON", "RIGHT_BUTTON", 23 "SCROLL_LOCK", "LEFT_BUTTON", "MIDDLE_BUTTON", "RIGHT_BUTTON",
24 "UNUSED_BUTTON_1", "UNUSED_BUTTON_2")); 24 "UNUSED_BUTTON_1", "UNUSED_BUTTON_2"));
25
26 mixin(defineEnum!("CrossingMode", // FIXME what to do about GRAB2/UNGRAB2
27 "NORMAL", "GRAB", "UNGRAB", "GRAB2", "UNGRAB2", "STATE_CHANGED"));
25 28
26 struct Mask { 29 struct Mask {
27 this(in Modifier[] modifiers) { 30 this(in Modifier[] modifiers) {
28 foreach (ref m; modifiers) { 31 foreach (ref m; modifiers) {
29 _bits |= 1 << m; 32 _bits |= 1 << m;