Struct i3ipc::reply::Node [] [src]

pub struct Node {
    pub nodes: Vec<Node>,
    pub id: i64,
    pub name: Option<String>,
    pub nodetype: NodeType,
    pub border: NodeBorder,
    pub current_border_width: i32,
    pub layout: NodeLayout,
    pub percent: Option<f64>,
    pub rect: (i32, i32, i32, i32),
    pub window_rect: (i32, i32, i32, i32),
    pub deco_rect: (i32, i32, i32, i32),
    pub geometry: (i32, i32, i32, i32),
    pub window: Option<i32>,
    pub urgent: bool,
    pub focused: bool,
}

The reply to the get_tree request.

Fields

The child nodes of this container.

The internal ID (actually a C pointer value) of this container. Do not make any assumptions about it. You can use it to (re-)identify and address containers when talking to i3.

The internal name of this container. For all containers which are part of the tree structure down to the workspace contents, this is set to a nice human-readable name of the container. For containers that have an X11 window, the content is the title (_NET_WM_NAME property) of that window. For all other containers, the content is not defined (yet).

Type of this container. Can be one of "root", "output", "con", "floating_con", "workspace" or "dockarea".

Can be either "normal", "none" or "1pixel", dependending on the container’s border style.

Number of pixels of the border width.

Can be either "splith", "splitv", "stacked", "tabbed", "dockarea" or "output". Other values might be possible in the future, should we add new layouts.

The percentage which this container takes in its parent. A value of null means that the percent property does not make sense for this container, for example for the root container.

The (x, y, width, height) absolute display coordinates for this container. Display coordinates means that when you have two 1600x1200 monitors on a single X11 Display (the standard way), the coordinates of the first window on the second monitor are (1600, 0, 1600, 1200).

The (x, y, width, height) coordinates of the actual client window inside its container. These coordinates are relative to the container and do not include the window decoration (which is actually rendered on the parent container). So for example, when using the default layout, you will have a 2 pixel border on each side, making the window_rect (2, 0, 632, 366).

The (x, y, width, height) coordinates of the window decoration inside its container. These coordinates are relative to the container and do not include the actual client window.

The original geometry the window specified when i3 mapped it. Used when switching a window to floating mode, for example.

The X11 window ID of the actual client window inside this container. This field is set to null for split containers or otherwise empty containers. This ID corresponds to what xwininfo(1) and other X11-related tools display (usually in hex).

Whether this container (window or workspace) has the urgency hint set.

Whether this container is currently focused.

Trait Implementations

impl Debug for Node
[src]

[src]

Formats the value using the given formatter.