1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-17 22:35:08 +00:00

LibGfx: Unpublish Gfx::Rect from global namespace

This commit is contained in:
Andreas Kling 2020-02-06 13:02:38 +01:00
parent c39d44fc2e
commit 20cfd2a6bf
78 changed files with 262 additions and 260 deletions

View file

@ -76,12 +76,12 @@ void ListView::did_update_model()
update();
}
Rect ListView::content_rect(int row) const
Gfx::Rect ListView::content_rect(int row) const
{
return { 0, row * item_height(), content_width(), item_height() };
}
Rect ListView::content_rect(const ModelIndex& index) const
Gfx::Rect ListView::content_rect(const ModelIndex& index) const
{
return content_rect(index.row());
}
@ -138,7 +138,7 @@ void ListView::paint_event(PaintEvent& event)
auto column_metadata = model()->column_metadata(m_model_column);
Rect row_rect(0, y, content_width(), item_height());
Gfx::Rect row_rect(0, y, content_width(), item_height());
painter.fill_rect(row_rect, background_color);
auto index = model()->index(row_index, m_model_column);
auto data = model()->data(index);
@ -163,7 +163,7 @@ void ListView::paint_event(PaintEvent& event)
++painted_item_index;
};
Rect unpainted_rect(0, painted_item_index * item_height(), exposed_width, height());
Gfx::Rect unpainted_rect(0, painted_item_index * item_height(), exposed_width, height());
painter.fill_rect(unpainted_rect, palette().color(background_role()));
}