2022-03-17 16:56:33 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "../defines.hpp"
|
2022-03-17 18:25:16 +01:00
|
|
|
#include <deque>
|
|
|
|
#include "WLClasses.hpp"
|
2022-03-18 22:35:51 +01:00
|
|
|
#include <list>
|
2022-03-17 16:56:33 +01:00
|
|
|
|
|
|
|
struct SMonitor {
|
|
|
|
Vector2D vecPosition = Vector2D(0,0);
|
|
|
|
Vector2D vecSize = Vector2D(0,0);
|
|
|
|
|
|
|
|
bool primary = false;
|
|
|
|
|
|
|
|
int ID = -1;
|
|
|
|
|
|
|
|
std::string szName = "";
|
|
|
|
|
|
|
|
Vector2D vecReservedTopLeft = Vector2D(0,0);
|
|
|
|
Vector2D vecReservedBottomRight = Vector2D(0,0);
|
2022-03-17 18:25:16 +01:00
|
|
|
|
|
|
|
// WLR stuff
|
|
|
|
wlr_output* output = nullptr;
|
|
|
|
|
2022-03-18 22:35:51 +01:00
|
|
|
// Double-linked list because we need to have constant mem addresses for signals
|
|
|
|
std::list<SLayerSurface> m_lLayerSurfaces;
|
2022-03-17 18:25:16 +01:00
|
|
|
|
|
|
|
DYNLISTENER(monitorFrame);
|
|
|
|
DYNLISTENER(monitorDestroy);
|
2022-03-18 22:35:51 +01:00
|
|
|
|
|
|
|
|
|
|
|
// For the list lookup
|
|
|
|
|
|
|
|
bool operator==(const SMonitor& rhs) {
|
|
|
|
return vecPosition == rhs.vecPosition && vecSize == rhs.vecSize && szName == rhs.szName;
|
|
|
|
}
|
2022-03-17 16:56:33 +01:00
|
|
|
};
|