i3
Public Member Functions | Data Fields
xoutput Struct Reference

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

#include <data.h>

Collaboration diagram for xoutput:
Collaboration graph
[legend]

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 395 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

bool xoutput::active

◆ changed

bool xoutput::changed

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

Definition at line 405 of file data.h.

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

◆ con

Con* xoutput::con

◆ id

xcb_randr_output_t xoutput::id

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

Definition at line 397 of file data.h.

Referenced by get_output_by_id().

◆ primary

bool xoutput::primary

Definition at line 407 of file data.h.

Referenced by get_first_output(), get_output_by_name(), randr_query_outputs(), and TAILQ_HEAD().

◆ rect

Rect xoutput::rect

◆ to_be_disabled

bool xoutput::to_be_disabled

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