From a61eb7694df25a75f45502ed64b1536fda370c1d Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 21 Oct 2023 14:52:43 +0100 Subject: hooksystem: add callbackinfo struct and cancellable events --- src/SharedDefs.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/SharedDefs.hpp') diff --git a/src/SharedDefs.hpp b/src/SharedDefs.hpp index 53a9850a..068d61f6 100644 --- a/src/SharedDefs.hpp +++ b/src/SharedDefs.hpp @@ -22,4 +22,8 @@ enum eRenderStage RENDER_POST_MIRROR, /* After rendering a mirror */ RENDER_PRE_WINDOW, /* Before rendering a window (any pass) Note some windows (e.g. tiled) may have 2 passes (main & popup) */ RENDER_POST_WINDOW, /* After rendering a window (any pass) */ +}; + +struct SCallbackInfo { + bool cancelled = false; /* on cancellable events, will cancel the event. */ }; \ No newline at end of file -- cgit v1.2.3