Files
niri/model_layersurface.go
2025-07-25 13:41:23 +02:00

33 lines
945 B
Go

package niri
import "encoding/json"
type LayerSurface struct {
Namespace string `json:"namespace"`
Output OutputName `json:"output"`
Layer Layer `json:"layer"`
KeyboardInteractivity LayerSurfaceKeyboardInteractivity `json:"keyboard_interactivity"`
}
func (m LayerSurface) String() string {
data, _ := json.MarshalIndent(m, "", "\t")
return string(data)
}
type Layer string
const (
LayerBackground Layer = "Background"
LayerBottom Layer = "Bottom"
LayerTop Layer = "Top"
LayerOverlay Layer = "Overlay"
)
type LayerSurfaceKeyboardInteractivity string
const (
KeyboardInteractivityNone LayerSurfaceKeyboardInteractivity = "None"
KeyboardInteractivityExclusive LayerSurfaceKeyboardInteractivity = "Exclusive"
KeyboardInteractivityOnDemand LayerSurfaceKeyboardInteractivity = "OnDemand"
)