screenmanager

package
v0.0.0-...-2b927ac Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Mode    *Mode
	Outputs []randr.Output
	X, Y    int16
	// contains filtered or unexported fields
}

type Mode

type Mode struct {
	Width, Height uint16
	// contains filtered or unexported fields
}

type Output

type Output struct {
	CurrentMode *Mode
	Modes       []Mode
	Name        string
	// contains filtered or unexported fields
}

type Screens

type Screens struct {
	widget.BaseWidget

	// OnConfigurationChanged, if set, is invoked whenever the screen or layout
	// configuration changes — for example a monitor being plugged in or removed,
	// or a resolution or position change. It is called on the main goroutine
	// after the internal state and UI have been refreshed, so it is safe to
	// query the current configuration or update Fyne widgets from within it.
	OnConfigurationChanged func()
	// contains filtered or unexported fields
}

Screens is a custom widget presenting the screen-management UI, together with its lifecycle controls and change notifications. Obtain one from New and add it to a container or window like any other Fyne widget.

func New

func New(w fyne.Window) *Screens

func (*Screens) Close

func (s *Screens) Close()

Close releases the X resources held by the screen manager. Call it once the UI is no longer needed, for example when the owning window closes.

func (*Screens) CreateRenderer

func (s *Screens) CreateRenderer() fyne.WidgetRenderer

CreateRenderer returns the renderer for the widget, drawing the screen-manager UI built by makeUI as its content. It implements fyne.Widget.

type State

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

Jump to

Keyboard shortcuts

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