mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 20:25:07 +00:00
LibGfx: Unpublish Gfx::Rect from global namespace
This commit is contained in:
parent
c39d44fc2e
commit
20cfd2a6bf
78 changed files with 262 additions and 260 deletions
|
@ -69,7 +69,7 @@ void GraphWidget::paint_event(GUI::PaintEvent& event)
|
|||
}
|
||||
|
||||
if (!m_values.is_empty() && text_formatter) {
|
||||
Rect text_rect = inner_rect.shrunken(8, 8);
|
||||
Gfx::Rect text_rect = inner_rect.shrunken(8, 8);
|
||||
text_rect.set_height(font().glyph_height());
|
||||
auto text = text_formatter(m_values.last(), m_max);
|
||||
painter.draw_text(text_rect.translated(1, 1), text.characters(), Gfx::TextAlignment::CenterRight, Color::Black);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue