* de.po: sync with branch.
[lyx.git] / src / frontends / mouse_state.h
blobfa310d08f002e9bcb295c0a494414ed83566ff83
1 // -*- C++ -*-
2 /**
3 * \file mouse_state.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * GUII representation of mouse presses and
8 * mouse button states
10 * \author John Levon
12 * Full author contact details are available in file CREDITS.
15 #ifndef MOUSE_STATE_H
16 #define MOUSE_STATE_H
18 namespace lyx {
20 /// used both for presses and held during motion
21 namespace mouse_button {
23 enum state {
24 none = 0, //< no buttons held
25 button1 = 1, //< mouse button 1 pressed
26 button2 = 2,
27 button3 = 4,
28 button4 = 8,
29 button5 = 16
32 inline void operator|=(state & s1, state s2)
34 s1 = static_cast<state>(s1 | s2);
37 } // namespace mouse_button
40 } // namespace lyx
42 #endif // MOUSE_STATE_H