nimterm/widgets/markdown
This page is generated from the module’s exported API and ## documentation comments.
Markdown renderable using nimterm’s plain semantic text path.
Markdown
Section titled “Markdown”Markdown = ref object of Widget text*: string style*: StyleProcedures
Section titled “Procedures”newMarkdown
Section titled “newMarkdown”proc newMarkdown(text: string; style = defaultStyle()): Markdown {.raises: [], tags: [], forbids: [].}Returns: Markdown.
Arguments
Section titled “Arguments”| Name | Type | Default |
|---|---|---|
text |
string |
|
style |
inferred |
defaultStyle() |
Methods
Section titled “Methods”measure
Section titled “measure”method measure(widget: Markdown; constraints: Constraints): Size {.raises: [], tags: [], forbids: [].}Returns: Size.
Arguments
Section titled “Arguments”| Name | Type | Default |
|---|---|---|
widget |
Markdown |
|
constraints |
Constraints |
method paint(widget: Markdown; canvas: var Canvas) {.raises: [], tags: [], forbids: [].}Arguments
Section titled “Arguments”| Name | Type | Default |
|---|---|---|
widget |
Markdown |
|
canvas |
var Canvas |