webkitgtk

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NavigationHandler func(WebKitLoadEvent, string)

type RequestHandler

type RequestHandler func(models.Request) (any, error)

type WebKitLoadEvent

type WebKitLoadEvent int
const (
	WebkitLoadStarted WebKitLoadEvent = iota
	WebkitLoadRedirected
	WebkitLoadCommitted
	WebkitLoadFinished
)

type WebView

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

func New

func New(
	cfg config.WebkitConfig,
	navHandle NavigationHandler,
	reqHandle RequestHandler,
	eventChan <-chan models.BackendEvent) (*WebView, error)

func (*WebView) Destroy

func (w *WebView) Destroy()

func (*WebView) Show

func (w *WebView) Show()

Directories

Path Synopsis
internal
gtk