[][src]Struct swayipc::reply::Node

pub struct Node {
    pub id: i64,
    pub name: Option<String>,
    pub node_type: NodeType,
    pub border: NodeBorder,
    pub current_border_width: i32,
    pub layout: NodeLayout,
    pub percent: Option<f64>,
    pub rect: Rect,
    pub window_rect: Rect,
    pub deco_rect: Rect,
    pub geometry: Rect,
    pub urgent: bool,
    pub focused: bool,
    pub focus: Vec<i64>,
    pub nodes: Vec<Node>,
    pub floating_nodes: Vec<Node>,
    pub sticky: bool,
    pub representation: Option<String>,
    pub fullscreen_mode: Option<u8>,
    pub app_id: Option<String>,
    pub pid: Option<i32>,
    pub window: Option<i32>,
    pub window_properties: Option<WindowProperties>,
}

Fields

id: i64name: Option<String>node_type: NodeTypeborder: NodeBordercurrent_border_width: i32layout: NodeLayoutpercent: Option<f64>rect: Rectwindow_rect: Rectdeco_rect: Rectgeometry: Recturgent: boolfocused: boolfocus: Vec<i64>nodes: Vec<Node>floating_nodes: Vec<Node>sticky: boolrepresentation: Option<String>fullscreen_mode: Option<u8>app_id: Option<String>pid: Option<i32>window: Option<i32>window_properties: Option<WindowProperties>

Methods

impl Node[src]

pub fn find_as_ref(&self, predicate: fn(_: &Node) -> bool) -> Option<&Node>[src]

pub fn find(self, predicate: fn(_: &Node) -> bool) -> Option<Node>[src]

pub fn find_focused_as_ref(
    &self,
    predicate: fn(_: &Node) -> bool
) -> Option<&Node>
[src]

pub fn find_focused(self, predicate: fn(_: &Node) -> bool) -> Option<Node>[src]

Trait Implementations

impl Debug for Node[src]

impl<'de> Deserialize<'de> for Node[src]

impl PartialEq<Node> for Node[src]

impl StructuralPartialEq for Node[src]

Auto Trait Implementations

impl RefUnwindSafe for Node

impl Send for Node

impl Sync for Node

impl Unpin for Node

impl UnwindSafe for Node

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.