15extern "C" struct _XDisplay;
22 struct cursor_ctx_raw_t;
55 static std::optional<cursor_t>
make();
73 void blend(
img_t &img,
int offsetX,
int offsetY);
Cursor image and hotspot metadata captured from the window system.
Definition graphics.h:593
X11 cursor image and positioning state used during capture.
Definition x11grab.h:48
static std::optional< cursor_t > make()
Allocate the underlying object and wrap it in the owning handle.
Definition x11grab.cpp:1049
void blend(img_t &img, int offsetX, int offsetY)
Definition x11grab.cpp:1088
cursor_ctx_t ctx
X11 cursor context used to track and blend cursor images.
Definition x11grab.h:75
void capture(egl::cursor_t &img)
Run the capture loop for this backend.
Definition x11grab.cpp:1061
Declarations for common platform specific utilities.
Captured frame buffer shared between capture and encode stages.
Definition common.h:530
Declarations for utility functions.
uniq_ptr< T, Destroy< T *, void, function > > safe_ptr
Unique pointer using a compile-time C-style destroy function.
Definition utility.h:1590
xdisplay_t make_display()
Open and initialize the display connection used for capture.
Definition x11grab.cpp:1095
void freeDisplay(_XDisplay *xdisplay)
Release display resources.
Definition x11grab.cpp:1102
void freeCursorCtx(cursor_ctx_t::pointer ctx)
Release cursor context resources.
Definition x11grab.cpp:1111
util::safe_ptr< _XDisplay, &freeDisplay > xdisplay_t
X11 display pointer released with XCloseDisplay.
Definition x11grab.h:43
util::safe_ptr< cursor_ctx_raw_t, &freeCursorCtx > cursor_ctx_t
XFixes cursor image pointer released with XFree.
Definition x11grab.h:39