Ariver
2026-05-18 4ffa57abab0370b5bd8485a51bb333b369682aea
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package overlay
 
// Status represents the indicator display state.
type Status string
 
const (
    StatusHidden     Status = "hidden"
    StatusLoading    Status = "loading"
    StatusReady      Status = "ready"
    StatusRecording    Status = "recording"
    StatusFreetalking  Status = "freetalking"
    StatusProcessing Status = "processing"
    StatusDone       Status = "done"
    StatusCancelled  Status = "cancelled"
    StatusNoVoice    Status = "no_voice"
    StatusNoContent  Status = "no_content"
    StatusError      Status = "error"
)
 
// Overlay is a native floating indicator window with per-pixel alpha.
type Overlay interface {
    Show()
    Hide()
    SetStatus(status Status, text string)
    SetVolume(vol float64)
    SetPosition(x, y int)
    GetPosition() (int, int)
    OnDragged(fn func(x, y int))
    Close()
}