gui/pkg/screen/messages.go
Snider 91f4532b50 feat(screen): add screen core.Service with computed queries via IPC
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 14:19:56 +00:00

20 lines
674 B
Go

// pkg/screen/messages.go
package screen
// QueryAll returns all screens. Result: []Screen
type QueryAll struct{}
// QueryPrimary returns the primary screen. Result: *Screen (nil if not found)
type QueryPrimary struct{}
// QueryByID returns a screen by ID. Result: *Screen (nil if not found)
type QueryByID struct{ ID string }
// QueryAtPoint returns the screen containing a point. Result: *Screen (nil if none)
type QueryAtPoint struct{ X, Y int }
// QueryWorkAreas returns work areas for all screens. Result: []Rect
type QueryWorkAreas struct{}
// ActionScreensChanged is broadcast when displays change (future).
type ActionScreensChanged struct{ Screens []Screen }