Enum CellAttributes
Flags enum defining style and state attributes for a text mode cell. Packed into the Attributes field as a uint bitmask. Bits 0-15 are used for style flags, bits 16-23 for the hyperlink tag, and bits 24-31 for the atlas index.
Namespace: Scylla.TextMode
Assembly: ScyllaTextMode.dll
Syntax
[Flags]
public enum CellAttributes : uint
Fields
| Name | Description |
|---|---|
| AtlasIndexMask | Mask for the atlas index (bits 24-31), supporting up to 256 atlas textures. |
| Blink | Blinking text (toggled by a timer in the renderer). |
| Bold | Bold text (reduced SDF threshold for thicker glyphs). |
| CursorHere | Indicates the cursor is positioned on this cell. |
| Dim | Dim/faint text rendered at reduced opacity. |
| DoubleWidth | Double-width character occupying two cells horizontally. |
| EdgeBottom | Glyph is designed to touch the bottom cell edge. |
| EdgeLeft | Glyph is designed to touch the left cell edge (e.g. box-drawing, block elements). Set automatically by GlyphAtlasCache based on font metrics. The shader clamps SDF sampling at flagged edges to prevent seams. |
| EdgeMask | Combined mask for all edge-touching flags. |
| EdgeRight | Glyph is designed to touch the right cell edge. |
| EdgeTop | Glyph is designed to touch the top cell edge. |
| Hidden | Hidden/invisible text (foreground rendered as background color). |
| HyperlinkTagMask | Mask for the hyperlink tag (bits 16-23), supporting up to 255 distinct hyperlinks. Tag 0 means no hyperlink. The GPU shader ignores these bits. |
| Inverse | Inverted display swapping foreground and background colors. |
| Italic | Italic text (UV shear applied in shader). |
| None | No attributes set. |
| Selected | Indicates this cell is part of a text selection. |
| Strikethrough | Strikethrough decoration rendered as a horizontal line through the glyph center. |
| StyleMask | Mask for all style flags (bits 0-15). |
| Underline | Underline decoration rendered as a horizontal line below the glyph. |