Documentation
¶
Index ¶
- type IWindow
- type IWindowOwner
- type Window
- func (instance *Window) Caption() string
- func (instance *Window) CenterOnScreen() *Window
- func (instance *Window) Close() *Window
- func (instance *Window) FixedSize() bool
- func (instance *Window) Height() float32
- func (instance *Window) Hide() *Window
- func (instance *Window) IsFullScreen() bool
- func (instance *Window) IsVisible() bool
- func (instance *Window) Match(uidOrCaption string) bool
- func (instance *Window) On(name string, callback func(event *gg_events.Event))
- func (instance *Window) Owner() any
- func (instance *Window) Padded() bool
- func (instance *Window) RequestFocus() *Window
- func (instance *Window) Resize(width, height float32) *Window
- func (instance *Window) SetCaption(caption string) *Window
- func (instance *Window) SetCloseIntercept(callback func()) *Window
- func (instance *Window) SetFixedSize(value bool) *Window
- func (instance *Window) SetFullScreen(value bool) *Window
- func (instance *Window) SetHeight(v float32) *Window
- func (instance *Window) SetMainMenu(menu *fyne.MainMenu) *Window
- func (instance *Window) SetMaster() *Window
- func (instance *Window) SetPadded(value bool) *Window
- func (instance *Window) SetUid(uid string) error
- func (instance *Window) SetWidth(v float32) *Window
- func (instance *Window) Show() *Window
- func (instance *Window) Size() fyne.Size
- func (instance *Window) Uid() string
- func (instance *Window) Width() float32
- type WindowList
- func (instance *WindowList) Add(win IWindow) (response IWindow)
- func (instance *WindowList) Exists(uid string) (response bool)
- func (instance *WindowList) ForEach(callback func(owner IWindow) error)
- func (instance *WindowList) Get(uid string) (response IWindow)
- func (instance *WindowList) IndexOf(uid string) (response int)
- func (instance *WindowList) Remove(uid string) (response bool)
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 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) CenterOnScreen ¶
func (*Window) IsFullScreen ¶
func (*Window) RequestFocus ¶
func (*Window) SetCaption ¶
func (*Window) SetCloseIntercept ¶
SetCloseIntercept override default behaviour
func (*Window) SetFixedSize ¶
func (*Window) SetFullScreen ¶
func (*Window) SetMainMenu ¶
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)
Click to show internal directories.
Click to hide internal directories.