Hyprland/src/events/Events.hpp

94 lines
2 KiB
C++
Raw Normal View History

2022-03-16 21:37:21 +01:00
#pragma once
#include "../defines.hpp"
2022-03-27 17:25:20 +02:00
//
// LISTEN_NAME -> the wl_listener
//
// LISTENER_NAME -> the wl_listener.notify function
//
2022-03-16 21:37:21 +01:00
namespace Events {
2022-03-18 20:03:39 +01:00
// Monitor events
2022-03-16 21:37:21 +01:00
LISTENER(change);
LISTENER(newOutput);
2022-03-17 20:22:29 +01:00
2022-03-18 20:03:39 +01:00
// Layer events
2022-03-16 21:37:21 +01:00
LISTENER(newLayerSurface);
2022-03-17 18:25:16 +01:00
LISTENER(destroyLayerSurface);
LISTENER(mapLayerSurface);
LISTENER(unmapLayerSurface);
LISTENER(commitLayerSurface);
2022-03-17 20:22:29 +01:00
2022-03-21 16:13:43 +01:00
// Subsurfaces
2022-03-27 17:25:20 +02:00
LISTENER(newSubsurfaceNode);
LISTENER(destroySubsurfaceNode);
2022-03-21 16:13:43 +01:00
LISTENER(mapSubsurface);
LISTENER(unmapSubsurface);
LISTENER(destroySubsurface);
LISTENER(commitSubsurface);
2022-03-20 12:11:57 +01:00
// Popups
2022-03-27 17:25:20 +02:00
LISTENER(newPopup); // LayerSurface
2022-03-20 12:11:57 +01:00
2022-03-20 13:37:07 +01:00
LISTENER(newPopupXDG);
LISTENER(mapPopupXDG);
LISTENER(unmapPopupXDG);
LISTENER(destroyPopupXDG);
LISTENER(commitPopupXDG);
2022-03-20 14:00:46 +01:00
LISTENER(newPopupFromPopupXDG);
2022-03-20 12:11:57 +01:00
2022-03-18 20:03:39 +01:00
// Surface XDG (window)
2022-03-16 21:37:21 +01:00
LISTENER(newXDGSurface);
2022-03-18 20:03:39 +01:00
// Window events
2022-03-17 20:22:29 +01:00
LISTENER(commitWindow);
LISTENER(mapWindow);
LISTENER(unmapWindow);
LISTENER(destroyWindow);
LISTENER(setTitleWindow);
LISTENER(fullscreenWindow);
2022-03-18 20:03:39 +01:00
LISTENER(activateX11);
LISTENER(configureX11);
2022-03-17 20:22:29 +01:00
2022-03-21 16:13:43 +01:00
// Window subsurfaces
2022-03-27 17:25:20 +02:00
// LISTENER(newSubsurfaceWindow);
2022-03-21 16:13:43 +01:00
2022-03-18 20:03:39 +01:00
// Input events
2022-03-16 21:37:21 +01:00
LISTENER(mouseMove);
LISTENER(mouseMoveAbsolute);
LISTENER(mouseButton);
LISTENER(mouseAxis);
LISTENER(mouseFrame);
2022-03-17 20:55:04 +01:00
2022-03-16 21:37:21 +01:00
LISTENER(newInput);
2022-03-17 20:55:04 +01:00
LISTENER(keyboardKey);
LISTENER(keyboardMod);
LISTENER(keyboardDestroy);
2022-03-16 21:37:21 +01:00
2022-03-18 20:03:39 +01:00
// Various
2022-03-16 21:37:21 +01:00
LISTENER(requestMouse);
LISTENER(requestSetSel);
LISTENER(requestSetPrimarySel);
2022-03-18 20:03:39 +01:00
LISTENER(activate);
2022-03-16 21:37:21 +01:00
2022-03-18 20:03:39 +01:00
// outputMgr
2022-03-16 21:37:21 +01:00
LISTENER(outputMgrApply);
LISTENER(outputMgrTest);
2022-03-17 16:56:33 +01:00
2022-03-18 20:03:39 +01:00
// Monitor part 2 the sequel
2022-03-17 16:56:33 +01:00
LISTENER(monitorFrame);
LISTENER(monitorDestroy);
2022-03-18 20:03:39 +01:00
// XWayland
LISTENER(readyXWayland);
LISTENER(surfaceXWayland);
// Drag & Drop
LISTENER(requestDrag);
LISTENER(startDrag);
2022-03-22 18:29:13 +01:00
// Inhibit
LISTENER(InhibitActivate);
LISTENER(InhibitDeactivate);
2022-03-16 21:37:21 +01:00
};