browser

package
v0.0.0-...-955f326 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2020 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Browser

type Browser struct {
	ux.Panel
	// contains filtered or unexported fields
}

Browser represents a native web view. Since it is a native component, it does not respect the panel hierarchy and effectively draws on top of all other panels.

func New

func New(wnd *ux.Window) (*Browser, error)

New creates a new, empty browser. Note that this panel behaves differently than other panels because it is backed by a native widget. In particular, you must pass in a valid Window at construction time and you must manually dispose of the browser when no longer needed. Not all platforms currently provide browser support. Those that don't will return an error.

func (*Browser) DefaultFrameChange

func (b *Browser) DefaultFrameChange()

DefaultFrameChange adjusts the native component rect to match the panel.

func (*Browser) Dispose

func (b *Browser) Dispose()

Dispose of the browser, releasing any system resources associated with it.

func (*Browser) IsValid

func (b *Browser) IsValid() bool

IsValid returns true if the browser is still valid (i.e. hasn't been disposed).

func (*Browser) LoadURL

func (b *Browser) LoadURL(url string)

LoadURL loads the specified URL into the browser.

Jump to

Keyboard shortcuts

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