Documentation
¶
Index ¶
- func CollectText(n ast.Node, source []byte) string
- func NewRootWidget(s Slide, windowWidth, windowHeight int) vxfw.Widget
- func SetInlineTheme(theme theming.ModeTheme)
- type BlockquoteWidget
- type CodeBlockWidget
- type HeadingWidget
- type ImageWidget
- type ListItem
- type ListItemBlock
- type ListWidget
- type ParagraphWidget
- type Slide
- type StatusWidget
- type TableWidget
- type TextWidget
- type XmlNode
- type Xmler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetInlineTheme ¶
Types ¶
type BlockquoteWidget ¶
type BlockquoteWidget struct {
Paragraphs []TextWidget
}
func NewBlockquote ¶
func (*BlockquoteWidget) Draw ¶
func (w *BlockquoteWidget) Draw(ctx vxfw.DrawContext) (vxfw.Surface, error)
func (*BlockquoteWidget) Xml ¶
func (w *BlockquoteWidget) Xml() XmlNode
type CodeBlockWidget ¶
type CodeBlockWidget struct {
Code string
Lang string
Syntax theming.SyntaxTheme
Style vaxis.Style
}
func NewCodeBlock ¶
func (*CodeBlockWidget) Draw ¶
func (w *CodeBlockWidget) Draw(ctx vxfw.DrawContext) (vxfw.Surface, error)
func (*CodeBlockWidget) Xml ¶
func (w *CodeBlockWidget) Xml() XmlNode
type HeadingWidget ¶
type HeadingWidget struct {
Text TextWidget
}
func NewHeading ¶
func (*HeadingWidget) Draw ¶
func (w *HeadingWidget) Draw(ctx vxfw.DrawContext) (vxfw.Surface, error)
func (*HeadingWidget) Xml ¶
func (w *HeadingWidget) Xml() XmlNode
type ImageWidget ¶
type ImageWidget struct {
Path string
AltText string
CellWidth int
CellHeight int
Style vaxis.Style
}
func NewImageWidget ¶
func (*ImageWidget) Draw ¶
func (w *ImageWidget) Draw(ctx vxfw.DrawContext) (vxfw.Surface, error)
func (*ImageWidget) Xml ¶
func (w *ImageWidget) Xml() XmlNode
type ListItem ¶
type ListItem struct {
Blocks []ListItemBlock
}
type ListItemBlock ¶
type ListItemBlock struct {
Segments []vaxis.Segment
Sublist *ListWidget
}
type ListWidget ¶
type ListWidget struct {
Ordered bool
Start int
Depth int
Items []ListItem
// contains filtered or unexported fields
}
func (*ListWidget) Draw ¶
func (w *ListWidget) Draw(ctx vxfw.DrawContext) (vxfw.Surface, error)
func (*ListWidget) Xml ¶
func (w *ListWidget) Xml() XmlNode
type ParagraphWidget ¶
type ParagraphWidget struct {
Text TextWidget
}
func NewParagraph ¶
func (*ParagraphWidget) Draw ¶
func (w *ParagraphWidget) Draw(ctx vxfw.DrawContext) (vxfw.Surface, error)
func (*ParagraphWidget) Xml ¶
func (w *ParagraphWidget) Xml() XmlNode
type StatusWidget ¶
func (*StatusWidget) Draw ¶
func (w *StatusWidget) Draw(ctx vxfw.DrawContext) (vxfw.Surface, error)
func (*StatusWidget) Xml ¶
func (w *StatusWidget) Xml() XmlNode
type TableWidget ¶
type TableWidget struct {
HasHeader bool
Rows [][]string
Theme theming.TableTheme
}
func (*TableWidget) Draw ¶
func (w *TableWidget) Draw(ctx vxfw.DrawContext) (vxfw.Surface, error)
func (*TableWidget) Xml ¶
func (w *TableWidget) Xml() XmlNode
type TextWidget ¶
func NewStyledText ¶
func (TextWidget) Draw ¶
func (w TextWidget) Draw(ctx vxfw.DrawContext) (vxfw.Surface, error)
func (TextWidget) SegmentsXml ¶
func (w TextWidget) SegmentsXml() []XmlNode
func (TextWidget) Xml ¶
func (w TextWidget) Xml() XmlNode
Click to show internal directories.
Click to hide internal directories.