Mir
Public Member Functions | List of all members
mir::input::InputSink Class Referenceabstract

#include <input_sink.h>

Public Member Functions

 InputSink ()=default
 
virtual ~InputSink ()=default
 
virtual void handle_input (MirEvent &event)=0
 
virtual mir::geometry::Rectangle bounding_rectangle () const =0
 ! Obtain the bounding rectangle of the destination area for this input sink More...
 
Device State interface of InputSink

In scenarios in which the system is not capable of receiving all changes as they occur, these method should be used to update the input device state as needed

virtual void key_state (std::vector< uint32_t > const &scan_codes)=0
 Set all pressed scan codes. More...
 
virtual void pointer_state (MirPointerButtons buttons)=0
 Set button state of a pointing device. More...
 

Constructor & Destructor Documentation

◆ InputSink()

mir::input::InputSink::InputSink ( )
default

◆ ~InputSink()

virtual mir::input::InputSink::~InputSink ( )
virtualdefault

Member Function Documentation

◆ bounding_rectangle()

virtual mir::geometry::Rectangle mir::input::InputSink::bounding_rectangle ( ) const
pure virtual

! Obtain the bounding rectangle of the destination area for this input sink

◆ handle_input()

virtual void mir::input::InputSink::handle_input ( MirEvent event)
pure virtual

◆ key_state()

virtual void mir::input::InputSink::key_state ( std::vector< uint32_t > const &  scan_codes)
pure virtual

Set all pressed scan codes.

Parameters
scan_codescurrently pressed

◆ pointer_state()

virtual void mir::input::InputSink::pointer_state ( MirPointerButtons  buttons)
pure virtual

Set button state of a pointing device.

Parameters
buttonsmask of the buttons currently pressed

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

Copyright © 2012-2016 Canonical Ltd.
Generated on Mon Jun 5 11:07:25 UTC 2017