Hyprland/src/managers/input/InputMethodPopup.hpp
Vaxry f79497087b internal: nuke wlsignal and related
old semi-wrappers for wl_signal, they are no longer used
2024-09-24 00:47:34 +01:00

43 lines
1.1 KiB
C++

#pragma once
#include "../../desktop/WLSurface.hpp"
#include "../../macros.hpp"
#include "../../helpers/math/Math.hpp"
#include "../../helpers/signal/Signal.hpp"
class CInputMethodPopupV2;
class CInputPopup {
public:
CInputPopup(SP<CInputMethodPopupV2> popup);
void damageEntire();
void damageSurface();
bool isVecInPopup(const Vector2D& point);
CBox globalBox();
SP<CWLSurfaceResource> getSurface();
void onCommit();
private:
SP<CWLSurface> queryOwner();
void updateBox();
void onDestroy();
void onMap();
void onUnmap();
WP<CInputMethodPopupV2> popup;
SP<CWLSurface> surface;
CBox lastBoxLocal;
MONITORID lastMonitor = MONITOR_INVALID;
struct {
CHyprSignalListener map;
CHyprSignalListener unmap;
CHyprSignalListener destroy;
CHyprSignalListener commit;
} listeners;
};