wv2

package module
v0.0.0-...-55fc708 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 6 Imported by: 0

README

wv2

wv2 provides Go bindings to the WebView2 runtime based off the prior work in wails.

example

package main

import "github.com/b1naryth1ef/wv2"

func main() {
	window := wv2.NewWindow(wv2.WindowOpts{
		Frameless:  true,
		InitialURL: "https://google.com",
	})
	window.Run()
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Window

type Window struct {
	winc.Form
	// contains filtered or unexported fields
}

func NewWindow

func NewWindow(opts WindowOpts) *Window

func (*Window) IsMaximised

func (w *Window) IsMaximised() bool

func (*Window) Quit

func (w *Window) Quit()

func (*Window) Run

func (w *Window) Run()

func (*Window) WndProc

func (w *Window) WndProc(msg uint32, wparam, lparam uintptr) uintptr

type WindowOpts

type WindowOpts struct {
	Frameless      bool
	MinimizeOnQuit bool

	InitialURL    string
	InitialWidth  int
	InitialHeight int

	MaxWidth  int
	MaxHeight int
}

Directories

Path Synopsis
internal
w32
pkg
* Copyright (C) 2019 The Winc Authors.
* Copyright (C) 2019 The Winc Authors.
w32
* Copyright (C) 2019 The Winc Authors.
* Copyright (C) 2019 The Winc Authors.

Jump to

Keyboard shortcuts

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