mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:37:36 +00:00
WindowServer: Add IPC endpoint to get the color under cursor
This allows any client to ask the WindowServer to give it the color of the screen bitmap under the cursor. There's currently no way to get the screen bitmap *without* the cursor already drawn on it, so for now we just take a pixel beside the actual cursor position to avoid just getting the cursors color.
This commit is contained in:
parent
3da4fdd0eb
commit
69d708fb21
3 changed files with 12 additions and 0 deletions
|
@ -136,6 +136,7 @@ endpoint WindowServer
|
|||
|
||||
get_screen_bitmap(Optional<Gfx::IntRect> rect, Optional<u32> screen_index) => (Gfx::ShareableBitmap bitmap)
|
||||
get_screen_bitmap_around_cursor(Gfx::IntSize size) => (Gfx::ShareableBitmap bitmap)
|
||||
get_color_under_cursor() => (Gfx::Color color)
|
||||
|
||||
pong() =|
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue