Deskflow 1.22.0.197
Keyboard and mouse sharing utility
Loading...
Searching...
No Matches
DirectionTypes.h File Reference
#include <cstdint>
Include dependency graph for DirectionTypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum class  Direction : uint8_t {
  NoDirection , Left , Right , Top ,
  Bottom , FirstDirection = Direction::Left , LastDirection = Direction::Bottom , NumDirections = Direction::LastDirection - Direction::FirstDirection + 1
}
 Screen edge directions for mouse movement. More...
enum class  DirectionMask {
  NoDirMask = 0 , LeftMask = 1 << static_cast<int>(Direction::Left) , RightMask = 1 << static_cast<int>(Direction::Right) , TopMask = 1 << static_cast<int>(Direction::Top) ,
  BottomMask = 1 << static_cast<int>(Direction::Bottom)
}
 Bitmask values for screen edge directions. More...

Enumeration Type Documentation

◆ Direction

enum class Direction : uint8_t
strong

Screen edge directions for mouse movement.

Used to specify which edge of a screen the mouse cursor crosses when moving between primary and secondary screens.

Since
Protocol version 1.0
Enumerator
NoDirection 

No specific direction.

Left 

Left edge of screen.

Right 

Right edge of screen.

Top 

Top edge of screen.

Bottom 

Bottom edge of screen.

FirstDirection 

First valid direction value.

LastDirection 

Last valid direction value.

NumDirections 

Total number of directions.

◆ DirectionMask

enum class DirectionMask
strong

Bitmask values for screen edge directions.

Used to create bitmasks representing multiple screen edges. Useful for configuration and edge detection.

Since
Protocol version 1.0
Enumerator
NoDirMask 

No direction mask.

LeftMask 

Left edge mask.

RightMask 

Right edge mask.

TopMask 

Top edge mask.

BottomMask 

Bottom edge mask.