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

#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  { CF_NONE = 0, CF_OUTPUT = 1, CF_GLOBAL = 2 }
enum  {
  L_DEFAULT = 0, L_STACKED = 1, L_TABBED = 2, L_DOCKAREA = 3,
  L_OUTPUT = 4
}
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...

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
enum Con:: { ... }  type
orientation_t orientation
struct Conparent
struct Rect rect
struct Rect window_rect
struct Rect deco_rect
struct Rect geometry
 the geometry this window requested when getting mapped
char * name
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)
char * sticky_group
char * mark
double percent
int proportional_width
int proportional_height
int base_width
int base_height
int border_width
int width_increment
int height_increment
struct Windowwindow
bool urgent
xcb_window_t frame
xcb_pixmap_t pixmap
xcb_gcontext_t pm_gc
bool pixmap_recreated
struct deco_render_paramsdeco_render_params
 Cache for the decoration rendering.
enum Con:: { ... }  fullscreen_mode
enum Con:: { ... }  layout
border_style_t border_style
enum Con:: { ... }  floating
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.
void(* on_remove_child )(Con *)
 callbacks

Detailed Description

Definition at line 361 of file data.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
L_DEFAULT 
L_STACKED 
L_TABBED 
L_DOCKAREA 
L_OUTPUT 

Definition at line 436 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 444 of file data.h.

anonymous enum
Enumerator:
CT_ROOT 
CT_OUTPUT 
CT_CON 
CT_FLOATING_CON 
CT_WORKSPACE 
CT_DOCKAREA 

Definition at line 363 of file data.h.

anonymous enum
Enumerator:
CF_NONE 
CF_OUTPUT 
CF_GLOBAL 

Definition at line 435 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 ( nodes_head  ,
Con   
)
Con::TAILQ_HEAD ( floating_head  ,
Con   
)
Con::TAILQ_HEAD ( focus_head  ,
Con   
)
Con::TAILQ_HEAD ( swallow_head  ,
Match   
)

Field Documentation

Definition at line 403 of file data.h.

Referenced by handle_normal_hints(), and render_con().

Definition at line 402 of file data.h.

Referenced by handle_normal_hints(), and render_con().

Definition at line 437 of file data.h.

Referenced by con_border_style(), handle_configure_request(), json_string(), and render_con().

Definition at line 406 of file data.h.

Referenced by manage_window(), render_con(), and restore_geometry().

Cache for the decoration rendering.

Definition at line 425 of file data.h.

Referenced by tree_close(), and x_draw_decoration().

enum { ... } Con::floating
xcb_window_t Con::frame
enum { ... } Con::fullscreen_mode

the geometry this window requested when getting mapped

Definition at line 378 of file data.h.

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

Definition at line 410 of file data.h.

Referenced by handle_normal_hints(), and render_con().

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

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

enum { ... } Con::layout
char* Con::mark

Definition at line 392 of file data.h.

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

Referenced by con_attach(), init_ws_for_output(), IPC_HANDLER(), json_int(), output_change_mode(), and workspace_get().

callbacks

Definition at line 464 of file data.h.

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

Definition at line 420 of file data.h.

Referenced by x_con_kill(), x_deco_recurse(), x_draw_decoration(), and x_push_node().

Definition at line 422 of file data.h.

Referenced by x_draw_decoration(), and x_push_node().

xcb_gcontext_t Con::pm_gc

Definition at line 421 of file data.h.

Referenced by x_con_kill(), x_deco_recurse(), x_draw_decoration(), and x_push_node().

Definition at line 399 of file data.h.

Referenced by handle_normal_hints(), and render_con().

Definition at line 398 of file data.h.

Referenced by handle_normal_hints(), and render_con().

struct Rect Con::rect

Definition at line 389 of file data.h.

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

enum { ... } Con::type

Definition at line 409 of file data.h.

Referenced by handle_normal_hints(), and render_con().


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