Fyne API "container.InnerWindow"
container.InnerWindow
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
}
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) 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)