renderers

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2024 License: ISC Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type C

type C = layout.Context

type D

type D = layout.Dimensions

type HTMLProvider

type HTMLProvider struct {
	// contains filtered or unexported fields
}

func RenderHTML

func RenderHTML(html string, theme *cryptomaterial.Theme) *HTMLProvider

func (*HTMLProvider) Layout

func (p *HTMLProvider) Layout(gtx C) D

type MarkdownProvider

type MarkdownProvider struct {
	*load.Load
	// contains filtered or unexported fields
}

func RenderMarkdown

func RenderMarkdown(l *load.Load, theme *cryptomaterial.Theme, source string) *MarkdownProvider

func (*MarkdownProvider) Layout

func (p *MarkdownProvider) Layout() ([]layout.Widget, map[string]*widget.Clickable)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL