i3
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:

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  {
  WM_ANY = 0 , WM_TILING_AUTO , WM_TILING_USER , WM_TILING ,
  WM_FLOATING_AUTO , WM_FLOATING_USER , WM_FLOATING
}
 
enum  { M_HERE = 0 , M_ASSIGN_WS , M_BELOW }
 

Public Member Functions

 TAILQ_ENTRY (Match) matches
 

Data Fields

char * error
 
struct regextitle
 
struct regexapplication
 
struct regexclass
 
struct regexinstance
 
struct regexmark
 
struct regexwindow_role
 
struct regexworkspace
 
struct regexmachine
 
xcb_atom_t window_type
 
enum Match:: { ... }  urgent
 
enum Match:: { ... }  dock
 
xcb_window_t id
 
enum Match:: { ... }  window_mode
 
Concon_id
 
bool match_all_windows
 
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 529 of file data.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
U_DONTCHECK 
U_LATEST 
U_OLDEST 

Definition at line 542 of file data.h.

◆ anonymous enum

anonymous enum
Enumerator
M_DONTCHECK 
M_NODOCK 
M_DOCK_ANY 
M_DOCK_TOP 
M_DOCK_BOTTOM 

Definition at line 547 of file data.h.

◆ anonymous enum

anonymous enum
Enumerator
WM_ANY 
WM_TILING_AUTO 
WM_TILING_USER 
WM_TILING 
WM_FLOATING_AUTO 
WM_FLOATING_USER 
WM_FLOATING 

Definition at line 555 of file data.h.

◆ anonymous enum

anonymous enum
Enumerator
M_HERE 
M_ASSIGN_WS 
M_BELOW 

Definition at line 574 of file data.h.

Member Function Documentation

◆ TAILQ_ENTRY()

Match::TAILQ_ENTRY ( Match )

Field Documentation

◆ application

struct regex* Match::application

Definition at line 534 of file data.h.

Referenced by match_free(), and match_is_empty().

◆ class

struct regex* Match::class

Definition at line 535 of file data.h.

Referenced by json_string(), match_free(), match_is_empty(), and match_parse_property().

◆ con_id

Con* Match::con_id

Definition at line 562 of file data.h.

Referenced by cmd_criteria_match_windows(), match_is_empty(), and match_parse_property().

◆ []

◆ error

char* Match::error

Definition at line 531 of file data.h.

Referenced by CFGFUN(), CFGFUN(), CFGFUN(), CFGFUN(), match_free(), and match_parse_property().

◆ id

xcb_window_t Match::id

◆ []

enum { ... } Match::insert_where

◆ instance

struct regex* Match::instance

Definition at line 536 of file data.h.

Referenced by json_string(), match_free(), match_is_empty(), and match_parse_property().

◆ machine

struct regex* Match::machine

Definition at line 540 of file data.h.

Referenced by json_string(), match_free(), match_is_empty(), and match_parse_property().

◆ mark

struct regex* Match::mark

◆ match_all_windows

bool Match::match_all_windows

Definition at line 563 of file data.h.

Referenced by match_is_empty(), and match_parse_property().

◆ restart_mode

bool Match::restart_mode

Definition at line 583 of file data.h.

Referenced by dump_node(), json_bool(), and manage_window().

◆ title

struct regex* Match::title

Definition at line 533 of file data.h.

Referenced by json_string(), match_free(), match_is_empty(), and match_parse_property().

◆ []

enum { ... } Match::urgent

◆ []

enum { ... } Match::window_mode

◆ window_role

struct regex* Match::window_role

Definition at line 538 of file data.h.

Referenced by json_string(), match_free(), match_is_empty(), and match_parse_property().

◆ window_type

xcb_atom_t Match::window_type

Definition at line 541 of file data.h.

Referenced by match_init(), match_is_empty(), match_matches_window(), and match_parse_property().

◆ workspace

struct regex* Match::workspace

Definition at line 539 of file data.h.

Referenced by match_free(), match_is_empty(), match_matches_window(), and match_parse_property().


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