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 (marks_head, mark_t) marks_head
 
 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...
 
surface_t frame
 
surface_t frame_buffer
 
bool pixmap_recreated
 
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 * title_format
 The format with which the window's name should be displayed. More...
 
char * sticky_group
 
bool mark_changed
 
double percent
 
int border_width
 
int current_border_width
 
struct Windowwindow
 
struct ev_timer * urgency_timer
 
struct deco_render_paramsdeco_render_params
 Cache for the decoration rendering. More...
 
fullscreen_mode_t fullscreen_mode
 
bool sticky
 
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 544 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 563 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 656 of file data.h.

anonymous enum
Enumerator
SCRATCHPAD_NONE 
SCRATCHPAD_FRESH 
SCRATCHPAD_CHANGED 

Definition at line 671 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 ( marks_head  ,
mark_t   
)
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

border_style_t Con::border_style
int Con::border_width
int Con::current_border_width
struct Rect Con::deco_rect
struct deco_render_params* Con::deco_render_params

Cache for the decoration rendering.

Definition at line 617 of file data.h.

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

uint16_t Con::depth

Definition at line 688 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().

surface_t Con::frame
surface_t Con::frame_buffer
fullscreen_mode_t Con::fullscreen_mode
struct Rect Con::geometry

the geometry this window requested when getting mapped

Definition at line 588 of file data.h.

Referenced by floating_enable(), handle_configure_request(), handle_strut_partial_change(), json_end_map(), json_int(), manage_window(), render_con_dockarea(), and render_output().

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 556 of file data.h.

Referenced by handle_unmap_notify_event(), and x_push_node().

layout_t Con::last_split_layout

Definition at line 648 of file data.h.

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

layout_t Con::layout
bool Con::mapped
bool Con::mark_changed

Definition at line 603 of file data.h.

Referenced by con_mark(), con_unmark(), and x_draw_decoration().

char* Con::name

Definition at line 590 of file data.h.

Referenced by _con_move_to_con(), _create___i3(), _workspace_show(), cmd_border(), cmd_criteria_match_windows(), cmd_floating(), cmd_focus(), cmd_fullscreen(), cmd_layout(), cmd_layout_toggle(), cmd_mark(), cmd_move_con_to_mark(), cmd_move_con_to_output(), cmd_move_con_to_workspace(), cmd_move_con_to_workspace_back_and_forth(), cmd_move_con_to_workspace_name(), cmd_move_con_to_workspace_number(), cmd_move_scratchpad(), cmd_move_window_to_center(), cmd_move_window_to_mouse(), cmd_rename_workspace(), cmd_scratchpad_show(), cmd_split(), cmd_sticky(), cmd_title_format(), cmd_workspace_number(), con_disable_fullscreen(), con_enable_fullscreen(), con_is_internal(), con_on_remove_child(), con_toggle_fullscreen(), create_workspace_on_output(), ewmh_update_desktop_names(), ewmh_update_desktop_viewport(), ewmh_update_number_of_desktops(), floating_maybe_reassign_ws(), floating_raise_con(), get_output_of_con(), handle_client_message(), handle_enter_notify(), handle_focus_in(), handle_strut_partial_change(), init_ws_for_output(), IPC_HANDLER(), json_end_map(), json_string(), manage_window(), match_matches_window(), maybe_back_and_forth(), move_to_output_directed(), open_placeholder_window(), output_change_mode(), output_init_con(), randr_query_outputs(), render_con(), route_click(), scratchpad_fix_resolution(), scratchpad_move(), start_application(), TAILQ_HEAD(), tree_flatten(), tree_init(), tree_restore(), workspace_attach_to(), workspace_encapsulate(), workspace_get(), workspace_move_to_output(), workspace_prev_on_output(), workspace_reassign_sticky(), and x_push_changes().

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 574 of file data.h.

Referenced by _con_attach(), _create___i3(), cmd_move_con_to_workspace_number(), cmd_rename_workspace(), cmd_workspace_number(), create_workspace_on_output(), IPC_HANDLER(), json_end_map(), 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 685 of file data.h.

Referenced by json_end_array(), and json_int().

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

callbacks

Definition at line 669 of file data.h.

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

Definition at line 561 of file data.h.

Referenced by x_draw_decoration(), and x_push_node().

struct Rect Con::rect
enum { ... } Con::scratchpad_state
bool Con::sticky

Definition at line 632 of file data.h.

Referenced by cmd_sticky(), con_is_sticky(), handle_client_message(), json_bool(), and manage_window().

char* Con::sticky_group

Definition at line 598 of file data.h.

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

char* Con::title_format

The format with which the window's name should be displayed.

Definition at line 593 of file data.h.

Referenced by cmd_title_format(), con_parse_title_format(), json_string(), window_update_name(), window_update_name_legacy(), and x_draw_decoration().

enum { ... } Con::type

Referenced by _con_attach(), _con_move_to_con(), _create___i3(), _tree_next(), cmd_append_layout(), cmd_focus_window_mode(), cmd_move_con_to_workspace(), cmd_move_con_to_workspace_name(), cmd_move_con_to_workspace_number(), cmd_resize_tiling_width_height(), cmd_split(), con_accepts_window(), con_border_style(), con_close(), con_descend_direction(), con_descend_tiling_focused(), con_detach(), con_disable_fullscreen(), con_enable_fullscreen(), con_force_split_parents_redraw(), con_fullscreen_permits_focusing(), con_get_next(), con_get_output(), con_get_workspace(), con_inside_floating(), con_is_docked(), con_is_hidden(), con_minimum_size(), con_move_to_mark(), con_move_to_workspace(), con_next_focused(), con_on_remove_child(), con_parent_with_orientation(), con_set_layout(), con_toggle_fullscreen(), con_toggle_layout(), con_update_parents_urgency(), create_workspace_on_output(), ewmh_update_wm_desktop_recursively(), floating_disable(), floating_enable(), floating_move_to_pointer(), handle_configure_request(), handle_enter_notify(), handle_focus_in(), handle_strut_partial_change(), insert_con_into(), IPC_HANDLER(), json_end_map(), json_int(), json_string(), level_down(), level_up(), manage_window(), mark_unmapped(), open_placeholder_window(), output_get_content(), output_init_con(), output_push_sticky_windows(), randr_query_outputs(), render_con(), render_output(), resize_find_tiling_participants(), route_click(), scratchpad_move(), scratchpad_show(), tiling_resize(), toggle_floating_mode(), tree_flatten(), tree_init(), tree_move(), tree_open_con(), tree_split(), workspace_get(), x_deco_recurse(), x_draw_decoration(), and x_push_node().

struct ev_timer* Con::urgency_timer

Definition at line 614 of file data.h.

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

bool Con::urgent
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: