windows

package
v0.0.0-...-3b3a925 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: MIT Imports: 20 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OS

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

func NewOS

func NewOS() *OS

func (*OS) App_AddMouseEventListener

func (os *OS) App_AddMouseEventListener(win native.Handle, listener native.MouseEventListener) (remove func())

func (*OS) App_Post

func (os *OS) App_Post(f func()) error

func (*OS) App_Quit

func (os *OS) App_Quit(exitCode int) error

func (*OS) App_Run

func (os *OS) App_Run(f func()) (ret int)

func (OS) Button_MinimumSize

func (os OS) Button_MinimumSize(handle native.Handle, label string) (size metrics.Size, err error)

func (OS) Button_SetLabel

func (OS) Button_SetLabel(handle native.Handle, label string) (err error)

func (OS) Button_SetOnClickListener

func (OS) Button_SetOnClickListener(handle native.Handle, onClick func()) error

func (OS) Control_Destroy

func (os OS) Control_Destroy(handle native.Handle) (err error)

func (OS) Control_Enabled

func (OS) Control_Enabled(handle native.Handle) (bool, error)

func (OS) Control_SetDimensions

func (OS) Control_SetDimensions(handle native.Handle, rect metrics.Rect) error

func (OS) Control_SetEnabled

func (OS) Control_SetEnabled(handle native.Handle, enabled bool) (err error)

func (OS) Control_SetOnDestroyListener

func (OS) Control_SetOnDestroyListener(handle native.Handle, listener func()) error

func (OS) Control_TextDrawingSize

func (OS) Control_TextDrawingSize(control native.Handle, text string, multiline bool, maxWidth metrics.DP) (size metrics.Size, err error)

func (OS) Label_SetBackgroundColor

func (OS) Label_SetBackgroundColor(handle native.Handle, color *color.NRGBA) error

SetLabelBackgroundColor sets the background color of the label. If color is nil, the default color is used.

func (OS) Label_SetMultiline

func (OS) Label_SetMultiline(handle native.Handle, multiline bool) (err error)

func (OS) Label_SetText

func (OS) Label_SetText(handle native.Handle, text string) error

func (OS) Label_SetTextAlignment

func (OS) Label_SetTextAlignment(handle native.Handle, alignment native.TextAlignment) (err error)

func (OS) MenuItem_Destroy

func (OS) MenuItem_Destroy(item native.Handle) (err error)

func (OS) MenuItem_SetDisabled

func (OS) MenuItem_SetDisabled(item native.Handle, disabled bool) (err error)

func (OS) MenuItem_SetOnClickListener

func (OS) MenuItem_SetOnClickListener(item native.Handle, listener func())

func (OS) MenuItem_SetSubmenu

func (OS) MenuItem_SetSubmenu(item native.Handle, submenu native.Handle) (err error)

func (OS) MenuItem_SetTitle

func (OS) MenuItem_SetTitle(item native.Handle, title string) (err error)

func (OS) Menu_Destroy

func (OS) Menu_Destroy(m native.Handle) error

func (OS) MessageBox

func (OS) MessageBox(parent native.Handle, title, message string, icon native.MessageBoxIcon, button native.MessageBoxButton) (ret native.MessageBoxReturn, err error)

func (OS) NewButton

func (OS) NewButton(parent native.Handle, title string) (handle native.Handle, err error)

func (OS) NewLabel

func (OS) NewLabel(parent native.Handle, title string) (handle native.Handle, err error)

func (OS) NewMenu

func (OS) NewMenu(popup bool) (native.Handle, error)

func (OS) NewMenuItem

func (OS) NewMenuItem(parent native.Handle, title string, separator bool) (handle native.Handle, err error)

func (OS) NewPanel

func (OS) NewPanel(parent native.Handle) (handle native.Handle, err error)

func (OS) NewTextField

func (OS) NewTextField(parent native.Handle, initialValue string, password bool) (handle native.Handle, err error)

func (OS) NewWindow

func (OS) NewWindow(title string, size metrics.Size) (handle native.Handle, err error)

func (OS) Panel_SetBackgroundColor

func (OS) Panel_SetBackgroundColor(handle native.Handle, color *color.NRGBA) error

func (OS) TextField_SetText

func (OS) TextField_SetText(handle native.Handle, text string) error

func (OS) TextField_Text

func (OS) TextField_Text(handle native.Handle) (text string, err error)

func (OS) Util_ClientCoordinatesConv

func (OS) Util_ClientCoordinatesConv(from, to native.Handle, x, y metrics.DP) (newX, newY metrics.DP, err error)

func (OS) Util_ClientToScreen

func (OS) Util_ClientToScreen(win native.Handle, x, y metrics.DP) (screenX, screenY metrics.DP, err error)

func (OS) Window_ClientRect

func (OS) Window_ClientRect(handle native.Handle) (ret metrics.Rect, err error)

func (OS) Window_Close

func (OS) Window_Close(handle native.Handle) error

func (OS) Window_Destroy

func (OS) Window_Destroy(handle native.Handle) (err error)

func (OS) Window_EnableDrawDebugRect

func (OS) Window_EnableDrawDebugRect(winHandle native.Handle, rects func() iter.Seq[native.DebugRect]) (layer native.Handle, err error)

func (OS) Window_Invalidate

func (OS) Window_Invalidate(handle native.Handle, rect *metrics.Rect) (err error)

func (OS) Window_Menu

func (OS) Window_Menu(win native.Handle) (native.Handle, error)

func (OS) Window_RefreshMenu

func (OS) Window_RefreshMenu(win native.Handle) (err error)

func (OS) Window_SetMenu

func (OS) Window_SetMenu(win native.Handle, m native.Handle) (err error)

func (OS) Window_SetOnCloseListener

func (OS) Window_SetOnCloseListener(handle native.Handle, listener func() bool) error

func (OS) Window_SetOnDestroyListener

func (OS) Window_SetOnDestroyListener(handle native.Handle, listener func()) error

func (OS) Window_SetOnSizeChangedListener

func (os OS) Window_SetOnSizeChangedListener(handle native.Handle, onSizeChanged func(size metrics.Size)) error

func (OS) Window_TrackPopupMenu

func (OS) Window_TrackPopupMenu(win native.Handle, menuToTrack native.Handle, spec *native.TrackPopupSpec) (err error)

Jump to

Keyboard shortcuts

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