2020-08-12 19:57:35 +10:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
2021-04-28 22:45:52 +02:00
|
|
|
* Copyright (c) 2020, Sarah Taube <metalflakecobaltpaint@gmail.com>
|
2020-08-12 19:57:35 +10:00
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-08-12 19:57:35 +10:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <AK/Forward.h>
|
|
|
|
|
#include <LibGfx/Forward.h>
|
|
|
|
|
#include <LibGfx/StylePainter.h>
|
|
|
|
|
|
|
|
|
|
namespace Gfx {
|
|
|
|
|
|
|
|
|
|
class ClassicStylePainter : public BaseStylePainter {
|
|
|
|
|
public:
|
2020-12-28 12:40:48 +01:00
|
|
|
void paint_button(Painter&, const IntRect&, const Palette&, ButtonStyle, bool pressed, bool hovered = false, bool checked = false, bool enabled = true, bool focused = false) override;
|
2021-07-28 20:23:31 +02:00
|
|
|
void paint_tab_button(Painter&, const IntRect&, const Palette&, bool active, bool hovered, bool enabled, bool top, bool in_active_window) override;
|
2020-08-12 19:57:35 +10:00
|
|
|
void paint_frame(Painter&, const IntRect&, const Palette&, FrameShape, FrameShadow, int thickness, bool skip_vertical_lines = false) override;
|
|
|
|
|
void paint_window_frame(Painter&, const IntRect&, const Palette&) override;
|
2021-04-13 16:18:20 +02:00
|
|
|
void paint_progressbar(Painter&, const IntRect&, const Palette&, int min, int max, int value, const StringView& text, Orientation = Orientation::Horizontal) override;
|
2020-08-12 19:57:35 +10:00
|
|
|
void paint_radio_button(Painter&, const IntRect&, const Palette&, bool is_checked, bool is_being_pressed) override;
|
2020-09-11 17:21:53 +02:00
|
|
|
void paint_check_box(Painter&, const IntRect&, const Palette&, bool is_enabled, bool is_checked, bool is_being_pressed) override;
|
2020-09-25 16:33:12 +02:00
|
|
|
void paint_transparency_grid(Painter&, const IntRect&, const Palette&) override;
|
2020-08-12 19:57:35 +10:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|