summaryrefslogtreecommitdiff
path: root/src/SharedDefs.hpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2023-10-21 14:52:43 +0100
committerVaxry <vaxry@vaxry.net>2023-10-21 14:52:43 +0100
commita61eb7694df25a75f45502ed64b1536fda370c1d (patch)
tree30c48c414cec95598c50bed092ee35c19f3e28a2 /src/SharedDefs.hpp
parentc6233a790fed3d9a3100e16a73143700846928a2 (diff)
hooksystem: add callbackinfo struct and cancellable events
Diffstat (limited to 'src/SharedDefs.hpp')
-rw-r--r--src/SharedDefs.hpp4
1 files changed, 4 insertions, 0 deletions
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