webview2

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*WebView)

func WithBuiltinErrorPage

func WithBuiltinErrorPage(enabled bool) Option

func WithDefaultContextMenus

func WithDefaultContextMenus(enabled bool) Option

func WithDefaultScriptDialogs added in v2.2.1

func WithDefaultScriptDialogs(enabled bool) Option

func WithDevtools

func WithDevtools(enabled bool) Option

func WithHostObjects added in v2.2.1

func WithHostObjects(enabled bool) Option

func WithMaxSize

func WithMaxSize(width, height int32) Option

func WithMinSize

func WithMinSize(width, height int32) Option

func WithScript added in v2.2.1

func WithScript(enabled bool) Option

func WithSize

func WithSize(width, height int32) Option

func WithStatusBar

func WithStatusBar(enabled bool) Option

func WithTitle

func WithTitle(title string) Option

func WithURL

func WithURL(url string) Option

func WithWebMessage added in v2.2.1

func WithWebMessage(enabled bool) Option

func WithZoomControl

func WithZoomControl(enabled bool) Option

type WebView

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

func New

func New(options ...Option) (*WebView, error)

func (*WebView) Browser added in v2.1.0

func (wv *WebView) Browser() *browser

func (*WebView) Run

func (wv *WebView) Run() error

func (*WebView) Terminate

func (wv *WebView) Terminate() error

func (*WebView) Window added in v2.1.0

func (wv *WebView) Window() *window

Jump to

Keyboard shortcuts

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