mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:37:35 +00:00
Make it possible for userspace to alter window title/geometry.
I'm not in love with this syscall API but it allows me to make progress.
This commit is contained in:
parent
8eae89a405
commit
dbe83f3a83
11 changed files with 78 additions and 17 deletions
14
LibC/gui.cpp
14
LibC/gui.cpp
|
@ -3,7 +3,7 @@
|
|||
#include <Kernel/Syscall.h>
|
||||
#include <errno.h>
|
||||
|
||||
int gui_create_window(const GUI_CreateWindowParameters* params)
|
||||
int gui_create_window(const GUI_WindowParameters* params)
|
||||
{
|
||||
int rc = syscall(SC_gui_create_window, params);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
|
@ -20,3 +20,15 @@ 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_get_window_parameters(int window_id, GUI_WindowParameters* params)
|
||||
{
|
||||
int rc = syscall(SC_gui_get_window_parameters, window_id, params);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
int gui_set_window_parameters(int window_id, const GUI_WindowParameters* params)
|
||||
{
|
||||
int rc = syscall(SC_gui_set_window_parameters, window_id, params);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
|
|
@ -5,9 +5,11 @@
|
|||
|
||||
__BEGIN_DECLS
|
||||
|
||||
int gui_create_window(const GUI_CreateWindowParameters* params);
|
||||
int gui_create_window(const GUI_WindowParameters*);
|
||||
int gui_invalidate_window(int window_id, const GUI_Rect*);
|
||||
int gui_get_window_backing_store(int window_id, GUI_WindowBackingStoreInfo* info);
|
||||
int gui_get_window_backing_store(int window_id, GUI_WindowBackingStoreInfo*);
|
||||
int gui_get_window_parameters(int window_id, GUI_WindowParameters*);
|
||||
int gui_set_window_parameters(int window_id, const GUI_WindowParameters*);
|
||||
|
||||
__END_DECLS
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue