Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface RichDrawer
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class RichExternal(val cls: KClass<*>)

需要由外部提供绘制器或解析器的注入

Link copied to clipboard
abstract class RichList : RichValue
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface RichObject
Link copied to clipboard
class RichParser(converters: List<RichConverter>)
Link copied to clipboard
Link copied to clipboard
class RichRenderer(drawers: List<RichDrawer>, onAction: (RichObject) -> Unit)
Link copied to clipboard
class RichRenderScope(drawers: Map<String, RichDrawer>, fontSize: TextUnit, val onAction: (RichObject) -> Unit)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract class RichValue : RichObject

Functions

Link copied to clipboard
fun RichList.at(uri: String, text: String, color: Color? = null)
Link copied to clipboard
fun RichList.br()
Link copied to clipboard
inline fun buildRichString(content: RichList.() -> Unit): RichString
Link copied to clipboard
fun RichList.emoji(id: Int)
Link copied to clipboard
fun RichList.image(uri: String, width: Float = 1.0f, height: Float = 1.0f)
Link copied to clipboard
fun RichList.link(uri: String, text: String, color: Color? = null)
Link copied to clipboard
fun rememberRichRenderer(drawerProvider: () -> List<RichDrawer> = { emptyList() }, onAction: (RichObject) -> Unit = {}): RichRenderer
Link copied to clipboard
fun RichText(text: RichString, modifier: Modifier = Modifier, renderer: RichRenderer = rememberRichRenderer(), style: TextStyle = LocalStyle.current, color: Color = Colors.Unspecified, overflow: TextOverflow = TextOverflow.Clip, maxLines: Int = Int.MAX_VALUE, fixLineHeight: Boolean = false)
Link copied to clipboard
inline fun RichList.style(fontSize: TextUnit? = null, color: Color? = null, bold: Boolean = false, italic: Boolean = false, underline: Boolean = false, strikethrough: Boolean = false, content: RichList.() -> Unit)
Link copied to clipboard
fun RichList.text(str: String)
Link copied to clipboard
fun RichList.topic(uri: String, text: String, color: Color? = null)