web

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package web provides a cross-platform web browser.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Page

type Page struct {
	core.Frame

	// The history of URLs that have been visited. The oldest page is first.
	History []string `set:"-"`

	// Context is the page's [htmlcore.Context].
	Context *htmlcore.Context `set:"-"`
}

Page represents one web browser page.

func NewPage

func NewPage(parent ...tree.Node) *Page

NewPage returns a new Page with the given optional parent: Page represents one web browser page.

func (*Page) Init added in v0.0.3

func (pg *Page) Init()

func (*Page) MakeToolbar added in v0.0.3

func (pg *Page) MakeToolbar(p *tree.Plan)

func (*Page) OpenURL

func (pg *Page) OpenURL(url string)

OpenURL sets the content of the page from the given url.

Directories

Path Synopsis
cmd
web

Jump to

Keyboard shortcuts

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