Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MarkdownWidget ¶
type MarkdownWidget struct {
widget.BaseWidget
// contains filtered or unexported fields
}
MarkdownWidget renders markdown with proper Fyne widgets. Uses VBox layout — no absolute positioning.
Streaming: AppendChunk accumulates text and debounces re-render. Only the last block is rebuilt during streaming.
func NewMarkdownWidget ¶
func NewMarkdownWidget() *MarkdownWidget
func (*MarkdownWidget) AppendChunk ¶
func (w *MarkdownWidget) AppendChunk(chunk string)
AppendChunk appends streaming text with debounced re-render.
func (*MarkdownWidget) Content ¶
func (w *MarkdownWidget) Content() string
Content returns accumulated text.
func (*MarkdownWidget) CreateRenderer ¶
func (w *MarkdownWidget) CreateRenderer() fyne.WidgetRenderer
CreateRenderer returns a renderer that reports 0 min width so the parent layout controls width. Content wraps to fit whatever width it gets.
func (*MarkdownWidget) Refresh ¶ added in v1.3.17
func (w *MarkdownWidget) Refresh()
func (*MarkdownWidget) SetMarkdown ¶
func (w *MarkdownWidget) SetMarkdown(text string)
SetMarkdown replaces content. Must be called on UI thread.
Click to show internal directories.
Click to hide internal directories.