package
Version:
v0.9.2
Opens a new window with list of versions in this module.
Published: Aug 15, 2026
License: MIT
Opens a new window with license information.
Imports: 41
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package ui provides Gio widgets for the Growse browser chrome.
type BrowserUI struct {
}
BrowserUI owns the widgets displayed around the page viewport.
NewBrowserUI creates a browser toolbar and an empty viewport.
Close cancels an in-flight navigation when the window closes.
Layout draws the browser toolbar and page viewport.
type Navigator interface {
Navigate(ctx context.Context, rawURL string) (*browser.Page, error)
Back(ctx context.Context) (*browser.Page, error)
Forward(ctx context.Context) (*browser.Page, error)
Reload(ctx context.Context) (*browser.Page, error)
ReloadIgnoringCache(ctx context.Context) (*browser.Page, error)
CanBack() bool
CanForward() bool
Page() *browser.Page
DispatchClick(nodeID dom.NodeID, x, y float32) bool
SetInputValue(nodeID dom.NodeID, value string) bool
SetSelectValue(nodeID dom.NodeID, value string) bool
ActivateCheckable(nodeID dom.NodeID) bool
CommitInputValue(nodeID dom.NodeID, value string) bool
SubmitForm(nodeID dom.NodeID) bool
UpdateHover(nodeID dom.NodeID, x, y float32) bool
ClearHover() bool
UpdateFocus(nodeID dom.NodeID) bool
MoveFormFocus(reverse bool) bool
UpdateViewport(width, height float32) bool
}
Navigator is the browser capability used by the UI.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.