Dunst
Lightweight notification daemon
Loading...
Searching...
No Matches
x.h File Reference

Xorg output wrapper. More...

#include <cairo.h>
#include <glib.h>
#include <stdbool.h>
#include <X11/extensions/scrnsaver.h>
#include <X11/X.h>
#include <X11/Xlib.h>
#include "../output.h"
#include "screen.h"
+ Include dependency graph for x.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  x_context
 

Functions

window x_win_create (void)
 
void x_win_destroy (window)
 
void x_win_show (window)
 
void x_win_hide (window)
 
void x_display_surface (cairo_surface_t *srf, window, const struct dimensions *dim)
 
cairo_t * x_win_get_context (window)
 
bool x_is_idle (void)
 
bool x_setup (void)
 
void x_free (void)
 
double x_get_scale (void)
 

Variables

struct x_context xctx
 

Detailed Description

Xorg output wrapper.

License
BSD-3-Clause

Definition in file x.h.

Macro Definition Documentation

◆ XLIB_ILLEGAL_ACCESS

#define XLIB_ILLEGAL_ACCESS

Definition at line 14 of file x.h.

Function Documentation

◆ x_display_surface()

void x_display_surface ( cairo_surface_t * srf,
window winptr,
const struct dimensions * dim )

Definition at line 174 of file x.c.

◆ x_free()

void x_free ( void )

Definition at line 468 of file x.c.

◆ x_get_scale()

double x_get_scale ( void )

Definition at line 952 of file x.c.

◆ x_is_idle()

bool x_is_idle ( void )

Definition at line 413 of file x.c.

◆ x_setup()

bool x_setup ( void )

Definition at line 528 of file x.c.

◆ x_win_create()

window x_win_create ( void )

Definition at line 644 of file x.c.

◆ x_win_destroy()

void x_win_destroy ( window winptr)

Definition at line 719 of file x.c.

◆ x_win_get_context()

cairo_t * x_win_get_context ( window winptr)

Definition at line 201 of file x.c.

◆ x_win_hide()

void x_win_hide ( window winptr)

Definition at line 773 of file x.c.

◆ x_win_show()

void x_win_show ( window winptr)

Definition at line 736 of file x.c.

Variable Documentation

◆ xctx

struct x_context xctx
extern

Definition at line 69 of file x.c.