Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Zone ¶
type Zone struct {
Metadata map[string]interface{}
OnClick func() tea.Cmd
ID string
Type ZoneType
X int
Y int
Width int
Height int
}
Zone represents an interactive clickable/hoverable area in the UI
type ZoneManager ¶
type ZoneManager interface {
Register(zone Zone)
FindZoneAt(x, y int) *Zone
GetHoveredZone() *Zone
IsHovered(zoneID string) bool
UpdateMousePos(x, y int) tea.Cmd
Clear()
GetZones() []Zone
}
ZoneManager defines the interface for managing interactive zones
func NewZoneManager ¶
func NewZoneManager() ZoneManager
NewZoneManager creates a new ZoneManager instance
Click to show internal directories.
Click to hide internal directories.