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:
|
2022-01-24 14:22:02 -05:00
|
|
|
virtual void paint_button(Painter&, IntRect const&, Palette const&, ButtonStyle, bool pressed, bool hovered = false, bool checked = false, bool enabled = true, bool focused = false, bool default_button = false) override;
|
2022-08-07 20:08:16 -04:00
|
|
|
virtual void paint_tab_button(Painter&, IntRect const&, Palette const&, bool active, bool hovered, bool enabled, GUI::TabWidget::TabPosition position, bool in_active_window, bool accented) override;
|
2023-04-29 16:47:52 -04:00
|
|
|
virtual void paint_frame(Painter&, IntRect const&, Palette const&, FrameStyle, bool skip_vertical_lines = false) override;
|
2021-10-27 11:52:53 +01:00
|
|
|
virtual void paint_window_frame(Painter&, IntRect const&, Palette const&) override;
|
2021-11-11 00:55:02 +01:00
|
|
|
virtual void paint_progressbar(Painter&, IntRect const&, Palette const&, int min, int max, int value, StringView text, Orientation = Orientation::Horizontal) override;
|
2021-10-27 11:52:53 +01:00
|
|
|
virtual void paint_radio_button(Painter&, IntRect const&, Palette const&, bool is_checked, bool is_being_pressed) override;
|
|
|
|
|
virtual void paint_check_box(Painter&, IntRect const&, Palette const&, bool is_enabled, bool is_checked, bool is_being_pressed) override;
|
|
|
|
|
virtual void paint_transparency_grid(Painter&, IntRect const&, Palette const&) override;
|
2021-10-27 11:59:58 +01:00
|
|
|
virtual void paint_simple_rect_shadow(Painter&, IntRect const&, Bitmap const& shadow_bitmap, bool shadow_includes_frame, bool fill_content) override;
|
2020-08-12 19:57:35 +10:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|