Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:02:59

0001 // Copyright (c) 2016-2019 OPEN CASCADE SAS
0002 //
0003 // This file is part of Open CASCADE Technology software library.
0004 //
0005 // This library is free software; you can redistribute it and/or modify it under
0006 // the terms of the GNU Lesser General Public License version 2.1 as published
0007 // by the Free Software Foundation, with special exception defined in the file
0008 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0009 // distribution for complete text of the license and disclaimer of any warranty.
0010 //
0011 // Alternatively, this file may be used under the terms of Open CASCADE
0012 // commercial license or contractual agreement.
0013 
0014 #ifndef _Aspect_VKeyFlags_HeaderFile
0015 #define _Aspect_VKeyFlags_HeaderFile
0016 
0017 //! Key modifier, for combining with general key from Aspect_VKey.
0018 typedef unsigned int Aspect_VKeyFlags;
0019 
0020 //! Key modifier, for combining with general key from Aspect_VKey.
0021 enum
0022 {
0023   Aspect_VKeyFlags_NONE  = 0,
0024   // reserve first 8 bits to combine value with Aspect_VKey
0025   Aspect_VKeyFlags_SHIFT = 1 <<  8, //!< Aspect_VKey_Shift
0026   Aspect_VKeyFlags_CTRL  = 1 <<  9, //!< Aspect_VKey_Control
0027   Aspect_VKeyFlags_ALT   = 1 << 10, //!< Aspect_VKey_Alt
0028   Aspect_VKeyFlags_MENU  = 1 << 11, //!< Aspect_VKey_Menu
0029   Aspect_VKeyFlags_META  = 1 << 12, //!< Aspect_VKey_Meta
0030 
0031   Aspect_VKeyFlags_ALL = Aspect_VKeyFlags_SHIFT | Aspect_VKeyFlags_CTRL | Aspect_VKeyFlags_ALT | Aspect_VKeyFlags_MENU | Aspect_VKeyFlags_META
0032 };
0033 
0034 //! Mouse buttons, for combining with Aspect_VKey and Aspect_VKeyFlags.
0035 typedef unsigned int Aspect_VKeyMouse;
0036 
0037 //! Mouse button bitmask
0038 enum
0039 {
0040   Aspect_VKeyMouse_NONE         = 0,       //!< no buttons
0041 
0042   Aspect_VKeyMouse_LeftButton   = 1 << 13, //!< mouse left   button
0043   Aspect_VKeyMouse_MiddleButton = 1 << 14, //!< mouse middle button (scroll)
0044   Aspect_VKeyMouse_RightButton  = 1 << 15, //!< mouse right  button
0045 
0046   Aspect_VKeyMouse_MainButtons = Aspect_VKeyMouse_LeftButton | Aspect_VKeyMouse_MiddleButton | Aspect_VKeyMouse_RightButton
0047 };
0048 
0049 #endif // _Aspect_VKeyFlags_HeaderFile