summaryrefslogtreecommitdiff
path: root/LibC/gui.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-14 01:21:32 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-14 01:21:32 +0100
commitf529b845ecd5d2f023ebb56b03afe086df6c21e2 (patch)
treedfcd320d70c26e879829779b6047789655429cb0 /LibC/gui.cpp
parentef4e9860fdb013a5caf76dbd51b071914cb1588a (diff)
downloadserenity-f529b845ecd5d2f023ebb56b03afe086df6c21e2.zip
WindowServer: Convert entire API to be message-based.
One big step towards userspace WindowServer. :^)
Diffstat (limited to 'LibC/gui.cpp')
-rw-r--r--LibC/gui.cpp70
1 files changed, 0 insertions, 70 deletions
diff --git a/LibC/gui.cpp b/LibC/gui.cpp
deleted file mode 100644
index da1fecef05..0000000000
--- a/LibC/gui.cpp
+++ /dev/null
@@ -1,70 +0,0 @@
-#include "gui.h"
-#include <Kernel/GUITypes.h>
-#include <Kernel/Syscall.h>
-#include <errno.h>
-
-int gui_create_window(const GUI_WindowParameters* params)
-{
- int rc = syscall(SC_gui_create_window, params);
- __RETURN_WITH_ERRNO(rc, rc, -1);
-}
-
-int gui_destroy_window(int window_id)
-{
- int rc = syscall(SC_gui_destroy_window, window_id);
- __RETURN_WITH_ERRNO(rc, rc, -1);
-}
-
-int gui_invalidate_window(int window_id, const GUI_Rect* rect)
-{
- int rc = syscall(SC_gui_invalidate_window, window_id, rect);
- __RETURN_WITH_ERRNO(rc, rc, -1);
-}
-
-int gui_get_window_backing_store(int window_id, GUI_WindowBackingStoreInfo* info)
-{
- int rc = syscall(SC_gui_get_window_backing_store, window_id, info);
- __RETURN_WITH_ERRNO(rc, rc, -1);
-}
-
-int gui_release_window_backing_store(void* backing_store_id)
-{
- int rc = syscall(SC_gui_release_window_backing_store, backing_store_id);
- __RETURN_WITH_ERRNO(rc, rc, -1);
-}
-
-int gui_get_window_title(int window_id, char* buffer, size_t size)
-{
- int rc = syscall(SC_gui_get_window_title, window_id, buffer, size);
- __RETURN_WITH_ERRNO(rc, rc, -1);
-}
-
-int gui_set_window_title(int window_id, const char* title, size_t length)
-{
- int rc = syscall(SC_gui_set_window_title, window_id, title, length);
- __RETURN_WITH_ERRNO(rc, rc, -1);
-}
-
-int gui_get_window_rect(int window_id, GUI_Rect* rect)
-{
- int rc = syscall(SC_gui_get_window_rect, window_id, rect);
- __RETURN_WITH_ERRNO(rc, rc, -1);
-}
-
-int gui_set_window_rect(int window_id, const GUI_Rect* rect)
-{
- int rc = syscall(SC_gui_set_window_rect, window_id, rect);
- __RETURN_WITH_ERRNO(rc, rc, -1);
-}
-
-int gui_notify_paint_finished(int window_id, const GUI_Rect* rect)
-{
- int rc = syscall(SC_gui_notify_paint_finished, window_id, rect);
- __RETURN_WITH_ERRNO(rc, rc, -1);
-}
-
-int gui_set_global_cursor_tracking_enabled(int window_id, bool enabled)
-{
- int rc = syscall(SC_gui_set_global_cursor_tracking_enabled, window_id, enabled);
- __RETURN_WITH_ERRNO(rc, rc, -1);
-}