Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
platf::kwin::connection_t Class Reference

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

Classes

struct  impl_t

Public Member Functions

 connection_t (const connection_t &)=delete
connection_t & operator= (const connection_t &)=delete
const output_t & output () const
bool start_capture (bool cursor, std::uint64_t &serial, std::string &error)
bool dispatch (std::chrono::milliseconds timeout)
bool pointer_motion (double dx, double dy)
bool pointer_absolute (double x, double y)
bool button (std::uint32_t evdev_button, bool pressed)
bool axis (bool horizontal, double value)
bool key (std::uint32_t evdev_key, bool pressed)
bool touch_down (std::uint32_t id, double x, double y)
bool touch_motion (std::uint32_t id, double x, double y)
bool touch_up (std::uint32_t id)
bool keysym (std::uint32_t symbol, bool pressed)
std::string error () const

Static Public Member Functions

static std::unique_ptr< connection_t > open (const endpoint_t &endpoint, bool capture, bool input, std::string &error)

Detailed Description

Owns one accepted Wayland connection for its entire lifetime. A dead connection stays dead: a replacement compositor requires a new session. Calls are serialized; no global environment or default display is used.

Definition at line 35 of file kwin_session.h.

Member Function Documentation

◆ axis()

bool platf::kwin::connection_t::axis ( bool horizontal,
double value )

Definition at line 377 of file kwin_session.cpp.

◆ button()

bool platf::kwin::connection_t::button ( std::uint32_t evdev_button,
bool pressed )

Definition at line 368 of file kwin_session.cpp.

◆ dispatch()

bool platf::kwin::connection_t::dispatch ( std::chrono::milliseconds timeout)

Definition at line 345 of file kwin_session.cpp.

◆ error()

std::string platf::kwin::connection_t::error ( ) const

Definition at line 434 of file kwin_session.cpp.

◆ key()

bool platf::kwin::connection_t::key ( std::uint32_t evdev_key,
bool pressed )

Definition at line 386 of file kwin_session.cpp.

◆ keysym()

bool platf::kwin::connection_t::keysym ( std::uint32_t symbol,
bool pressed )

Definition at line 425 of file kwin_session.cpp.

◆ open()

std::unique_ptr< connection_t > platf::kwin::connection_t::open ( const endpoint_t & endpoint,
bool capture,
bool input,
std::string & error )
static

Definition at line 244 of file kwin_session.cpp.

◆ output()

const output_t & platf::kwin::connection_t::output ( ) const

Definition at line 298 of file kwin_session.cpp.

◆ pointer_absolute()

bool platf::kwin::connection_t::pointer_absolute ( double x,
double y )

Definition at line 359 of file kwin_session.cpp.

◆ pointer_motion()

bool platf::kwin::connection_t::pointer_motion ( double dx,
double dy )

Definition at line 350 of file kwin_session.cpp.

◆ start_capture()

bool platf::kwin::connection_t::start_capture ( bool cursor,
std::uint64_t & serial,
std::string & error )

Definition at line 302 of file kwin_session.cpp.

◆ touch_down()

bool platf::kwin::connection_t::touch_down ( std::uint32_t id,
double x,
double y )

Definition at line 395 of file kwin_session.cpp.

◆ touch_motion()

bool platf::kwin::connection_t::touch_motion ( std::uint32_t id,
double x,
double y )

Definition at line 405 of file kwin_session.cpp.

◆ touch_up()

bool platf::kwin::connection_t::touch_up ( std::uint32_t id)

Definition at line 415 of file kwin_session.cpp.


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