windows

package
v0.0.0-...-1d0ab5d Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Rendered for windows/amd64

Overview

Package windows windows 平台实现

https://learn.microsoft.com/zh-cn/microsoft-edge/webview2/concepts/overview-features-apis?tabs=win32cpp

Index

Constants

View Source
const (
	WSOverlapped       Style = 0x00000000
	WSMaximizeBox            = 0x00010000
	WSThickFrame             = 0x00040000
	WSCaption                = 0x00C00000
	WSSysMenu                = 0x00080000
	WSMinimizeBox            = 0x00020000
	WSOverlappedWindow       = (WSOverlapped | WSCaption | WSSysMenu | WSThickFrame | WSMinimizeBox | WSMaximizeBox)
)

窗口样式定义,可参考官方文档

Variables

This section is empty.

Functions

func New

func New(o *Options) (webview.Desktop, error)

Types

type Options

type Options struct {
	// Debug 调试模式
	Debug bool

	// DataPath 指定 webview 的数据路径
	DataPath string

	// AutoFocus 当窗口获得焦点时组件自动获取焦点
	AutoFocus bool

	// Title 标题
	Title string

	// Position 初始位置
	Position webview.Point

	// Size 初始大小
	Size webview.Size

	// Style 窗口样式
	Style Style

	// Error 错误日志输出
	//
	// 部分非致命的错误经由此输出,如果为空,则采用 log.Default() 。
	Error *log.Logger
}

Options 初始 webview 的选项

type Style

type Style = int

Jump to

Keyboard shortcuts

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