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

Cursor image and hotspot metadata captured from the window system. More...

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

Inheritance diagram for egl::cursor_t:
[legend]
Collaboration diagram for egl::cursor_t:
[legend]

Public Attributes

std::vector< std::uint8_t > buffer
 Cursor image pixels.
 
unsigned long serial
 X11 cursor serial used to detect cursor image changes.
 
int src_h
 Cursor source image height in pixels.
 
int src_w
 Cursor source image width in pixels.
 
int x
 Cursor hotspot or surface X coordinate.
 
int y
 Cursor hotspot or surface Y coordinate.
 
- Public Attributes inherited from platf::img_t
std::uint8_t * data {}
 Pointer to the captured image buffer.
 
std::optional< std::chrono::steady_clock::time_point > frame_timestamp
 Capture timestamp associated with the frame.
 
std::int32_t height {}
 Image height in pixels.
 
std::int32_t pixel_pitch {}
 Bytes per pixel in the image buffer.
 
std::int32_t row_pitch {}
 Bytes between consecutive image rows.
 
std::int32_t width {}
 Image width in pixels.
 

Additional Inherited Members

- Public Member Functions inherited from platf::img_t
 img_t (const img_t &)=delete
 
 img_t (img_t &&)=delete
 
img_toperator= (const img_t &)=delete
 
img_toperator= (img_t &&)=delete
 
virtual ~img_t ()=default
 Destroy the image.
 

Detailed Description

Cursor image and hotspot metadata captured from the window system.


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