API — ICoreEssentials/UI/Backends/AppKit/Text
The public contract of 2 header(s) under ICoreEssentials/UI/Backends/AppKit/Text — 1 class/struct definition(s), 1 declaration(s). Each section shows the header's banner and its public (and protected-virtual) surface exactly as the file writes it.
| Header | Defines | Declarations | Bases |
|---|---|---|---|
ICoreAppKitSyntaxHighlighter.h | ICoreAppKitTextRunFormat | 1 | — |
ICoreAppKitTextDocument.h | — | 0 | — |
ICoreAppKitSyntaxHighlighter.h#
ICoreEssentials/UI/Backends/AppKit/Text/ICoreAppKitSyntaxHighlighter.h
ICoreAppKitTextRunFormat#
ICoreAppKitSyntaxHighlighter.h:19 · struct · 1 declaration(s)
⚠ IT SPEAKS PLAIN NUMBERS, NOT THE ICore VALUE CLASSES, and that is the same decision the painter beside it had to make for the same reason.
struct ICoreAppKitTextRunFormat {
public:
bool hasForeground = false;
int foregroundRed = 0;
int foregroundGreen = 0;
int foregroundBlue = 0;
int foregroundAlpha = 255;
bool bold = false;
bool italic = false;
bool underline = false;
int underlineRed = 0;
int underlineGreen = 0;
int underlineBlue = 0;
int underlineAlpha = 255;
// A format that asks for nothing. Painting one is not an error; it simply
// leaves the run as it was.
[[nodiscard]] bool isEmpty() const;
};
};
ICoreAppKitTextDocument.h#
ICoreEssentials/UI/Backends/AppKit/Text/ICoreAppKitTextDocument.h
The AppKit text tier's shared vocabulary and its in-zone seam. (The planning row is named in the .mm, not here.)
NO OBJECTIVE-C IN THIS HEADER -- the document is passed as an opaque void* that the .mm casts to NSTextStorage*, so a verify test can include this without AppKit. Same rule as the event map, the paint state and the print setup.
⚠ THE DOCUMENT IS AN NSTextStorage, WHICH IS TextKit 2's MODEL AND NOT A VIEW. It is an NSMutableAttributedString subclass: no window, no layout manager and no window server are needed to build one, edit it or read it back. That is what makes this row provable headlessly, and it is why the model tier can land before A5.3's NSTextView.
Declares no class of its own — see the file.