mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:27:43 +00:00
LibGUI: Share code for widget rendering styles in a GStyle class.
Since GScrollBar wants its internal buttons to look like GButtons, let's share the painting code between them.
This commit is contained in:
parent
9ea2131adf
commit
e354c08c98
9 changed files with 88 additions and 40 deletions
|
@ -28,7 +28,7 @@ public:
|
|||
move_by(delta.x(), delta.y());
|
||||
}
|
||||
|
||||
Point translated(int dx, int dy)
|
||||
Point translated(int dx, int dy) const
|
||||
{
|
||||
Point point = *this;
|
||||
point.move_by(dx, dy);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue