Package-level declarations
Types
A category interface for paragraph attributes that control the alignment of its contents. Only one Alignment attribute can be active in a given paragraph.
An immutable container that holds attribute keys and their values in a type-safe manner.
A builder DSL for safely mutating multiple text attributes within a specific range.
Interface defining a key for attributes held within RichText. By having a type-safe defaultValue, it clearly defines the fallback value when an attribute is not set.
The standard AttributeKey to denote the background color. Contains a RgbaColor when specified, or RgbaColor.Unspecified otherwise.
A semantic marker indicating that the paragraph is a blockquote.
A category interface for paragraph attributes that dictate block structure (e.g., Heading, List, Blockquote). Only one BlockType attribute can be active in a given paragraph.
The standard AttributeKey to denote bold text.
Represents a bullet list item.
A semantic marker indicating that the paragraph is a bullet list item.
Represents a URL discovered within a text sequence.
Provides the context necessary for an EnterKeyStrategy to make a decision.
Represents the outcome of an EnterKeyStrategy execution.
Defines the strategy for how a paragraph should handle an Enter key press (newline insertion). This strategy determines the attributes of the newly created paragraph or modifies the current paragraph's attributes.
The standard AttributeKey to denote the font size. Contains a TextSize when specified, or TextSize.Unspecified otherwise.
A strategy for headings. When an Enter key is pressed within or at the end of a heading, the newly created paragraph will be a standard paragraph without the heading attribute.
A semantic marker indicating the heading level of the paragraph.
Represents heading semantic levels.
A strategy that inherits the current paragraph's attributes for the new paragraph. This is the default behavior for standard paragraphs and alignment attributes.
The standard AttributeKey to denote inline code text.
The standard AttributeKey to denote italic text.
The standard AttributeKey to denote a hyperlink URL.
A strategy for list items. Handles nested lists by outdenting when an empty list item is entered.
Represents the indent level of a list item.
Represents an ordered list item (e.g., 1. 2. 3.).
A semantic marker indicating that the paragraph is an ordered list item.
A marker interface indicating that the attribute applies to whole paragraphs.
Represents a span of attributes applied to a specific range within a RichString.
An immutable rich text representation that pairs plain text with type-safe attributes applied to specific character ranges.
A DSL scope used to safely mutate the attributes of a RichString within an edit block. All mutations are accumulated internally and used to produce a completely new, immutable RichString instance when the block completes.
An interface for exporting a RichString into a specific representation of type T.
A bi-directional format that can both export a RichString to type T and import type T into a RichString.
An interface for importing data of type T into a RichString.
A marker interface indicating that the attribute applies to character spans.
The standard AttributeKey to denote strikethrough text.
Represents horizontal text alignment within a paragraph.
A semantic marker indicating the horizontal text alignment of the paragraph.
The standard AttributeKey to denote the foreground text color. Contains a RgbaColor when specified, or RgbaColor.Unspecified otherwise.
The standard AttributeKey to denote underlined text.
Functions
Returns an empty AttributeContainer.
Returns a new AttributeContainer containing the specified key-value p1.
Returns a new AttributeContainer containing the specified key-value pairs.
Convenience function to set the background color within this builder.
Convenience function to set the blockquote attribute of the paragraph within this builder. The applied range will automatically snap to paragraph boundaries.
Convenience function to apply the bold text attribute within this builder.
Convenience function to set the bullet list attribute of the paragraph within this builder. The applied range will automatically snap to paragraph boundaries.
Convenience function to remove the background color attribute in the range.
Convenience function to remove the blockquote attribute in the range.
Convenience function to remove the bold attribute in the range.
Convenience function to remove the bullet list attribute in the range.
Convenience function to remove the font size attribute in the range.
Convenience function to remove the heading attribute in the range.
Convenience function to remove the inline code attribute in the range.
Convenience function to remove the italic attribute in the range.
Convenience function to remove the link attribute in the range.
Convenience function to remove the ordered list attribute in the range.
Convenience function to remove the strikethrough attribute in the range.
Convenience function to remove the text alignment attribute in the range.
Convenience function to remove the text color attribute in the range.
Convenience function to remove the underline attribute in the range.
Exports this RichString using the specified exporter.
Extracts a list of semantic ListItems from the given RichString.
Convenience function to set the font size within this builder.
Convenience function to set the heading level of the paragraph within this builder. The applied range will automatically snap to paragraph boundaries.
Imports formatted input using the specified importer to create a RichString.
Convenience function to apply the inline code text attribute within this builder.
Convenience function to apply the italic text attribute within this builder.
Convenience function to set the link attribute within this builder.
Convenience function to set the ordered list attribute of the paragraph within this builder. The applied range will automatically snap to paragraph boundaries.
Returns a lazily evaluated sequence of all occurrence ranges of the specified regex within this character sequence.
Returns a lazily evaluated sequence of all occurrence ranges of the specified target within this character sequence.
Re-snaps any spans containing ParagraphAttributeKeys to align with paragraph boundaries in the given text.
Expands this range to cover the entire paragraph(s) it intersects with in the given text. Paragraphs are delimited by '\n'.
Convenience function to apply the strikethrough text attribute within this builder.
Convenience function to set the text alignment of the paragraph within this builder. The applied range will automatically snap to paragraph boundaries.
Convenience function to set the text color within this builder.
Convenience function to apply the underline text attribute within this builder.