Ariver
2026-06-03 a19e8d996efac4052b4ea87da16330e8f98934b9
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
31
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)
    Size() (int, int)
    OnDragged(fn func(x, y int))
    Close()
}