window

package
v0.0.0-...-0fb2adb Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Module *module
)

Functions

This section is empty.

Types

type Options

type Options struct {
	AlwaysOnTop bool
	Frameless   bool
	Fullscreen  bool
	Size        Size
	MinSize     Size
	MaxSize     Size
	Maximized   bool
	Position    Position
	Resizable   bool
	Title       string
	Transparent bool
	Visible     bool
	Hidden      bool
	Center      bool
	Icon        []byte
	URL         string
	HTML        string
	Script      string
	ChromeURL   string
	ChromeHTML  string // TODO
	ID          string
}

type Position

type Position = misc.Position

type Size

type Size = misc.Size

type Window

type Window struct {
	Window  linux.Window
	Webview linux.Webview

	ID string
	// contains filtered or unexported fields
}

func Get

func Get(handle resource.Handle) (*Window, error)

func New

func New(options Options) (*Window, error)

func (*Window) Destroy

func (w *Window) Destroy()

func (*Window) Focus

func (w *Window) Focus()

func (*Window) GetInnerSize

func (w *Window) GetInnerSize() Size

func (*Window) GetOuterPosition

func (w *Window) GetOuterPosition() Position

func (*Window) GetOuterSize

func (w *Window) GetOuterSize() Size

func (*Window) IsVisible

func (w *Window) IsVisible() bool

func (*Window) SetAlwaysOnTop

func (w *Window) SetAlwaysOnTop(always bool)

func (*Window) SetFullscreen

func (w *Window) SetFullscreen(fullscreen bool)

func (*Window) SetMaxSize

func (w *Window) SetMaxSize(size Size)

func (*Window) SetMaximized

func (w *Window) SetMaximized(maximized bool)

func (*Window) SetMinSize

func (w *Window) SetMinSize(size Size)

func (*Window) SetMinimized

func (w *Window) SetMinimized(minimized bool)

func (*Window) SetPosition

func (w *Window) SetPosition(position Position)

func (*Window) SetResizable

func (w *Window) SetResizable(resizable bool)

func (*Window) SetSize

func (w *Window) SetSize(size Size)

func (*Window) SetTitle

func (w *Window) SetTitle(title string)

func (*Window) SetVisible

func (w *Window) SetVisible(visible bool)

Jump to

Keyboard shortcuts

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