zwin

package
v0.3.31 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: BSD-3-Clause Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IWindow

type IWindow interface {
	Uid() string
	SetUid(uid string) error
	Owner() any
	Caption() string
	SetCaption(caption string) *Window
	Match(uidOrCaption string) bool
	RequestFocus() *Window
	SetMainMenu(menu *fyne.MainMenu) *Window
	SetMaster() *Window
	On(name string, callback func(event *gg_events.Event))
	SetCloseIntercept(callback func()) *Window
	IsVisible() bool
	Show() *Window
	Hide() *Window
	Close() *Window
	CenterOnScreen() *Window
	IsFullScreen() bool
	SetFullScreen(value bool) *Window
	FixedSize() bool
	SetFixedSize(value bool) *Window
	Padded() bool
	SetPadded(value bool) *Window
	Resize(width, height float32) *Window
	Size() fyne.Size
	Width() float32
	SetWidth(v float32) *Window
	Height() float32
	SetHeight(v float32) *Window
}

type IWindowOwner

type IWindowOwner interface {
	GetCaption() string
	Window() IWindow
}

type Window

type Window struct {
	UI fyne.Window
	// contains filtered or unexported fields
}

func NewWindow

func NewWindow(uid string, owner IWindowOwner, ui fyne.App, uiEvents *gg_events.Emitter, winList *WindowList) (instance *Window)

func (*Window) Caption

func (instance *Window) Caption() string

func (*Window) CenterOnScreen

func (instance *Window) CenterOnScreen() *Window

func (*Window) Close

func (instance *Window) Close() *Window

func (*Window) FixedSize

func (instance *Window) FixedSize() bool

func (*Window) Height

func (instance *Window) Height() float32

func (*Window) Hide

func (instance *Window) Hide() *Window

func (*Window) IsFullScreen

func (instance *Window) IsFullScreen() bool

func (*Window) IsVisible

func (instance *Window) IsVisible() bool

func (*Window) Match

func (instance *Window) Match(uidOrCaption string) bool

func (*Window) On

func (instance *Window) On(name string, callback func(event *gg_events.Event))

func (*Window) Owner

func (instance *Window) Owner() any

func (*Window) Padded

func (instance *Window) Padded() bool

func (*Window) RequestFocus

func (instance *Window) RequestFocus() *Window

func (*Window) Resize

func (instance *Window) Resize(width, height float32) *Window

func (*Window) SetCaption

func (instance *Window) SetCaption(caption string) *Window

func (*Window) SetCloseIntercept

func (instance *Window) SetCloseIntercept(callback func()) *Window

SetCloseIntercept override default behaviour

func (*Window) SetFixedSize

func (instance *Window) SetFixedSize(value bool) *Window

func (*Window) SetFullScreen

func (instance *Window) SetFullScreen(value bool) *Window

func (*Window) SetHeight

func (instance *Window) SetHeight(v float32) *Window

func (*Window) SetMainMenu

func (instance *Window) SetMainMenu(menu *fyne.MainMenu) *Window

func (*Window) SetMaster

func (instance *Window) SetMaster() *Window

func (*Window) SetPadded

func (instance *Window) SetPadded(value bool) *Window

func (*Window) SetUid

func (instance *Window) SetUid(uid string) error

func (*Window) SetWidth

func (instance *Window) SetWidth(v float32) *Window

func (*Window) Show

func (instance *Window) Show() *Window

func (*Window) Size

func (instance *Window) Size() fyne.Size

func (*Window) Uid

func (instance *Window) Uid() string

func (*Window) Width

func (instance *Window) Width() float32

type WindowList

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

func NewWindowList

func NewWindowList() (instance *WindowList)

func (*WindowList) Add

func (instance *WindowList) Add(win IWindow) (response IWindow)

func (*WindowList) Exists

func (instance *WindowList) Exists(uid string) (response bool)

func (*WindowList) ForEach

func (instance *WindowList) ForEach(callback func(owner IWindow) error)

func (*WindowList) Get

func (instance *WindowList) Get(uid string) (response IWindow)

func (*WindowList) IndexOf

func (instance *WindowList) IndexOf(uid string) (response int)

func (*WindowList) Remove

func (instance *WindowList) Remove(uid string) (response bool)

Jump to

Keyboard shortcuts

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