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

@:value(4)staticinlineread onlyBLOCK_BULLET:Int = 4

Bulleted list item.

@:value(1)staticinlineread onlyBLOCK_H1:Int = 1

Heading level 1.

@:value(2)staticinlineread onlyBLOCK_H2:Int = 2

Heading level 2.

@:value(3)staticinlineread onlyBLOCK_H3:Int = 3

Heading level 3.

@:value(0)staticinlineread onlyBLOCK_NORMAL:Int = 0

Normal paragraph.

@:value(5)staticinlineread onlyBLOCK_NUMBER:Int = 5

Numbered list item.

@:value(1)staticinlineread onlyBOLD:Int = 1

Bold inline flag.

@:value(15)staticinlineread onlyINLINE_MASK:Int = 15

All inline flag bits.

@:value(INLINE_MASK | (127 << 4) | (31 << 11))staticinlineread onlyINLINE_SIZE_COLOR_MASK:Int = INLINE_MASK | (127 << 4) | (31 << 11)

Everything except the block type (the part carried across new input).

@:value(2)staticinlineread onlyITALIC:Int = 2

Italic inline flag.

@:value(8)staticinlineread onlyOUTLINE:Int = 8

Outline (boxed emphasis) inline flag.

@:value(4)staticinlineread onlyUNDERLINE:Int = 4

Underline inline flag.

Static methods

staticinlineblock(attr:Int):Int

The paragraph block type (BLOCK_*).

staticinlineblockOnly(attr:Int):Int

Only the block-type bits (used to clear character formatting while keeping the paragraph style).

staticinlinecolorIndex(attr:Int):Int

The colour palette index (0 = default).

staticinlinefontSize(attr:Int):Int

The explicit font size in points (0 = inherit the base size).

staticinlinehas(attr:Int, flag:Int):Bool

true when flag (e.g. BOLD) is set.

staticinlineinlineFlags(attr:Int):Int

The inline flag bits of a style word.

staticinlineisHeading(blockType:Int):Bool

true for the heading block types (H1/H2/H3).

staticinlineisList(blockType:Int):Bool

true for the list block types (bullet/numbered).

staticinlinewithBlock(attr:Int, blockType:Int):Int

Replaces the paragraph block type.

staticinlinewithColor(attr:Int, index:Int):Int

Replaces the colour palette index.

staticinlinewithFlag(attr:Int, flag:Int, on:Bool):Int

Sets/clears an inline flag.

staticinlinewithFontSize(attr:Int, points:Int):Int

Replaces the explicit font size (points; 0 = inherit, clamped to 0..127).