initial commit
This commit is contained in:
32
model_layersurface.go
Normal file
32
model_layersurface.go
Normal file
@ -0,0 +1,32 @@
|
||||
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"
|
||||
)
|
Reference in New Issue
Block a user