Documentation
¶
Rendered for windows/amd64
Index ¶
- type OS
- func (os *OS) App_AddMouseEventListener(win native.Handle, listener native.MouseEventListener) (remove func())
- func (os *OS) App_Post(f func()) error
- func (os *OS) App_Quit(exitCode int) error
- func (os *OS) App_Run(f func()) (ret int)
- func (os OS) Button_MinimumSize(handle native.Handle, label string) (size metrics.Size, err error)
- func (OS) Button_SetLabel(handle native.Handle, label string) (err error)
- func (OS) Button_SetOnClickListener(handle native.Handle, onClick func()) error
- func (os OS) Control_Destroy(handle native.Handle) (err error)
- func (OS) Control_Enabled(handle native.Handle) (bool, error)
- func (OS) Control_SetDimensions(handle native.Handle, rect metrics.Rect) error
- func (OS) Control_SetEnabled(handle native.Handle, enabled bool) (err error)
- func (OS) Control_SetOnDestroyListener(handle native.Handle, listener func()) error
- func (OS) Control_TextDrawingSize(control native.Handle, text string, multiline bool, maxWidth metrics.DP) (size metrics.Size, err error)
- func (OS) Label_SetBackgroundColor(handle native.Handle, color *color.NRGBA) error
- func (OS) Label_SetMultiline(handle native.Handle, multiline bool) (err error)
- func (OS) Label_SetText(handle native.Handle, text string) error
- func (OS) Label_SetTextAlignment(handle native.Handle, alignment native.TextAlignment) (err error)
- func (OS) MenuItem_Destroy(item native.Handle) (err error)
- func (OS) MenuItem_SetDisabled(item native.Handle, disabled bool) (err error)
- func (OS) MenuItem_SetOnClickListener(item native.Handle, listener func())
- func (OS) MenuItem_SetSubmenu(item native.Handle, submenu native.Handle) (err error)
- func (OS) MenuItem_SetTitle(item native.Handle, title string) (err error)
- func (OS) Menu_Destroy(m native.Handle) error
- func (OS) MessageBox(parent native.Handle, title, message string, icon native.MessageBoxIcon, ...) (ret native.MessageBoxReturn, err error)
- func (OS) NewButton(parent native.Handle, title string) (handle native.Handle, err error)
- func (OS) NewLabel(parent native.Handle, title string) (handle native.Handle, err error)
- func (OS) NewMenu(popup bool) (native.Handle, error)
- func (OS) NewMenuItem(parent native.Handle, title string, separator bool) (handle native.Handle, err error)
- func (OS) NewPanel(parent native.Handle) (handle native.Handle, err error)
- func (OS) NewTextField(parent native.Handle, initialValue string, password bool) (handle native.Handle, err error)
- func (OS) NewWindow(title string, size metrics.Size) (handle native.Handle, err error)
- func (OS) Panel_SetBackgroundColor(handle native.Handle, color *color.NRGBA) error
- func (OS) TextField_SetText(handle native.Handle, text string) error
- func (OS) TextField_Text(handle native.Handle) (text string, err error)
- func (OS) Util_ClientCoordinatesConv(from, to native.Handle, x, y metrics.DP) (newX, newY metrics.DP, err error)
- func (OS) Util_ClientToScreen(win native.Handle, x, y metrics.DP) (screenX, screenY metrics.DP, err error)
- func (OS) Window_ClientRect(handle native.Handle) (ret metrics.Rect, err error)
- func (OS) Window_Close(handle native.Handle) error
- func (OS) Window_Destroy(handle native.Handle) (err error)
- func (OS) Window_EnableDrawDebugRect(winHandle native.Handle, rects func() iter.Seq[native.DebugRect]) (layer native.Handle, err error)
- func (OS) Window_Invalidate(handle native.Handle, rect *metrics.Rect) (err error)
- func (OS) Window_Menu(win native.Handle) (native.Handle, error)
- func (OS) Window_RefreshMenu(win native.Handle) (err error)
- func (OS) Window_SetMenu(win native.Handle, m native.Handle) (err error)
- func (OS) Window_SetOnCloseListener(handle native.Handle, listener func() bool) error
- func (OS) Window_SetOnDestroyListener(handle native.Handle, listener func()) error
- func (os OS) Window_SetOnSizeChangedListener(handle native.Handle, onSizeChanged func(size metrics.Size)) error
- func (OS) Window_TrackPopupMenu(win native.Handle, menuToTrack native.Handle, spec *native.TrackPopupSpec) (err error)
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 (*OS) App_AddMouseEventListener ¶
func (os *OS) App_AddMouseEventListener(win native.Handle, listener native.MouseEventListener) (remove func())
func (OS) Button_MinimumSize ¶
func (OS) Button_SetLabel ¶
func (OS) Button_SetOnClickListener ¶
func (OS) Control_SetDimensions ¶
func (OS) Control_SetEnabled ¶
func (OS) Control_SetOnDestroyListener ¶
func (OS) Control_TextDrawingSize ¶
func (OS) Label_SetBackgroundColor ¶
SetLabelBackgroundColor sets the background color of the label. If color is nil, the default color is used.
func (OS) Label_SetMultiline ¶
func (OS) Label_SetTextAlignment ¶
func (OS) MenuItem_SetDisabled ¶
func (OS) MenuItem_SetOnClickListener ¶
func (OS) MenuItem_SetSubmenu ¶
func (OS) MenuItem_SetTitle ¶
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) NewMenuItem ¶
func (OS) NewTextField ¶
func (OS) Panel_SetBackgroundColor ¶
func (OS) Util_ClientCoordinatesConv ¶
func (OS) Util_ClientToScreen ¶
func (OS) Window_ClientRect ¶
func (OS) Window_EnableDrawDebugRect ¶
func (OS) Window_Invalidate ¶
func (OS) Window_SetOnCloseListener ¶
func (OS) Window_SetOnDestroyListener ¶
func (OS) Window_SetOnSizeChangedListener ¶
func (OS) Window_TrackPopupMenu ¶
Click to show internal directories.
Click to hide internal directories.