Deskflow
1.26.0.418
Keyboard and mouse sharing utility
Toggle main menu visibility
Loading...
Searching...
No Matches
DirectionTypes.h
Go to the documentation of this file.
1
/*
2
* Deskflow -- mouse and keyboard sharing utility
3
* SPDX-FileCopyrightText: (C) 2025 Deskflow Developers
4
* SPDX-FileCopyrightText: (C) 2012 - 2016 Synergy App Ltd
5
* SPDX-FileCopyrightText: (C) 2002 Chris Schoeneman
6
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
7
*/
8
9
#pragma once
10
11
#include <cstdint>
12
21
enum class
Direction
: uint8_t
22
{
23
NoDirection
,
24
Left
,
25
Right
,
26
Top
,
27
Bottom
,
28
FirstDirection
=
Direction::Left
,
29
LastDirection
=
Direction::Bottom
,
30
NumDirections
=
Direction::LastDirection
-
Direction::FirstDirection
+ 1
31
};
32
41
enum class
DirectionMask
42
{
43
NoDirMask
= 0,
44
LeftMask
= 1 <<
static_cast<
int
>
(
Direction::Left
),
45
RightMask = 1 <<
static_cast<
int
>
(
Direction::Right
),
46
TopMask
= 1 <<
static_cast<
int
>
(
Direction::Top
),
47
BottomMask = 1 <<
static_cast<
int
>
(
Direction::Bottom
)
48
};
DirectionMask
DirectionMask
Bitmask values for screen edge directions.
Definition
DirectionTypes.h:42
DirectionMask::LeftMask
@ LeftMask
Left edge mask.
Definition
DirectionTypes.h:44
DirectionMask::TopMask
@ TopMask
Top edge mask.
Definition
DirectionTypes.h:46
DirectionMask::NoDirMask
@ NoDirMask
No direction mask.
Definition
DirectionTypes.h:43
Direction
Direction
Computer edge directions for mouse movement.
Definition
DirectionTypes.h:22
Direction::Bottom
@ Bottom
Bottom edge of computer.
Definition
DirectionTypes.h:27
Direction::LastDirection
@ LastDirection
Last valid direction value.
Definition
DirectionTypes.h:29
Direction::NoDirection
@ NoDirection
No specific direction.
Definition
DirectionTypes.h:23
Direction::Right
@ Right
Right edge of computer.
Definition
DirectionTypes.h:25
Direction::Left
@ Left
Left edge of computer.
Definition
DirectionTypes.h:24
Direction::Top
@ Top
Top edge of computer.
Definition
DirectionTypes.h:26
Direction::NumDirections
@ NumDirections
Total number of directions.
Definition
DirectionTypes.h:30
Direction::FirstDirection
@ FirstDirection
First valid direction value.
Definition
DirectionTypes.h:28
src
lib
base
DirectionTypes.h
Generated by
1.18.0