gorandr

package module
v0.0.0-...-a41fcbc Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fingerprint

func Fingerprint(conn *xgb.Conn, root xproto.Window, outs []*Output, h hash.Hash) ([]byte, error)

Fingerprint identifies a connected output <-> EDID mapping. It assumes that randr.Init(conn) has been called and succeeded. If h is nil, 128-bit FNV-1a is used for hashing.

Types

type Output

type Output struct {
	Name      string `json:"name"`
	MmWidth   uint32 `json:"mm_width"`
	MmHeight  uint32 `json:"mm_height"`
	X         int16  `json:"x"`
	Y         int16  `json:"y"`
	Width     uint16 `json:"width"`
	Height    uint16 `json:"height"`
	Rotation  uint16 `json:"rotation"`
	Rotations uint16 `json:"rotations"`
	Length    uint32 `json:"length"`
	Area      uint64 `json:"area,omitempty"`
	// contains filtered or unexported fields
}

Output represents the X output.

func ActiveOutputs

func ActiveOutputs(conn *xgb.Conn, root xproto.Window) ([]*Output, error)

ActiveOutputs returns the currently connected outputs.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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