|
stmm-games-doc
0.32.0
|
A generic class that helps a device manager to generate events. More...
Public Member Functions | |
| virtual | ~Accessor () noexcept=default |
| virtual bool | operator== (const Accessor &oOther) const noexcept=0 |
| Accessor comparison. More... | |
Static Public Attributes | |
| static const shared_ptr< Accessor > | s_refEmptyAccessor |
Protected Member Functions | |
| Accessor () noexcept=default | |
A generic class that helps a device manager to generate events.
Subclass Accessor for system specific access to devices and/or subsets of event sources. The subclass has to make sure no reference cycles are created which lead to memory leaks.
Example: within the GTK environment a device manager supporting pointer devices uses the subclass GtkAccessor, which holds a (weak) reference to a Gtk::Window. This allows it to listen to pointer events generated in the specified window.
|
virtualdefaultnoexcept |
|
protecteddefaultnoexcept |
|
pure virtualnoexcept |
Accessor comparison.
Needed to identify accessors and remove them.
|
static |
1.8.13