API Documentation
MAIN PAGE
NAMESPACES
CLASSES
Documentation
Headers
NilkinsInputs
Devices
Mouses
MouseDeviceManager.h
1
// MouseDeviceManager.h
3
//
5
6
namespace
nkInputs
7
{
14
class
MouseDeviceManager
final :
public
nkCommon::MaybeSingletonClass<MouseDeviceManager>
15
{
16
public :
17
18
// Getters
22
System
*
getSystem
()
const
;
23
30
MouseDevice
*
createOrRetrieve
(
nkMemory::StringView
name) ;
42
MouseDevice
*
record
(
nkMemory::StringView
name,
nkMemory::UniquePtr<MouseDevice>
device) ;
49
MouseDevice
*
get
(
nkMemory::StringView
name)
const
;
58
MouseDevice
*
getByIndex
(
unsigned
int
index)
const
;
65
void
rename
(
nkMemory::StringView
currentName,
nkMemory::StringView
newName) ;
71
void
erase
(
nkMemory::StringView
name) ;
78
nkMemory::UniquePtr<MouseDevice>
relinquish
(
nkMemory::StringView
name) ;
79
} ;
80
}
nkInputs::MouseDevice
A mouse device.
Definition:
MouseDevice.h:22
nkInputs::MouseDeviceManager::record
MouseDevice * record(nkMemory::StringView name, nkMemory::UniquePtr< MouseDevice > device)
nkInputs::MouseDeviceManager::rename
void rename(nkMemory::StringView currentName, nkMemory::StringView newName)
nkInputs::System
Main interface with the component.
Definition:
System.h:38
nkInputs
Encompasses all API of component NilkinsInputs.
Definition:
KeyboardDevice.h:7
nkInputs::MouseDeviceManager::getSystem
System * getSystem() const
nkInputs::MouseDeviceManager::erase
void erase(nkMemory::StringView name)
nkInputs::MouseDeviceManager::getByIndex
MouseDevice * getByIndex(unsigned int index) const
nkMemory::UniquePtr
Smart pointer owning the object instance it encapsulates.
Definition:
UniquePtr.h:17
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition:
StringView.h:22
nkInputs::MouseDeviceManager::relinquish
nkMemory::UniquePtr< MouseDevice > relinquish(nkMemory::StringView name)
nkInputs::MouseDeviceManager
Manages the mouse devices available in the component.
Definition:
MouseDeviceManager.h:15
nkInputs::MouseDeviceManager::createOrRetrieve
MouseDevice * createOrRetrieve(nkMemory::StringView name)
nkInputs::MouseDeviceManager::get
MouseDevice * get(nkMemory::StringView name) const
Generated by
Doxygen
1.8.18