output

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: MIT, MIT Imports: 11 Imported by: 0 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 output advertises backend outputs to clients as wl_output and zxdg_output_v1 objects, with their place in the logical layout and scale.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func New

func New(d *server.Display) (*Manager, error)

func (*Manager) Add

func (m *Manager) Add(b backend.Output, position image.Point, scale Scale, transform render.Transform) (*Output, error)

func (*Manager) Outputs

func (m *Manager) Outputs() []*Output

func (*Manager) Owner

func (m *Manager) Owner(res *sw.WlOutput) *Output

func (*Manager) Physical

func (m *Manager) Physical(clients func(*server.Client) bool) error

type Output

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

func (*Output) AppendResources

func (o *Output) AppendResources(out []*sw.WlOutput, c *server.Client) []*sw.WlOutput

func (*Output) Backend

func (o *Output) Backend() backend.Output

func (*Output) Changed

func (o *Output) Changed() error

func (*Output) Logical

func (o *Output) Logical() image.Rectangle

func (*Output) LogicalSize

func (o *Output) LogicalSize() image.Point

func (*Output) PixelSize

func (o *Output) PixelSize() image.Point

func (*Output) Position

func (o *Output) Position() image.Point

func (*Output) Remove

func (o *Output) Remove() error

func (*Output) Resources

func (o *Output) Resources(c *server.Client) []*sw.WlOutput

func (*Output) Scale

func (o *Output) Scale() Scale

func (*Output) Transform

func (o *Output) Transform() render.Transform

func (*Output) Update

func (o *Output) Update(position image.Point, scale Scale, transform render.Transform) error

func (*Output) XPosition

func (o *Output) XPosition() image.Point

func (*Output) XRect

func (o *Output) XRect() image.Rectangle

type Scale

type Scale uint32
const (
	Unit     Scale = 120
	MinScale Scale = Unit / 4
	MaxScale Scale = Unit * 10
)

func ParseScale

func ParseScale(f float64) (Scale, error)

func (Scale) Ceil

func (s Scale) Ceil() int32

func (Scale) DeviceAt

func (s Scale) DeviceAt(logical, px int, of Scale) int

func (Scale) DevicePoint

func (s Scale) DevicePoint(p image.Point) image.Point

func (Scale) DevicePointAt

func (s Scale) DevicePointAt(logical, px image.Point, of Scale) image.Point

func (Scale) Float

func (s Scale) Float() float64

func (Scale) LogicalPoint

func (s Scale) LogicalPoint(p image.Point) image.Point

func (Scale) Rect

func (s Scale) Rect(r image.Rectangle) image.Rectangle

func (Scale) ToDevice

func (s Scale) ToDevice(v int) int

func (Scale) ToLogical

func (s Scale) ToLogical(px int) int

Jump to

Keyboard shortcuts

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