mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
LibGUI: Tighten paint invalidation rects in item views :^)
AbstractView now has a paint_invalidation_rect(index) function that subclasses can override to provide a tighter invalidation rect for an index.
This commit is contained in:
parent
148e72bfa0
commit
df96380121
Notes:
sideshowbarker
2024-07-18 09:25:01 +09:00
Author: https://github.com/awesomekling
Commit: df96380121
9 changed files with 48 additions and 1 deletions
|
@ -33,6 +33,9 @@ public:
|
|||
|
||||
virtual int vertical_padding() const override { return m_vertical_padding; }
|
||||
|
||||
virtual Gfx::IntRect content_rect(ModelIndex const&) const override;
|
||||
virtual Gfx::IntRect paint_invalidation_rect(ModelIndex const& index) const override { return content_rect(index); }
|
||||
|
||||
protected:
|
||||
TreeView();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue