summaryrefslogtreecommitdiff
path: root/src/helpers
diff options
context:
space:
mode:
authorGabriel Ford <gabe@fordltc.net>2024-04-23 00:40:03 +0000
committerVaxry <vaxry@vaxry.net>2024-04-23 01:49:25 +0100
commitc3ec16f494f52dfd670cfd4d4296ddda662f039b (patch)
treec0c614afb98a4148a7b352e8aeff11fc54c5012e /src/helpers
parent29308b94ca2d95597b3c4e3ac1d3edbcd2f23cdd (diff)
config: Add More Monitor 'Auto' Positions. (#5670)
* Reverse Window Positioning. * Cleanup old comments and logs. * Finish Splitting Left and Right offset. * Forgot to add Auto Left to ConfigManager * Fix problems with auto_left. * Nearly finish up and down. * Finish draft of all four dirs. Testing now. * Change Y value in moveTo for up and down. * Format, comment, and cleanup. * Address Vaxry's feedback. * Add check to see if auto position is first rule. * Run clang-format.
Diffstat (limited to 'src/helpers')
-rw-r--r--src/helpers/Monitor.hpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/helpers/Monitor.hpp b/src/helpers/Monitor.hpp
index 4dd58a4e..75178836 100644
--- a/src/helpers/Monitor.hpp
+++ b/src/helpers/Monitor.hpp
@@ -10,10 +10,18 @@
#include "Timer.hpp"
#include "Region.hpp"
#include <optional>
-
#include "signal/Signal.hpp"
+// Enum for the different types of auto directions, e.g. auto-left, auto-up.
+enum class eAutoDirs {
+ DIR_AUTO_UP,
+ DIR_AUTO_DOWN,
+ DIR_AUTO_LEFT,
+ DIR_AUTO_RIGHT
+};
+
struct SMonitorRule {
+ eAutoDirs autoDir;
std::string name = "";
Vector2D resolution = Vector2D(1280, 720);
Vector2D offset = Vector2D(0, 0);