types

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Monitor

type Monitor struct {
	Bounds   Rect    // Monitor bounds in screen units
	WorkArea Rect    // Work area (excluding taskbar, etc.) in screen units
	Scale    float64 // Scale factor (1.0 = 100%, 2.0 = 200%, etc.)
}

Monitor represents a display monitor and its properties. All coordinates are in screen units (physical pixels on Windows/Linux, points on macOS). Scale factor is used to convert between screen units and logical units.

type Rect

type Rect struct {
	Left   int // X coordinate of the left edge
	Top    int // Y coordinate of the top edge
	Right  int // X coordinate of the right edge
	Bottom int // Y coordinate of the bottom edge
}

Rect represents a rectangle with coordinates in screen units

Jump to

Keyboard shortcuts

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