2021-01-02 19:31:45 +00:00
|
|
|
/*
|
2024-10-04 11:19:50 +00:00
|
|
|
* Copyright (c) 2021, Andreas Kling <andreas@ladybird.org>
|
2022-01-20 18:58:02 +00:00
|
|
|
* Copyright (c) 2022, Tobias Christiansen <tobyase@serenityos.org>
|
2021-01-02 19:31:45 +00:00
|
|
|
*
|
2021-04-22 08:24:48 +00:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2021-01-02 19:31:45 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AK/Optional.h>
|
|
|
|
#include <LibGfx/Color.h>
|
|
|
|
|
|
|
|
namespace Gfx {
|
|
|
|
|
|
|
|
struct TextAttributes {
|
2022-01-20 18:58:02 +00:00
|
|
|
enum class UnderlineStyle {
|
|
|
|
Solid,
|
|
|
|
Wavy
|
|
|
|
};
|
|
|
|
|
2021-01-02 19:31:45 +00:00
|
|
|
Color color;
|
2022-01-20 18:58:02 +00:00
|
|
|
Optional<Color> background_color {};
|
2021-01-02 19:31:45 +00:00
|
|
|
bool bold { false };
|
2022-01-20 18:58:02 +00:00
|
|
|
|
2023-03-15 12:35:00 +00:00
|
|
|
Optional<UnderlineStyle> underline_style {};
|
2022-01-20 18:58:02 +00:00
|
|
|
Optional<Color> underline_color {};
|
2021-01-02 19:31:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|