mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-23 17:58:59 +00:00
WindowServer: Add support for alpha channel based hit testing
This enables implementing non-rectangular window shapes, including non-rectangular window frames.
This commit is contained in:
parent
b3f0a5c917
commit
d590e0c946
Notes:
sideshowbarker
2024-07-18 22:13:34 +09:00
Author: https://github.com/tomuta
Commit: d590e0c946
Pull-request: https://github.com/SerenityOS/serenity/pull/5355
Reviewed-by: https://github.com/awesomekling
12 changed files with 107 additions and 12 deletions
|
@ -63,6 +63,7 @@ public:
|
|||
virtual Vector<IntRect> layout_buttons(WindowType, const IntRect& window_rect, const Palette&, size_t buttons) const = 0;
|
||||
virtual bool is_simple_rect_frame() const = 0;
|
||||
virtual bool frame_uses_alpha(WindowState, const Palette&) const = 0;
|
||||
virtual float frame_alpha_hit_threshold(WindowState) const = 0;
|
||||
|
||||
protected:
|
||||
WindowTheme() { }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue