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

A "match" is a data structure which acts like a mask or expression to match certain windows or not. More...

#include <data.h>

Collaboration diagram for Match:
Collaboration graph
[legend]

Public Types

enum  { U_DONTCHECK = -1, U_LATEST = 0, U_OLDEST = 1 }
enum  {
  M_DONTCHECK = -1, M_NODOCK = 0, M_DOCK_ANY = 1, M_DOCK_TOP = 2,
  M_DOCK_BOTTOM = 3
}
enum  { M_ANY = 0, M_TILING, M_FLOATING }
enum  { M_HERE = 0, M_ASSIGN_WS, M_BELOW }

Public Member Functions

 TAILQ_ENTRY (Match) matches

Data Fields

struct regextitle
struct regexapplication
struct regexclass
struct regexinstance
struct regexmark
struct regexrole
enum Match:: { ... }  urgent
enum Match:: { ... }  dock
xcb_window_t id
Concon_id
enum Match:: { ... }  floating
enum Match:: { ... }  insert_where
bool restart_mode

Detailed Description

A "match" is a data structure which acts like a mask or expression to match certain windows or not.

For example, when using commands, you can specify a command like this: [title="*Firefox*"] kill. The title member of the match data structure will then be filled and i3 will check each window using match_matches_window() to find the windows affected by this command.

Definition at line 338 of file data.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
M_HERE 
M_ASSIGN_WS 
M_BELOW 

Definition at line 370 of file data.h.

anonymous enum
Enumerator:
U_DONTCHECK 
U_LATEST 
U_OLDEST 

Definition at line 345 of file data.h.

anonymous enum
Enumerator:
M_DONTCHECK 
M_NODOCK 
M_DOCK_ANY 
M_DOCK_TOP 
M_DOCK_BOTTOM 

Definition at line 350 of file data.h.

anonymous enum
Enumerator:
M_ANY 
M_TILING 
M_FLOATING 

Definition at line 359 of file data.h.


Member Function Documentation

Match::TAILQ_ENTRY ( Match  )

Field Documentation

Definition at line 340 of file data.h.

Referenced by match_free(), and match_is_empty().

Definition at line 358 of file data.h.

Referenced by cmd_criteria_add(), cmd_criteria_match_windows(), match_is_empty(), and yyparse().

enum { ... } Match::dock
enum { ... } Match::floating

Referenced by match_is_empty().

xcb_window_t Match::id

Definition at line 357 of file data.h.

Referenced by cmd_criteria_add(), json_int(), match_is_empty(), match_matches_window(), and yyparse().

enum { ... } Match::insert_where

Definition at line 342 of file data.h.

Referenced by cmd_criteria_add(), match_free(), match_is_empty(), match_matches_window(), and yyparse().

struct regex* Match::mark

Definition at line 375 of file data.h.

Referenced by json_bool(), and manage_window().

struct regex* Match::role

Definition at line 344 of file data.h.

Referenced by cmd_criteria_add(), match_free(), match_is_empty(), match_matches_window(), and yyparse().

Definition at line 339 of file data.h.

Referenced by cmd_criteria_add(), match_free(), match_is_empty(), match_matches_window(), and yyparse().

enum { ... } Match::urgent

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