|
stmm-input-doc
0.17.0
|
Namespaces | |
| HardwareKeys | |
| libconfig | |
| testing | |
Classes | |
| class | Accessor |
| A generic class that helps a device manager to generate events. More... | |
| class | BasicDevice |
| Device class template. More... | |
| class | BasicDeviceManager |
| Helper class for implementing a device manager. More... | |
| class | CallIf |
| Base class used to determine whether to send an event to a listener. More... | |
| class | CallIfAccessor |
| Accessor callif. More... | |
| class | CallIfAnd |
| Applies a "conditional AND" to two callif conditions. More... | |
| class | CallIfCapabilityClass |
| Capability class callif. More... | |
| class | CallIfCapabilityId |
| Capability id callif. More... | |
| class | CallIfDeviceId |
| Device id callif. More... | |
| class | CallIfDeviceManagerCapability |
| Device manager capability callif. More... | |
| class | CallIfEventClass |
| Event class callif. More... | |
| class | CallIfFalse |
| Never call back listener. More... | |
| class | CallIfFuction |
| Function callif. More... | |
| class | CallIfNot |
| Applies a "NOT" to a callif condition. More... | |
| class | CallIfOr |
| Applies a "conditional OR" to two callif conditions. More... | |
| class | CallIfTrue |
| Always call back listener. More... | |
| class | CallIfXYEvent |
| XYEvent class callif. More... | |
| class | Capability |
| Base capability class. More... | |
| class | ChildDeviceManager |
| Defines a child device manager. More... | |
| class | Device |
| Device base class. More... | |
| class | DeviceManager |
| This class manages devices that generate events that listeners will receive. More... | |
| class | DeviceManagerCapability |
| DeviceManager capabilities should derive from this class. More... | |
| class | DeviceMgmtCapability |
| Device manager's capability for tree like composed device managers. More... | |
| class | DeviceMgmtEvent |
| Event informing about a device being added, removed or changed. More... | |
| class | Event |
| Base event class. More... | |
| class | GdkKeyConverter |
| Gdk key event (keycode) to hardware key conversion class. More... | |
| class | GdkKeyConverterEvDev |
Converts from evdev gdk keycode to hardware key (linux/input.h). More... | |
| class | GtkAccessor |
| Accessor wrapping a Gtk::Window. More... | |
| class | GtkDeviceManager |
| Device manager that attaches to Gtk's main event loop. More... | |
| class | JoystickAxisEvent |
| Event generated when the state of a joystick's absolute axis is changed. More... | |
| class | JoystickButtonEvent |
| Event generated when the state of a joystick's button is changed. More... | |
| class | JoystickCapability |
| The joystick capability of a device. More... | |
| class | JoystickHatEvent |
| Event generated when the state of a joystick's hat is changed. More... | |
| class | JsDeviceFiles |
| Joystick device files initialization class for GtkDeviceManager. More... | |
| class | KeyCapability |
| The keys capability of a device. More... | |
| class | KeyEvent |
| Event generated when the state of a key is changed. More... | |
| class | KeyRepeat |
| Key repeat translation type. More... | |
| class | ParentDeviceManager |
| Device manager container class. More... | |
| class | PluginsDeviceManager |
| Dynamic plug-in loader device manager class. More... | |
| class | PointerCapability |
| The pointer capability of a device. More... | |
| class | PointerEvent |
| Event generated when the button state or the position of a pointer is changed. More... | |
| class | PointerScrollEvent |
| Event generated when scrolling the pointer. More... | |
| class | StdDeviceManager |
| Helper class for implementing a device manager with DeviceMgmtCapability. More... | |
| class | TouchCapability |
| The touch capability of a device. More... | |
| class | TouchEvent |
| Event generated when the state of a touch is changed. More... | |
| class | XYEvent |
| Base class for pointer-like events that hold coordinates. More... | |
Typedefs | |
| using | EventListener = std::function< void(const shared_ptr< Event > &) noexcept > |
| The callback function type of the event listener. More... | |
| typedef shared_ptr< ChildDeviceManager > | createPlugin_t(const std::string &sAppName, bool bEnableEventClasses, const std::vector< Event::Class > &aEnDisableEventClasses) |
| The signature of the "createPlugin" function every plugin must provide. More... | |
| typedef shared_ptr<ChildDeviceManager> stmi::createPlugin_t(const std::string &sAppName, bool bEnableEventClasses, const std::vector< Event::Class > &aEnDisableEventClasses) |
The signature of the "createPlugin" function every plugin must provide.
Beware: the function shouldn't throw exceptions.
The function definition must be surrounded by extern "C". Example:
#ifdef __cplusplus
extern "C" {
#endif //__cplusplus
shared_ptr<ChildDeviceManager> createPlugin(const std::string& sAppName
, bool bEnableEventClasses
, const std::vector<Event::Class>& aEnDisableEventClasses);
#ifdef __cplusplus
}
#endif //__cplusplus
Parameter sAppName The application name. Can be empty.
Parameter bEnableEventClasses Whether to enable or disable event classes.
Parameter aEnDisableEventClasses The event classes to enable or disable.
Return The device manager or null if couldn't create one.
| using stmi::EventListener = typedef std::function<void(const shared_ptr<Event>&) noexcept> |
The callback function type of the event listener.
Should not throw exceptions.
| refEvent | The event. Can't be null. |
| enum stmi::HARDWARE_KEY |
The hardware key codes.
See <linux/input.h>
1.8.13