Documentation ¶
Index ¶
- Constants
- Variables
- func NewImage(n *nodes.Node) duit.UI
- func PrintTree(ui duit.UI)
- func TraverseTree(ui duit.UI, f func(ui duit.UI))
- type Browser
- func (b *Browser) Back() (e duit.Event)
- func (b *Browser) Cancel()
- func (b *Browser) Ctx() context.Context
- func (b *Browser) Get(uri *url.URL) (buf []byte, contentType mycel.ContentType, err error)
- func (b *Browser) LinkedUrl(addr string) (a *url.URL, err error)
- func (b *Browser) LoadUrl(url *url.URL) (e duit.Event)
- func (b *Browser) Loading() bool
- func (b *Browser) Origin() *url.URL
- func (b *Browser) PostForm(uri *url.URL, data url.Values) (buf []byte, contentType mycel.ContentType, err error)
- func (b *Browser) SetAndLoadUrl(u *url.URL) func() duit.Event
- type CodeView
- type Element
- func Arrange(n *nodes.Node, elements ...*Element) *Element
- func InnerNodesToBox(r int, b *Browser, n *nodes.Node) *Element
- func NewElement(ui duit.UI, n *nodes.Node) *Element
- func NewInputField(n *nodes.Node) *Element
- func NewSelect(n *nodes.Node) *Element
- func NewSubmitButton(b *Browser, n *nodes.Node) *Element
- func NewText(content []string, n *nodes.Node) (el []*Element)
- func NewTextArea(n *nodes.Node) *Element
- func NodeToBox(r int, b *Browser, n *nodes.Node) (el *Element)
- func (el *Element) Display() duitx.Display
- func (el *Element) Draw(dui *duit.DUI, self *duit.Kid, img *draw.Image, orig image.Point, m draw.Mouse, ...)
- func (el *Element) FirstFocus(dui *duit.DUI, self *duit.Kid) *image.Point
- func (el *Element) FlexDir() duitx.Dir
- func (el *Element) Key(dui *duit.DUI, self *duit.Kid, k rune, m draw.Mouse, orig image.Point) (r duit.Result)
- func (el *Element) Layout(dui *duit.DUI, self *duit.Kid, sizeAvail image.Point, force bool)
- func (el *Element) Mark(self *duit.Kid, o duit.UI, forLayout bool) (marked bool)
- func (el *Element) Mouse(dui *duit.DUI, self *duit.Kid, m draw.Mouse, origM draw.Mouse, ...) (r duit.Result)
- func (el *Element) Rect() (r image.Rectangle)
- type Image
- type Label
- type Table
- type TableRow
- type Website
Constants ¶
View Source
const ( EnterKey = 10 UserAgent = "mycel" )
View Source
const ( InitialLayout = iota ClickRelayout )
Variables ¶
View Source
var ( ExperimentalJsInsecure bool EnableNoScriptTag bool )
View Source
var (
Style = style.Map{}
)
Functions ¶
Types ¶
type Browser ¶
type Browser struct { history.History Website *Website Download func(res chan *string) LocCh chan string StatusCh chan string // contains filtered or unexported fields }
type Element ¶
type Element struct { duit.UI IsLink bool Click func() duit.Event Changed func(*Element) // contains filtered or unexported fields }
func NewInputField ¶
func NewTextArea ¶
func (*Element) FirstFocus ¶
type TableRow ¶
type TableRow struct {
// contains filtered or unexported fields
}
func NewTableRow ¶
Click to show internal directories.
Click to hide internal directories.