1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:07:46 +00:00

LibGUI+LibGfx: Move check box painting to Gfx::StylePainter

This will allow us to render check boxes from other places. :^)
This commit is contained in:
Andreas Kling 2020-09-11 17:21:53 +02:00
parent 072e94caa2
commit 1a2b626746
5 changed files with 44 additions and 25 deletions

View file

@ -73,4 +73,9 @@ void StylePainter::paint_radio_button(Painter& painter, const IntRect& rect, con
current().paint_radio_button(painter, rect, palette, is_checked, is_being_pressed);
}
void StylePainter::paint_check_box(Painter& painter, const IntRect& rect, const Palette& palette, bool is_enabled, bool is_checked, bool is_being_pressed)
{
current().paint_check_box(painter, rect, palette, is_enabled, is_checked, is_being_pressed);
}
}