windows

package
v2.6.3 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 37 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

Functions

func EnumProc

func EnumProc(hMonitor w32.HMONITOR, hdcMonitor w32.HDC, lprcMonitor *w32.RECT, screenContainer *ScreenContainer) uintptr

func GetMonitorInfo

func GetMonitorInfo(hMonitor w32.HMONITOR) (*w32.MONITORINFO, error)

func MonitorsEqual

func MonitorsEqual(first w32.MONITORINFO, second w32.MONITORINFO) bool

Types

type EventNotify

type EventNotify struct {
	Name string        `json:"name"`
	Data []interface{} `json:"data"`
}

type Frontend

type Frontend struct {
	// contains filtered or unexported fields
}

func NewFrontend

func NewFrontend(ctx context.Context, appoptions *options.App, myLogger *logger.Logger, appBindings *binding.Bindings, dispatcher frontend.Dispatcher) *Frontend

func (*Frontend) BrowserOpenURL

func (f *Frontend) BrowserOpenURL(url string)

BrowserOpenURL Use the default browser to open the url

func (*Frontend) Callback

func (f *Frontend) Callback(message string)

func (*Frontend) ClipboardGetText

func (f *Frontend) ClipboardGetText() (string, error)

func (*Frontend) ClipboardSetText

func (f *Frontend) ClipboardSetText(text string) error

func (*Frontend) ExecJS

func (f *Frontend) ExecJS(js string)

func (*Frontend) Hide

func (f *Frontend) Hide()

func (*Frontend) MenuSetApplicationMenu

func (f *Frontend) MenuSetApplicationMenu(menu *menu.Menu)

func (*Frontend) MenuUpdateApplicationMenu

func (f *Frontend) MenuUpdateApplicationMenu()

func (*Frontend) MessageDialog

func (f *Frontend) MessageDialog(options frontend.MessageDialogOptions) (string, error)

MessageDialog show a message dialog to the user

func (*Frontend) Notify

func (f *Frontend) Notify(name string, data ...interface{})

func (*Frontend) OpenDirectoryDialog

func (f *Frontend) OpenDirectoryDialog(options frontend.OpenDialogOptions) (string, error)

OpenDirectoryDialog prompts the user to select a directory

func (*Frontend) OpenFileDialog

func (f *Frontend) OpenFileDialog(options frontend.OpenDialogOptions) (string, error)

OpenFileDialog prompts the user to select a file

func (*Frontend) OpenMultipleFilesDialog

func (f *Frontend) OpenMultipleFilesDialog(options frontend.OpenDialogOptions) ([]string, error)

OpenMultipleFilesDialog prompts the user to select a file

func (*Frontend) Quit

func (f *Frontend) Quit()

func (*Frontend) Run

func (f *Frontend) Run(ctx context.Context) error

func (*Frontend) RunMainLoop

func (f *Frontend) RunMainLoop()

func (*Frontend) SaveFileDialog

func (f *Frontend) SaveFileDialog(options frontend.SaveDialogOptions) (string, error)

SaveFileDialog prompts the user to select a file

func (*Frontend) ScreenGetAll

func (f *Frontend) ScreenGetAll() ([]Screen, error)

func (*Frontend) Show

func (f *Frontend) Show()

func (*Frontend) ShowWindow

func (f *Frontend) ShowWindow()

func (*Frontend) WindowCenter

func (f *Frontend) WindowCenter()

func (*Frontend) WindowClose

func (f *Frontend) WindowClose()

func (*Frontend) WindowFullscreen

func (f *Frontend) WindowFullscreen()

func (*Frontend) WindowGetPosition

func (f *Frontend) WindowGetPosition() (int, int)

func (*Frontend) WindowGetSize

func (f *Frontend) WindowGetSize() (int, int)

func (*Frontend) WindowHide

func (f *Frontend) WindowHide()

func (*Frontend) WindowIsFullscreen

func (f *Frontend) WindowIsFullscreen() bool

func (*Frontend) WindowIsMaximised

func (f *Frontend) WindowIsMaximised() bool

func (*Frontend) WindowIsMinimised

func (f *Frontend) WindowIsMinimised() bool

func (*Frontend) WindowIsNormal

func (f *Frontend) WindowIsNormal() bool

func (*Frontend) WindowMaximise

func (f *Frontend) WindowMaximise()

func (*Frontend) WindowMinimise

func (f *Frontend) WindowMinimise()

func (*Frontend) WindowPrint

func (f *Frontend) WindowPrint()

func (*Frontend) WindowReload

func (f *Frontend) WindowReload()

func (*Frontend) WindowReloadApp

func (f *Frontend) WindowReloadApp()

func (*Frontend) WindowSetAlwaysOnTop

func (f *Frontend) WindowSetAlwaysOnTop(b bool)

func (*Frontend) WindowSetBackgroundColour

func (f *Frontend) WindowSetBackgroundColour(col *options.RGBA)

func (*Frontend) WindowSetDarkTheme

func (f *Frontend) WindowSetDarkTheme()

func (*Frontend) WindowSetLightTheme

func (f *Frontend) WindowSetLightTheme()

func (*Frontend) WindowSetMaxSize

func (f *Frontend) WindowSetMaxSize(width int, height int)

func (*Frontend) WindowSetMinSize

func (f *Frontend) WindowSetMinSize(width int, height int)

func (*Frontend) WindowSetPosition

func (f *Frontend) WindowSetPosition(x, y int)

func (*Frontend) WindowSetSize

func (f *Frontend) WindowSetSize(width, height int)

func (*Frontend) WindowSetSystemDefaultTheme

func (f *Frontend) WindowSetSystemDefaultTheme()

func (*Frontend) WindowSetTitle

func (f *Frontend) WindowSetTitle(title string)

func (*Frontend) WindowShow

func (f *Frontend) WindowShow()

func (*Frontend) WindowToggleMaximise

func (f *Frontend) WindowToggleMaximise()

func (*Frontend) WindowUnfullscreen

func (f *Frontend) WindowUnfullscreen()

func (*Frontend) WindowUnmaximise

func (f *Frontend) WindowUnmaximise()

func (*Frontend) WindowUnminimise

func (f *Frontend) WindowUnminimise()

type Screen

type Screen = frontend.Screen

func GetAllScreens

func GetAllScreens(mainWinHandle w32.HWND) ([]Screen, error)

type ScreenContainer

type ScreenContainer struct {
	// contains filtered or unexported fields
}

type Window

type Window struct {
	winc.Form

	OnSuspend func()
	OnResume  func()
	// contains filtered or unexported fields
}

func NewWindow

func NewWindow(parent winc.Controller, appoptions *options.App, versionInfo *operatingsystem.WindowsVersionInfo, chromium *edge.Chromium) *Window

func (*Window) Fullscreen

func (w *Window) Fullscreen()

func (*Window) IsFullScreen

func (w *Window) IsFullScreen() bool

func (*Window) IsMaximised

func (w *Window) IsMaximised() bool

func (*Window) IsMinimised

func (w *Window) IsMinimised() bool

func (*Window) IsNormal

func (w *Window) IsNormal() bool

func (*Window) IsVisible

func (w *Window) IsVisible() bool

func (*Window) Restore

func (w *Window) Restore()

func (*Window) SetApplicationMenu

func (w *Window) SetApplicationMenu(menu *menu.Menu)

func (*Window) SetMaxSize

func (w *Window) SetMaxSize(maxWidth int, maxHeight int)

func (*Window) SetMinSize

func (w *Window) SetMinSize(minWidth int, minHeight int)

func (*Window) SetTheme

func (w *Window) SetTheme(theme winoptions.Theme)

func (*Window) UnFullscreen

func (w *Window) UnFullscreen()

func (*Window) UpdateTheme

func (w *Window) UpdateTheme()

func (*Window) WndProc

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

Directories

Path Synopsis
* 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