mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 03:58:12 +00:00
WindowServer: Convert the remaining menu APIs into messages.
This commit is contained in:
parent
cf432b4c3d
commit
ef4e9860fd
11 changed files with 86 additions and 66 deletions
12
LibC/gui.cpp
12
LibC/gui.cpp
|
@ -68,15 +68,3 @@ 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);
|
||||
}
|
||||
|
||||
int gui_menu_add_separator(int menu_id)
|
||||
{
|
||||
int rc = syscall(SC_gui_menu_add_separator, menu_id);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
int gui_menu_add_item(int menu_id, unsigned identifier, const char* text)
|
||||
{
|
||||
int rc = syscall(SC_gui_menu_add_item, menu_id, identifier, text);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
|
|
@ -16,8 +16,6 @@ int gui_set_window_title(int window_id, const char*, size_t);
|
|||
int gui_get_window_rect(int window_id, GUI_Rect*);
|
||||
int gui_set_window_rect(int window_id, const GUI_Rect*);
|
||||
int gui_set_global_cursor_tracking_enabled(int window_id, bool);
|
||||
int gui_menu_add_separator(int menu_id);
|
||||
int gui_menu_add_item(int menu_id, unsigned identifier, const char* text);
|
||||
|
||||
__END_DECLS
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue