TextAttributes.h 534 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
  3. * Copyright (c) 2022, Tobias Christiansen <tobyase@serenityos.org>
  4. *
  5. * SPDX-License-Identifier: BSD-2-Clause
  6. */
  7. #pragma once
  8. #include <AK/Optional.h>
  9. #include <LibGfx/Color.h>
  10. namespace Gfx {
  11. struct TextAttributes {
  12. enum class UnderlineStyle {
  13. Solid,
  14. Wavy
  15. };
  16. Color color;
  17. Optional<Color> background_color {};
  18. bool bold { false };
  19. Optional<UnderlineStyle> underline_style {};
  20. Optional<Color> underline_color {};
  21. };
  22. }