mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:38:11 +00:00
WindowServer+CPUGraph: Make menu applets be "regular" windows
Instead of implementing menu applets as their own thing, they are now WSWindows of WSWindowType::MenuApplet. This makes it much easier to work with them on the client side, since you can just create a GWindow with the right type and you're in the menubar doing applet stuff :^)
This commit is contained in:
parent
648ed76085
commit
df129bbe0e
13 changed files with 97 additions and 202 deletions
|
@ -16,11 +16,6 @@ endpoint WindowServer = 2
|
|||
|
||||
UpdateMenuItem(i32 menu_id, i32 identifier, i32 submenu_id, String text, bool enabled, bool checkable, bool checked, String shortcut) => ()
|
||||
|
||||
CreateMenuApplet(Size size) => (i32 applet_id)
|
||||
DestroyMenuApplet(i32 applet_id) => ()
|
||||
SetMenuAppletBackingStore(i32 applet_id, i32 shared_buffer_id) => ()
|
||||
InvalidateMenuAppletRect(i32 applet_id, Rect rect) => ()
|
||||
|
||||
CreateWindow(
|
||||
Rect rect,
|
||||
bool has_alpha_channel,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue