Skip to content

Proposal: WebView.SetIcon #46

@quadrimus

Description

@quadrimus

Add new method SetIcon to set window icon image.

Type and parameter IconKind allows to specify usage of icon (if supported).

// IconKind is used to specify usage of icon.
type IconKind int

const (
	IconKindDefault = IconKind(iota)
	IconKindSmaller
)

type WebView interface {
	// SetIcon updates the icon of the native window. Must be called from the UI
	// thread.
	SetIcon(icon image.Image, kind IconKind)

	// ...
}

Pull request: #47

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions