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: ? 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

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
randrq command

Jump to

Keyboard shortcuts

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