summaryrefslogtreecommitdiff
path: root/window.h
diff options
context:
space:
mode:
authorMikhail Burakov <mburakov@mailbox.org>2023-06-04 15:37:25 +0200
committerMikhail Burakov <mburakov@mailbox.org>2023-06-04 16:12:55 +0200
commit148d71e5e62f8079d3cc227134b301b7bc548763 (patch)
treee60aa392c75e67a5901910379fe523eabeba2383 /window.h
parent0fa6c1cdd3d6dbea880e0ee2051f28e763e5b5d8 (diff)
Add implementation of window overlays
Diffstat (limited to 'window.h')
-rw-r--r--window.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/window.h b/window.h
index cd6def7..7fa684f 100644
--- a/window.h
+++ b/window.h
@@ -23,6 +23,7 @@
struct Window;
struct Frame;
+struct Overlay;
struct WindowEventHandlers {
void (*OnClose)(void* user);
@@ -42,4 +43,10 @@ bool WindowAssignFrames(struct Window* window, size_t nframes,
bool WindowShowFrame(struct Window* window, size_t index);
void WindowDestroy(struct Window* window);
+struct Overlay* OverlayCreate(const struct Window* window, int x, int y,
+ int width, int height);
+void* OverlayLock(struct Overlay* overlay);
+void OverlayUnlock(struct Overlay* overlay);
+void OverlayDestroy(struct Overlay* overlay);
+
#endif // RECEIVER_WINDOW_H_