Hyprland/src/events/Events.hpp

94 lines
2.1 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-28 22:31:39 +02:00
DYNLISTENFUNC(destroyLayerSurface);
DYNLISTENFUNC(mapLayerSurface);
DYNLISTENFUNC(unmapLayerSurface);
DYNLISTENFUNC(commitLayerSurface);
2022-03-17 20:22:29 +01:00
2022-03-21 16:13:43 +01:00
// Subsurfaces
2022-03-28 22:31:39 +02:00
DYNLISTENFUNC(newSubsurfaceNode);
DYNLISTENFUNC(destroySubsurfaceNode);
DYNLISTENFUNC(mapSubsurface);
DYNLISTENFUNC(unmapSubsurface);
DYNLISTENFUNC(destroySubsurface);
DYNLISTENFUNC(commitSubsurface);
2022-03-21 16:13:43 +01:00
2022-03-20 12:11:57 +01:00
// Popups
2022-03-28 22:31:39 +02:00
DYNLISTENFUNC(newPopup); // LayerSurface
2022-03-20 12:11:57 +01:00
2022-03-28 22:31:39 +02:00
DYNLISTENFUNC(newPopupXDG);
DYNLISTENFUNC(mapPopupXDG);
DYNLISTENFUNC(unmapPopupXDG);
DYNLISTENFUNC(destroyPopupXDG);
DYNLISTENFUNC(commitPopupXDG);
DYNLISTENFUNC(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-28 22:31:39 +02:00
DYNLISTENFUNC(commitWindow);
DYNLISTENFUNC(mapWindow);
DYNLISTENFUNC(unmapWindow);
DYNLISTENFUNC(destroyWindow);
DYNLISTENFUNC(setTitleWindow);
DYNLISTENFUNC(fullscreenWindow);
DYNLISTENFUNC(activateX11);
DYNLISTENFUNC(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
2022-03-28 22:31:39 +02:00
DYNLISTENFUNC(keyboardKey);
DYNLISTENFUNC(keyboardMod);
DYNLISTENFUNC(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-28 22:31:39 +02:00
DYNLISTENFUNC(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-28 22:31:39 +02:00
DYNLISTENFUNC(monitorFrame);
DYNLISTENFUNC(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
};