Documentation
¶
Overview ¶
Package display handles monitor detection and cursor tracking
Index ¶
- type Backend
- type Display
- func (d *Display) Close() error
- func (d *Display) GetCursorPosition() (x, y int32, monitor *Monitor, err error)
- func (d *Display) GetEdge(x, y int32, threshold int32) Edge
- func (d *Display) GetMonitorAt(x, y int32) *Monitor
- func (d *Display) GetMonitors() []*Monitor
- func (d *Display) GetPrimaryMonitor() *Monitor
- type Edge
- type Monitor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface {
GetMonitors() ([]*Monitor, error)
GetCursorPosition() (x, y int32, err error)
Close() error
}
Backend interface for different display detection methods
type Display ¶
type Display struct {
// contains filtered or unexported fields
}
Display manages monitor configuration and cursor tracking
func (*Display) GetCursorPosition ¶
GetCursorPosition returns the current cursor position
func (*Display) GetMonitorAt ¶
GetMonitorAt returns the monitor containing the given coordinates
func (*Display) GetMonitors ¶
GetMonitors returns all detected monitors
func (*Display) GetPrimaryMonitor ¶
GetPrimaryMonitor returns the primary monitor
Click to show internal directories.
Click to hide internal directories.