added WindowLayout to Window structure introduced in Niri version 25.08
This commit is contained in:
16
model_window_layout.go
Normal file
16
model_window_layout.go
Normal file
@ -0,0 +1,16 @@
|
||||
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)
|
||||
}
|
Reference in New Issue
Block a user