2021-01-02 19:31:45 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2021, Andreas Kling <kling@serenityos.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 underline { false };
|
|
|
|
bool bold { false };
|
2022-01-20 18:58:02 +00:00
|
|
|
|
|
|
|
Optional<Color> underline_color {};
|
|
|
|
UnderlineStyle underline_style { UnderlineStyle::Solid };
|
2021-01-02 19:31:45 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|