fixed types for tree
This commit is contained in:
parent
03553661d6
commit
391bb0ea2f
45
src/types.rs
45
src/types.rs
@ -23,7 +23,6 @@ pub struct Workspace {
|
||||
pub window_rect: Rect,
|
||||
pub geometry: Rect,
|
||||
pub name: String,
|
||||
//pub nodes: Box<Vec<Workspace>>,
|
||||
pub floating_nodes: Vec<FloatingNodes>,
|
||||
pub focus: Vec<i32>,
|
||||
pub fullscreen_mode: i32,
|
||||
@ -203,14 +202,52 @@ pub struct Tree {
|
||||
pub window_rect: Rect,
|
||||
pub geometry: Rect,
|
||||
pub name: String,
|
||||
//window:
|
||||
pub nodes: Vec<Output>,
|
||||
pub floating: Vec<FloatingNodes>,
|
||||
pub nodes: Vec<Nodes>,
|
||||
pub floating: Option<Vec<FloatingNodes>>,
|
||||
pub focus: Vec<i32>,
|
||||
pub fullscreen_mode: i32,
|
||||
pub sticky: bool
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct Nodes {
|
||||
pub id: i32,
|
||||
#[serde(rename = "type")]
|
||||
pub _type: String,
|
||||
pub orientation: String,
|
||||
pub percent: Option<f32>,
|
||||
pub urgent: bool,
|
||||
pub layout: String,
|
||||
pub border: String,
|
||||
pub current_border_width: i32,
|
||||
pub rect: Rect,
|
||||
pub deco_rect: Rect,
|
||||
pub window_rect: Rect,
|
||||
pub geometry: Rect,
|
||||
pub name: String,
|
||||
pub nodes: Option<Vec<Workspace>>,
|
||||
pub floating_nodes: Vec<FloatingNodes>,
|
||||
pub focus: Vec<i32>,
|
||||
pub fullscreen_mode: i32,
|
||||
pub sticky: bool,
|
||||
pub active: Option<bool>,
|
||||
pub dpms: Option<bool>,
|
||||
pub primary: Option<bool>,
|
||||
pub make: Option<String>,
|
||||
pub model: Option<String>,
|
||||
pub serial: Option<String>,
|
||||
pub scale: Option<f32>,
|
||||
pub scale_filter: Option<String>,
|
||||
pub transform: Option<String>,
|
||||
pub adaptive_sync_status: Option<String>,
|
||||
pub current_workspace: Option<String>,
|
||||
pub modes: Option<Vec<Mode>>,
|
||||
pub current_mode: Option<Mode>,
|
||||
pub max_render_time: Option<i32>,
|
||||
pub focused: Option<bool>,
|
||||
pub subpixel_hinting: Option<String>
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct Seat {
|
||||
pub name: String,
|
||||
|
Loading…
x
Reference in New Issue
Block a user