display

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package display provides display specifications and graphics device builders for Virtualization framework guests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMacGraphicsConfig

func CreateMacGraphicsConfig(displays []Config) (vz.VZMacGraphicsDeviceConfiguration, error)

CreateMacGraphicsConfig creates a macOS graphics device configuration.

func CreateVirtioGraphicsConfig

func CreateVirtioGraphicsConfig(displays []Config) (vz.VZVirtioGraphicsDeviceConfiguration, error)

CreateVirtioGraphicsConfig creates a Virtio graphics device configuration.

Types

type Config

type Config struct {
	Width  int
	Height int
	PPI    int
}

Config describes a single display.

func Default

func Default() Config

Default returns the default display configuration (1920x1200 @ 144 PPI).

func DefaultConfig

func DefaultConfig() Config

DefaultConfig is kept as a compatibility alias.

func DefaultLinux

func DefaultLinux() Config

DefaultLinux returns the default Linux display configuration (1920x1080 @ 144 PPI).

func DefaultLinuxConfig

func DefaultLinuxConfig() Config

DefaultLinuxConfig is kept as a compatibility alias.

func ParseSpec

func ParseSpec(s string) (Config, error)

ParseSpec parses a display specification.

type Slice

type Slice []Config

Slice is a convenience wrapper for repeated display flags.

func (*Slice) Set

func (s *Slice) Set(value string) error

Set parses and appends a display spec.

func (*Slice) String

func (s *Slice) String() string

String implements fmt.Stringer.

Jump to

Keyboard shortcuts

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