Sunshine master
Self-hosted game stream host for Moonlight.
x11grab.h File Reference

Declarations for x11 capture. More...

#include <optional>
#include "src/platform/common.h"
#include "src/utility.h"
Include dependency graph for x11grab.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  platf::x11::cursor_t
 X11 cursor image and positioning state used during capture. More...
 

Typedefs

using platf::x11::cursor_ctx_t = util::safe_ptr<cursor_ctx_raw_t, freeCursorCtx>
 XFixes cursor image pointer released with XFree.
 
using platf::x11::xdisplay_t = util::safe_ptr<_XDisplay, freeDisplay>
 X11 display pointer released with XCloseDisplay.
 

Functions

void platf::x11::freeCursorCtx (cursor_ctx_raw_t *ctx)
 Release cursor context resources.
 
void platf::x11::freeDisplay (_XDisplay *xdisplay)
 Release display resources.
 
xdisplay_t platf::x11::make_display ()
 Open and initialize the display connection used for capture.
 

Detailed Description

Declarations for x11 capture.

Function Documentation

◆ freeCursorCtx()

void platf::x11::freeCursorCtx ( cursor_ctx_raw_t * ctx)

Release cursor context resources.

Parameters
ctxNative context object used by the operation or callback.

◆ freeDisplay()

void platf::x11::freeDisplay ( _XDisplay * xdisplay)

Release display resources.

Parameters
xdisplayX11 display connection.

◆ make_display()

xdisplay_t platf::x11::make_display ( )

Open and initialize the display connection used for capture.

Returns
Constructed display object.