ddewloutput

package
v0.0.0-...-20e650a Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetOutputs

func SetOutputs(list OutputList) error

Types

type ModeFlag

type ModeFlag int32
const (
	ModeFlagNone      ModeFlag = 0
	ModeFlagCurrent   ModeFlag = 1 << 0
	ModeFlagPreferred ModeFlag = 1 << 1
)

func (ModeFlag) String

func (f ModeFlag) String() string

type Output

type Output struct {
	Name         string
	UUID         string
	Manufacturer string

	Enabled bool
	Primary bool

	X          int32
	Y          int32
	Width      int32
	Height     int32
	PhysWidth  int32
	PhysHeight int32
	Transform  int32

	Refresh float64
	ScaleF  float64

	Modes OutputModeList
}

type OutputList

type OutputList []*Output

func (OutputList) Get

func (list OutputList) Get(uuid string) *Output

func (OutputList) ScreenSize

func (list OutputList) ScreenSize() (int32, int32)

type OutputMode

type OutputMode struct {
	ID     int32
	Width  int32
	Height int32
	Flag   ModeFlag

	Refresh float64
}

type OutputModeList

type OutputModeList []*OutputMode

func (OutputModeList) Current

func (modes OutputModeList) Current() *OutputMode

func (OutputModeList) Preferred

func (modes OutputModeList) Preferred() *OutputMode

type ScreenInfo

type ScreenInfo struct {
	Width  int32
	Height int32

	Outputs OutputList
}

func GetScreenInfo

func GetScreenInfo() (*ScreenInfo, error)

Jump to

Keyboard shortcuts

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