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

Usage

type InnerWindow

  type InnerWindow struct {
	widget.BaseWidget

	CloseIntercept                                      func()                `json:"-"`
	OnDragged, OnResized                                func(*fyne.DragEvent) `json:"-"`
	OnMinimized, OnMaximized, OnTappedBar, OnTappedIcon func()                `json:"-"`
	Icon                                                fyne.Resource

	// Alignment allows an inner window to specify if the buttons should be on the left
	// (`ButtonAlignLeading`) or right of the window border.
	//
	// Since: 2.6
	Alignment widget.ButtonAlign

	// Title returns the string that is currently shown in the top of the window border.
	//
	// Since: 2.8
	Title string

	// Content returns the current `CanvasObject` that makes the content of this inner window.
	//
	// Since: 2.8
	Content *fyne.Container
}
  

InnerWindow defines a container that wraps content in a window border - that can then be placed inside a regular container/canvas.

Since: 2.5

func NewInnerWindow

  func NewInnerWindow(title string, content fyne.CanvasObject) *InnerWindow
  

NewInnerWindow creates a new window border around the given content, displaying the title along the top. This will behave like a normal contain and will probably want to be added to a MultipleWindows parent.

Since: 2.5

func (*InnerWindow) Close

  func (w *InnerWindow) Close()
  

func (*InnerWindow) CreateRenderer

  func (w *InnerWindow) CreateRenderer() fyne.WidgetRenderer
  

func (*InnerWindow) SetActive

  func (w *InnerWindow) SetActive(active bool)
  

SetActive tells the window whether it is the currently active (top) window. A new window is assumed to be active.

Since: 2.8

func (*InnerWindow) SetContent

  func (w *InnerWindow) SetContent(obj fyne.CanvasObject)
  

func (*InnerWindow) SetMaximized

  func (w *InnerWindow) SetMaximized(max bool)
  

SetMaximized tells the window if the maximized state should be set or not.

Since: 2.6

func (*InnerWindow) SetPadded

  func (w *InnerWindow) SetPadded(pad bool)
  

func (*InnerWindow) SetTitle

  func (w *InnerWindow) SetTitle(title string)