mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:38:11 +00: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
9 changed files with 48 additions and 1 deletions
|
@ -51,6 +51,8 @@ public:
|
|||
Gfx::IntRect content_rect(int row, int column) const;
|
||||
Gfx::IntRect row_rect(int item_index) const;
|
||||
|
||||
virtual Gfx::IntRect paint_invalidation_rect(ModelIndex const& index) const override;
|
||||
|
||||
virtual void scroll_into_view(const ModelIndex&, bool scroll_horizontally = true, bool scroll_vertically = true) override;
|
||||
void scroll_into_view(const ModelIndex& index, Orientation orientation)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue