i3
xoutput Struct Reference

An Output is a physical output on your graphics driver. More...

#include <data.h>

Collaboration diagram for xoutput:

Public Member Functions

 SLIST_HEAD (names_head, output_name) names_head
 List of names for the output.
 
 TAILQ_ENTRY (xoutput) outputs
 

Data Fields

xcb_randr_output_t id
 Output id, so that we can requery the output directly later.
 
bool active
 Whether the output is currently active (has a CRTC attached with a valid mode)
 
bool changed
 Internal flags, necessary for querying RandR screens (happens in two stages)
 
bool to_be_disabled
 
bool primary
 
Concon
 Pointer to the Con which represents this output.
 
Rect rect
 x, y, width, height
 

Detailed Description

An Output is a physical output on your graphics driver.

Outputs which are currently in use have (output->active == true). Each output has a position and a mode. An output usually corresponds to one connected screen (except if you are running multiple screens in clone mode).

Definition at line 391 of file data.h.

Member Function Documentation

◆ SLIST_HEAD()

xoutput::SLIST_HEAD ( names_head ,
output_name  )

List of names for the output.

An output always has at least one name; the first name is considered the primary one.

◆ TAILQ_ENTRY()

xoutput::TAILQ_ENTRY ( xoutput )

Field Documentation

◆ active

◆ changed

bool xoutput::changed

Internal flags, necessary for querying RandR screens (happens in two stages)

Definition at line 401 of file data.h.

Referenced by main(), randr_disable_output(), and randr_query_outputs().

◆ con

◆ id

xcb_randr_output_t xoutput::id

Output id, so that we can requery the output directly later.

Definition at line 393 of file data.h.

Referenced by get_output_by_id().

◆ primary

bool xoutput::primary

◆ rect

◆ to_be_disabled

bool xoutput::to_be_disabled

Definition at line 402 of file data.h.

Referenced by any_randr_output_active(), main(), randr_disable_output(), and randr_query_outputs().


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