i3
Public Types | Public Member Functions | Data Fields
Con Struct Reference

A 'Con' represents everything from the X11 root window down to a single X11 window. More...

#include <data.h>

Collaboration diagram for Con:
Collaboration graph
[legend]

Public Types

enum  {
  CT_ROOT = 0, CT_OUTPUT = 1, CT_CON = 2, CT_FLOATING_CON = 3,
  CT_WORKSPACE = 4, CT_DOCKAREA = 5
}
 
enum  { FLOATING_AUTO_OFF = 0, FLOATING_USER_OFF = 1, FLOATING_AUTO_ON = 2, FLOATING_USER_ON = 3 }
 floating? (= not in tiling layout) This cannot be simply a bool because we want to keep track of whether the status was set by the application (by setting _NET_WM_WINDOW_TYPE appropriately) or by the user. More...
 
enum  { SCRATCHPAD_NONE = 0, SCRATCHPAD_FRESH = 1, SCRATCHPAD_CHANGED = 2 }
 

Public Member Functions

 TAILQ_HEAD (floating_head, Con) floating_head
 
 TAILQ_HEAD (nodes_head, Con) nodes_head
 
 TAILQ_HEAD (focus_head, Con) focus_head
 
 TAILQ_HEAD (swallow_head, Match) swallow_head
 
 TAILQ_ENTRY (Con) nodes
 
 TAILQ_ENTRY (Con) focused
 
 TAILQ_ENTRY (Con) all_cons
 
 TAILQ_ENTRY (Con) floating_windows
 

Data Fields

bool mapped
 
bool urgent
 
uint8_t ignore_unmap
 This counter contains the number of UnmapNotify events for this container (or, more precisely, for its ->frame) which should be ignored. More...
 
bool pixmap_recreated
 
xcb_window_t frame
 
xcb_pixmap_t pixmap
 
xcb_gcontext_t pm_gc
 
enum Con:: { ... }  type
 
int num
 the workspace number, if this Con is of type CT_WORKSPACE and the workspace is not a named workspace (for named workspaces, num == -1) More...
 
struct Conparent
 
struct Rect rect
 
struct Rect window_rect
 
struct Rect deco_rect
 
struct Rect geometry
 the geometry this window requested when getting mapped More...
 
char * name
 
char * sticky_group
 
char * mark
 
double percent
 
double aspect_ratio
 
int base_width
 
int base_height
 
int border_width
 
int current_border_width
 
int width_increment
 
int height_increment
 
struct Windowwindow
 
struct ev_timer * urgency_timer
 
struct deco_render_paramsdeco_render_params
 Cache for the decoration rendering. More...
 
fullscreen_mode_t fullscreen_mode
 
layout_t layout
 
layout_t last_split_layout
 
layout_t workspace_layout
 
border_style_t border_style
 
enum Con:: { ... }  floating
 floating? (= not in tiling layout) This cannot be simply a bool because we want to keep track of whether the status was set by the application (by setting _NET_WM_WINDOW_TYPE appropriately) or by the user. More...
 
void(* on_remove_child )(Con *)
 callbacks More...
 
enum Con:: { ... }  scratchpad_state
 
int old_id
 
uint16_t depth
 

Detailed Description

A 'Con' represents everything from the X11 root window down to a single X11 window.

Definition at line 479 of file data.h.

Member Enumeration Documentation

anonymous enum
Enumerator
CT_ROOT 
CT_OUTPUT 
CT_CON 
CT_FLOATING_CON 
CT_WORKSPACE 
CT_DOCKAREA 

Definition at line 499 of file data.h.

anonymous enum

floating? (= not in tiling layout) This cannot be simply a bool because we want to keep track of whether the status was set by the application (by setting _NET_WM_WINDOW_TYPE appropriately) or by the user.

The user’s choice overwrites automatic mode, of course. The order of the values is important because we check with >= FLOATING_AUTO_ON if a client is floating.

Enumerator
FLOATING_AUTO_OFF 
FLOATING_USER_OFF 
FLOATING_AUTO_ON 
FLOATING_USER_ON 

Definition at line 586 of file data.h.

anonymous enum
Enumerator
SCRATCHPAD_NONE 
SCRATCHPAD_FRESH 
SCRATCHPAD_CHANGED 

Definition at line 601 of file data.h.

Member Function Documentation

Con::TAILQ_ENTRY ( Con  )
Con::TAILQ_ENTRY ( Con  )
Con::TAILQ_ENTRY ( Con  )
Con::TAILQ_ENTRY ( Con  )
Con::TAILQ_HEAD ( floating_head  ,
Con   
)
Con::TAILQ_HEAD ( nodes_head  ,
Con   
)
Con::TAILQ_HEAD ( focus_head  ,
Con   
)
Con::TAILQ_HEAD ( swallow_head  ,
Match   
)

Field Documentation

double Con::aspect_ratio

Definition at line 533 of file data.h.

Referenced by handle_normal_hints(), and render_con().

int Con::base_height

Definition at line 537 of file data.h.

Referenced by floating_check_size(), and handle_normal_hints().

int Con::base_width

Definition at line 536 of file data.h.

Referenced by floating_check_size(), and handle_normal_hints().

border_style_t Con::border_style
int Con::border_width
int Con::current_border_width

Definition at line 541 of file data.h.

Referenced by con_border_style_rect(), con_set_border_style(), json_int(), and json_string().

struct Rect Con::deco_rect
struct deco_render_params* Con::deco_render_params

Cache for the decoration rendering.

Definition at line 553 of file data.h.

Referenced by con_force_split_parents_redraw(), load_configuration(), move_to_output_directed(), tree_move(), tree_split(), and x_draw_decoration().

uint16_t Con::depth

Definition at line 618 of file data.h.

Referenced by json_end_map(), and json_int().

enum { ... } Con::floating

floating? (= not in tiling layout) This cannot be simply a bool because we want to keep track of whether the status was set by the application (by setting _NET_WM_WINDOW_TYPE appropriately) or by the user.

The user’s choice overwrites automatic mode, of course. The order of the values is important because we check with >= FLOATING_AUTO_ON if a client is floating.

Referenced by con_inside_floating(), con_is_floating(), floating_disable(), floating_enable(), and json_string().

xcb_window_t Con::frame
fullscreen_mode_t Con::fullscreen_mode
struct Rect Con::geometry

the geometry this window requested when getting mapped

Definition at line 518 of file data.h.

Referenced by floating_enable(), handle_configure_request(), json_int(), manage_window(), render_con(), and render_l_output().

int Con::height_increment

Definition at line 545 of file data.h.

Referenced by cmd_resize_floating(), floating_check_size(), and handle_normal_hints().

uint8_t Con::ignore_unmap

This counter contains the number of UnmapNotify events for this container (or, more precisely, for its ->frame) which should be ignored.

UnmapNotify events need to be ignored when they are caused by i3 itself, for example when reparenting or when unmapping the window on a workspace change.

Definition at line 491 of file data.h.

Referenced by handle_unmap_notify_event(), x_push_node(), and x_push_node_unmaps().

layout_t Con::last_split_layout

Definition at line 578 of file data.h.

Referenced by con_set_layout(), con_toggle_layout(), and json_string().

layout_t Con::layout
bool Con::mapped
char* Con::mark

Definition at line 528 of file data.h.

Referenced by cmd_criteria_match_windows(), cmd_mark(), cmd_unmark(), IPC_HANDLER(), and json_string().

char* Con::name
int Con::num

the workspace number, if this Con is of type CT_WORKSPACE and the workspace is not a named workspace (for named workspaces, num == -1)

Definition at line 510 of file data.h.

Referenced by _create___i3(), cmd_move_con_to_workspace_number(), cmd_rename_workspace(), cmd_workspace_number(), con_attach(), create_workspace_on_output(), IPC_HANDLER(), json_int(), output_change_mode(), workspace_get(), workspace_next(), workspace_next_on_output(), workspace_prev(), and workspace_prev_on_output().

int Con::old_id

Definition at line 615 of file data.h.

Referenced by json_end_array(), and json_int().

void(* Con::on_remove_child)(Con *)

callbacks

Definition at line 599 of file data.h.

struct Con* Con::parent
double Con::percent
xcb_pixmap_t Con::pixmap
bool Con::pixmap_recreated

Definition at line 494 of file data.h.

Referenced by x_draw_decoration(), and x_push_node().

xcb_gcontext_t Con::pm_gc
struct Rect Con::rect
enum { ... } Con::scratchpad_state
char* Con::sticky_group

Definition at line 525 of file data.h.

Referenced by _get_sticky(), json_string(), and workspace_reassign_sticky().

enum { ... } Con::type
struct ev_timer* Con::urgency_timer

Definition at line 550 of file data.h.

Referenced by _workspace_show(), con_set_urgency(), and workspace_defer_update_urgent_hint_cb().

bool Con::urgent
int Con::width_increment

Definition at line 544 of file data.h.

Referenced by cmd_resize_floating(), floating_check_size(), and handle_normal_hints().

struct Window* Con::window
struct Rect Con::window_rect
layout_t Con::workspace_layout

The documentation for this struct was generated from the following file: