Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
KODI::WINDOWING::WAYLAND::IInputHandler Class Reference

#include <SeatInputProcessing.h>

Inheritance diagram for KODI::WINDOWING::WAYLAND::IInputHandler:
KODI::WINDOWING::WAYLAND::CWinSystemWayland KODI::WINDOWING::WAYLAND::CWinSystemWaylandEGLContext KODI::WINDOWING::WAYLAND::CWinSystemWaylandWebOS KODI::WINDOWING::WAYLAND::CWinSystemWaylandEGLContextGL KODI::WINDOWING::WAYLAND::CWinSystemWaylandEGLContextGLES

Public Member Functions

virtual void OnEvent (InputType type, XBMC_Event &event)
 
virtual void OnEnter (InputType type)
 
virtual void OnLeave (InputType type)
 
virtual void OnSetCursor (std::uint32_t seatGlobalName, std::uint32_t serial)
 
virtual ~IInputHandler ()=default
 

Detailed Description

Handler interface for input events from CSeatInputProcessor

Constructor & Destructor Documentation

◆ ~IInputHandler()

virtual KODI::WINDOWING::WAYLAND::IInputHandler::~IInputHandler ( )
virtualdefault

Member Function Documentation

◆ OnEnter()

virtual void KODI::WINDOWING::WAYLAND::IInputHandler::OnEnter ( InputType type)
inlinevirtual

Handle focus enter

Parameters
typeinput device type for which the surface has gained the focus

◆ OnEvent()

virtual void KODI::WINDOWING::WAYLAND::IInputHandler::OnEvent ( InputType type,
XBMC_Event & event )
inlinevirtual

Handle input event

Parameters
typeinput device type that caused the event
eventXBMC event data

◆ OnLeave()

virtual void KODI::WINDOWING::WAYLAND::IInputHandler::OnLeave ( InputType type)
inlinevirtual

Handle focus leave

Parameters
typeinput device type for which the surface has lost the focus

◆ OnSetCursor()

virtual void KODI::WINDOWING::WAYLAND::IInputHandler::OnSetCursor ( std::uint32_t seatGlobalName,
std::uint32_t serial )
inlinevirtual

Handle request for setting the cursor

When the client gains pointer focus for a surface, a cursor image must be attached to the pointer. Otherwise the previous pointer image would be used.

This request is sent in addition to OnEnter for InputType::POINTER.

Parameters
seatGlobalNamenumeric Wayland global name of the seat the event occurred on
pointerpointer instance that needs its cursor set
serialWayland protocol message serial that must be sent back in set_cursor

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