mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:37:35 +00:00
LibGUI: Make HeaderView act only on the visible sections
i.e. Drawing them, or handling mouse events on them. Fixes #7505.
This commit is contained in:
parent
4bbf954ad0
commit
3f5eb6446b
2 changed files with 54 additions and 18 deletions
|
@ -51,6 +51,13 @@ private:
|
|||
virtual void context_menu_event(ContextMenuEvent&) override;
|
||||
virtual void leave_event(Core::Event&) override;
|
||||
|
||||
struct VisibleSectionRange {
|
||||
int start_offset { 0 };
|
||||
int start { 0 };
|
||||
int end { 0 };
|
||||
};
|
||||
VisibleSectionRange visible_section_range() const;
|
||||
|
||||
Gfx::IntRect section_resize_grabbable_rect(int) const;
|
||||
|
||||
void paint_horizontal(Painter&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue