17 lines
530 B
Go
17 lines
530 B
Go
package niri
|
|
|
|
import "encoding/json"
|
|
|
|
type WindowLayout struct {
|
|
PosInScrollingLayout Option[[2]int] `json:"pos_in_scrolling_layout"`
|
|
TileSize [2]float64 `json:"tile_size"`
|
|
WindowSize [2]int `json:"window_size"`
|
|
TilePosInWorkspaceView Option[[2]float64] `json:"tile_pos_in_workspace_view"`
|
|
WindowOffsetInTile [2]float64 `json:"window_offset_in_tile"`
|
|
}
|
|
|
|
func (m WindowLayout) String() string {
|
|
data, _ := json.MarshalIndent(m, "", "\t")
|
|
return string(data)
|
|
}
|