view

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package view builds the webview example: a window of MyGo native UI that shows the webview component of uix — a toolbar of native controls over a web page. The main package makes the web view and sets Web; the tests and the snapshot command draw the view headless, where there is no page and the toolbar alone shows.

Index

Constants

View Source
const HomeURL = "https://example.com"

HomeURL is the page the web view opens.

View Source
const Width, Height = 760, 520

Width and Height are the size of the example window.

Variables

Web is the web view of the window; nil while the window has not made it, so the headless tests and the snapshot draw the toolbar alone.

Functions

func Reset

func Reset()

Reset restores the initial state of the example.

func Title

func Title() string

Title is the title of the example window.

func WebviewView

func WebviewView(c *ui.Context)

WebviewView draws the example: a toolbar with the title, the page's URL and a reload button, and the web view growing below it. The reload button reloads the page; the native chrome around it paints over it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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