summaryrefslogtreecommitdiff
path: root/src/layout/IHyprLayout.hpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-21 19:18:33 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-21 19:18:33 +0100
commit295a0c4a6904b639ae406df2f106eb35d71899ae (patch)
tree55ba41ed80f20b798e3f7719323dfb673787a44b /src/layout/IHyprLayout.hpp
parent1b50377a5aaa8d5e2585d72dc5393ac6ad6fe248 (diff)
Added fullscreen
Diffstat (limited to 'src/layout/IHyprLayout.hpp')
-rw-r--r--src/layout/IHyprLayout.hpp36
1 files changed, 35 insertions, 1 deletions
diff --git a/src/layout/IHyprLayout.hpp b/src/layout/IHyprLayout.hpp
index c3fbd667..e437d703 100644
--- a/src/layout/IHyprLayout.hpp
+++ b/src/layout/IHyprLayout.hpp
@@ -6,14 +6,48 @@
interface IHyprLayout {
public:
+ /*
+ Called when a window is created (mapped)
+ */
virtual void onWindowCreated(CWindow*) = 0;
+ /*
+ Called when a window is removed (unmapped)
+ */
virtual void onWindowRemoved(CWindow*) = 0;
+ /*
+ Called when a the monitor requires a layout recalculation
+ this usually means reserved area changes
+ */
virtual void recalculateMonitor(const int&) = 0;
- // Floating windows
+ /*
+ Called when a window is requested to be floated
+ */
virtual void changeWindowFloatingMode(CWindow*) = 0;
+ /*
+ Called when a window is clicked on, beginning a drag
+ this might be a resize, move, whatever the layout defines it
+ as.
+ */
virtual void onBeginDragWindow() = 0;
+ /*
+ Called whenever the mouse moves, should the layout want to
+ do anything with it.
+ Useful for dragging.
+ */
virtual void onMouseMove(const Vector2D&) = 0;
+ /*
+ Called when a window is created, but is requesting to be floated.
+ Warning: this also includes stuff like popups, incorrect handling
+ of which can result in a crash!
+ */
virtual void onWindowCreatedFloating(CWindow*) = 0;
+ /*
+ Called when a window requests to toggle its' fullscreen state.
+ The layout sets all the fullscreen flags.
+ It can either accept or ignore.
+ */
+ virtual void fullscreenRequestForWindow(CWindow*) = 0;
+
}; \ No newline at end of file