VirtualBox

Changeset 26751 in vbox for trunk/src


Ignore:
Timestamp:
Feb 24, 2010 3:04:37 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: use RT_BIT

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineDefs.h

    r26709 r26751  
    2424#define __UIMachineDefs_h__
    2525
     26/* Global includes */
     27#include <iprt/cdefs.h>
     28
    2629/* Machine states enum: */
    2730enum UIVisualStateType
     
    3538enum UIVisualElement
    3639{
    37     UIVisualElement_WindowCaption         = 0x01,
    38     UIVisualElement_MouseIntegrationStuff = 0x02,
    39     UIVisualElement_PauseStuff            = 0x04,
    40     UIVisualElement_HDStuff               = 0x08,
    41     UIVisualElement_CDStuff               = 0x10,
    42     UIVisualElement_FDStuff               = 0x20,
    43     UIVisualElement_NetworkStuff          = 0x40,
    44     UIVisualElement_USBStuff              = 0x80,
    45     UIVisualElement_VRDPStuff             = 0x100,
    46     UIVisualElement_SharedFolderStuff     = 0x200,
    47     UIVisualElement_VirtualizationStuff   = 0x400,
     40    UIVisualElement_WindowCaption         = RT_BIT(0),
     41    UIVisualElement_MouseIntegrationStuff = RT_BIT(1),
     42    UIVisualElement_PauseStuff            = RT_BIT(2),
     43    UIVisualElement_HDStuff               = RT_BIT(3),
     44    UIVisualElement_CDStuff               = RT_BIT(4),
     45    UIVisualElement_FDStuff               = RT_BIT(5),
     46    UIVisualElement_NetworkStuff          = RT_BIT(6),
     47    UIVisualElement_USBStuff              = RT_BIT(7),
     48    UIVisualElement_VRDPStuff             = RT_BIT(8),
     49    UIVisualElement_SharedFolderStuff     = RT_BIT(9),
     50    UIVisualElement_VirtualizationStuff   = RT_BIT(10),
    4851    UIVisualElement_AllStuff              = 0xFFFF
    4952};
     
    5255enum UIMouseStateType
    5356{
    54     UIMouseStateType_MouseCaptured         = 0x01,
    55     UIMouseStateType_MouseAbsolute         = 0x02,
    56     UIMouseStateType_MouseAbsoluteDisabled = 0x04,
    57     UIMouseStateType_MouseNeedsHostCursor  = 0x08
     57    UIMouseStateType_MouseCaptured         = RT_BIT(0),
     58    UIMouseStateType_MouseAbsolute         = RT_BIT(1),
     59    UIMouseStateType_MouseAbsoluteDisabled = RT_BIT(2),
     60    UIMouseStateType_MouseNeedsHostCursor  = RT_BIT(3)
    5861};
    5962
     
    6164enum UIViewStateType
    6265{
    63     UIViewStateType_KeyboardCaptured = 0x01,
    64     UIViewStateType_HostKeyPressed   = 0x02
     66    UIViewStateType_KeyboardCaptured = RT_BIT(0),
     67    UIViewStateType_HostKeyPressed   = RT_BIT(1)
    6568};
    6669
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette