Hyprland/src/managers/XWaylandManager.hpp

29 lines
1.1 KiB
C++
Raw Normal View History

2022-03-18 20:03:39 +01:00
#pragma once
#include "../defines.hpp"
#include <optional>
2022-03-18 20:03:39 +01:00
class CWindow; // because clangd
typedef SP<CWindow> PHLWINDOW;
class CWLSurfaceResource;
2022-03-18 20:03:39 +01:00
class CHyprXWaylandManager {
public:
2022-03-18 20:03:39 +01:00
CHyprXWaylandManager();
~CHyprXWaylandManager();
SP<CWLSurfaceResource> getWindowSurface(PHLWINDOW);
void activateSurface(SP<CWLSurfaceResource>, bool);
void activateWindow(PHLWINDOW, bool);
void getGeometryForWindow(PHLWINDOW, CBox*);
void sendCloseWindow(PHLWINDOW);
void setWindowSize(PHLWINDOW, Vector2D, bool force = false);
void setWindowFullscreen(PHLWINDOW, bool);
bool shouldBeFloated(PHLWINDOW, bool pending = false);
void checkBorders(PHLWINDOW);
Vector2D getMaxSizeForWindow(PHLWINDOW);
Vector2D getMinSizeForWindow(PHLWINDOW);
Vector2D xwaylandToWaylandCoords(const Vector2D&);
2022-03-18 20:03:39 +01:00
};
inline std::unique_ptr<CHyprXWaylandManager> g_pXWaylandManager;