class UITextStyle
package smidr.text
The rich-text style vocabulary used by the WYSIWYG module (UIRichStyler) and the Markdown
module (UIMarkdown). It packs a whole character style into a single Int: inline run flags
(bold / italic / underline / outline), a colour-palette index, an inline size tier, and the
paragraph block type (normal / H1-H3 / bullet / numbered).
smidr.widgets.UITextArea itself never interprets these bits — it treats each character's style
as an opaque Int and defers all meaning to the installed UITextStyler. This type is that
styler's private encoding, kept here so the app and both modules share one vocabulary.
Layout (low bits first):
- bits 0..3 inline flags: BOLD | ITALIC | UNDERLINE | OUTLINE
- bits 4..10 explicit font size in points (0 = inherit the editor's base size)
- bits 11..15 colour palette index (0 = default/theme text)
- bits 16..18 block type (BLOCK_*, 0 = normal paragraph)
Static variables
staticinlineread onlyINLINE_SIZE_COLOR_MASK:Int = INLINE_MASK | (127 << 4) | (31 << 11)
Everything except the block type (the part carried across new input).
Static methods
staticinlineblockOnly(attr:Int):Int
Only the block-type bits (used to clear character formatting while keeping the paragraph style).
staticinlinewithFontSize(attr:Int, points:Int):Int
Replaces the explicit font size (points; 0 = inherit, clamped to 0..127).