Fyne API "container.MultipleWindows"

container.MultipleWindows


import "fyne.io/fyne/v2/container"

Usage

type MultipleWindows

type MultipleWindows struct {
	widget.BaseWidget

	Windows []*InnerWindow
}

MultipleWindows is a container that handles multiple InnerWindow containers. Each inner window can be dragged, resized and the stacking will change when the title bar is tapped.

Since: 2.5

func NewMultipleWindows

func NewMultipleWindows(wins ...*InnerWindow) *MultipleWindows

NewMultipleWindows creates a new MultipleWindows container to manage many inner windows. The initial window list is passed optionally to this constructor function. You can add new more windows to this container by calling Add or updating the Windows field and calling Refresh.

Since: 2.5

func (*MultipleWindows) Add

func (m *MultipleWindows) Add(w *InnerWindow)

func (*MultipleWindows) CreateRenderer

func (m *MultipleWindows) CreateRenderer() fyne.WidgetRenderer

func (*MultipleWindows) Refresh

func (m *MultipleWindows) Refresh()