Sunshine master
Self-hosted game stream host for Moonlight.
platf::x11::cursor_t Class Reference

X11 cursor image and positioning state used during capture. More...

#include <src/platform/linux/x11grab.h>

Collaboration diagram for platf::x11::cursor_t:
[legend]

Public Member Functions

void blend (img_t &img, int offsetX, int offsetY)
 
void capture (egl::cursor_t &img)
 Run the capture loop for this backend.
 

Static Public Member Functions

static std::optional< cursor_tmake ()
 Allocate the underlying object and wrap it in the owning handle.
 

Public Attributes

cursor_ctx_t ctx
 X11 cursor context used to track and blend cursor images.
 

Detailed Description

X11 cursor image and positioning state used during capture.

Member Function Documentation

◆ blend()

void platf::x11::cursor_t::blend ( img_t & img,
int offsetX,
int offsetY )

Capture and blend the cursor into the image

img <– destination image offsetX, offsetY <— Top left corner of the virtual screen

Parameters
imgImage or frame object to read from or populate.
offsetXOffset x.
offsetYOffset y.

◆ capture()

void platf::x11::cursor_t::capture ( egl::cursor_t & img)

Run the capture loop for this backend.

Parameters
imgImage or frame object to read from or populate.

◆ make()

std::optional< cursor_t > platf::x11::cursor_t::make ( )
static

Allocate the underlying object and wrap it in the owning handle.

Returns
Created backend object, or null when creation fails.

The documentation for this class was generated from the following files: