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 ¶
const HomeURL = "https://example.com"
HomeURL is the page the web view opens.
const Width, Height = 760, 520
Width and Height are the size of the example window.
Variables ¶
var Web *mygo.WebView
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 WebviewView ¶
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.