kodi
Public Member Functions | List of all members
KODI::WINDOWING::WAYLAND::IInputHandler Class Reference

Handler interface for input events from CSeatInputProcessor. More...

#include <SeatInputProcessing.h>

Inheritance diagram for KODI::WINDOWING::WAYLAND::IInputHandler:
Inheritance graph
[legend]

Public Member Functions

virtual void OnEvent (InputType type, XBMC_Event &event)
 Handle input event. More...
 
virtual void OnEnter (InputType type)
 Handle focus enter. More...
 
virtual void OnLeave (InputType type)
 Handle focus leave. More...
 
virtual void OnSetCursor (std::uint32_t seatGlobalName, std::uint32_t serial)
 Handle request for setting the cursor. More...
 

Detailed Description

Handler interface for input events from CSeatInputProcessor.

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: