ui

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateStatusWindow

func CreateStatusWindow(context *UIContext, model *StatusList)

Types

type NotifyIcon

type NotifyIcon struct {
	*UIContext

	*walk.MainWindow
	zerolog.Logger
	// contains filtered or unexported fields
}

func CreateNotifyIcon

func CreateNotifyIcon(context *UIContext) *NotifyIcon

func (*NotifyIcon) AddAction

func (ui *NotifyIcon) AddAction(title string, action func())

func (*NotifyIcon) AddActions

func (ui *NotifyIcon) AddActions()

func (*NotifyIcon) Close

func (ui *NotifyIcon) Close()

func (*NotifyIcon) NotificationInfo

func (ui *NotifyIcon) NotificationInfo(title string, msg string)

type StatusList

type StatusList struct {
	walk.ReflectListModelBase
	// contains filtered or unexported fields
}

func NewStatusList

func NewStatusList() *StatusList

func (*StatusList) AddState

func (sl *StatusList) AddState(state core.FileSyncState)

func (*StatusList) Items

func (sl *StatusList) Items() interface{}

type Styler

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

func (*Styler) Canvas

func (s *Styler) Canvas() (*walk.Canvas, error)

func (*Styler) DefaultItemHeight

func (s *Styler) DefaultItemHeight() int

func (*Styler) ItemHeight

func (s *Styler) ItemHeight(index, width int) int

func (*Styler) ItemHeightDependsOnWidth

func (s *Styler) ItemHeightDependsOnWidth() bool

func (*Styler) StampSize

func (s *Styler) StampSize() walk.Size

func (*Styler) StyleItem

func (s *Styler) StyleItem(style *walk.ListItemStyle)

type UIContext

type UIContext struct {
	Logger  zerolog.Logger
	LogFile string
	Version string

	*walk.MainWindow
}

Jump to

Keyboard shortcuts

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