mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 04:55:09 +00:00
LibGfx: Add Gfx::TextAttributes (and use it in GUI::TextDocumentSpan)
This commit is contained in:
parent
0d44ee6f2b
commit
05f5d0dda3
11 changed files with 127 additions and 83 deletions
|
@ -38,19 +38,16 @@
|
|||
#include <LibGUI/TextRange.h>
|
||||
#include <LibGUI/UndoStack.h>
|
||||
#include <LibGfx/Color.h>
|
||||
#include <LibGfx/Forward.h>
|
||||
#include <LibGfx/TextAttributes.h>
|
||||
#include <LibRegex/Regex.h>
|
||||
|
||||
namespace GUI {
|
||||
|
||||
struct TextDocumentSpan {
|
||||
TextRange range;
|
||||
Color color;
|
||||
Optional<Color> background_color;
|
||||
bool is_skippable { false };
|
||||
bool is_underlined { false };
|
||||
bool bold { false };
|
||||
Gfx::TextAttributes attributes;
|
||||
void* data { nullptr };
|
||||
bool is_skippable { false };
|
||||
};
|
||||
|
||||
class TextDocument : public RefCounted<TextDocument> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue