Clutter.DeviceManager¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The |
|
The |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Clutter.DeviceManager(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
The
Clutter.DeviceManager
structure contains only private dataNew in version 1.2.
- classmethod get_default()¶
- Returns:
the
Clutter.DeviceManager
singleton. The returned instance is owned by Clutter and it should not be modified or freed- Return type:
Retrieves the device manager singleton
New in version 1.2.
- get_core_device(device_type)¶
- Parameters:
device_type (
Clutter.InputDeviceType
) – the type of the core device- Returns:
a
Clutter.InputDevice
orNone
. The returned device is owned by theClutter.DeviceManager
and should not be modified or freed- Return type:
Retrieves the core
Clutter.InputDevice
of type device_typeCore devices are devices created automatically by the default Clutter backend
New in version 1.2.
- get_device(device_id)¶
- Parameters:
device_id (
int
) – the integer id of a device- Returns:
a
Clutter.InputDevice
orNone
. The returned device is owned by theClutter.DeviceManager
and should never be modified or freed- Return type:
Retrieves the
Clutter.InputDevice
with the given device_idNew in version 1.2.
- list_devices()¶
- Returns:
a newly allocated list of
Clutter.InputDevice
objects. Use g_slist_free() to deallocate it when done- Return type:
Lists all currently registered input devices
New in version 1.2.
- peek_devices()¶
- Returns:
a pointer to the internal list of
Clutter.InputDevice
objects. The returned list is owned by theClutter.DeviceManager
and should never be modified or freed- Return type:
Lists all currently registered input devices
New in version 1.2.
- do_add_device(device) virtual¶
- Parameters:
device (
Clutter.InputDevice
) –
- do_get_core_device(device_type) virtual¶
- Parameters:
device_type (
Clutter.InputDeviceType
) – the type of the core device- Returns:
a
Clutter.InputDevice
orNone
. The returned device is owned by theClutter.DeviceManager
and should not be modified or freed- Return type:
Retrieves the core
Clutter.InputDevice
of type device_typeCore devices are devices created automatically by the default Clutter backend
New in version 1.2.
- do_get_device(device_id) virtual¶
- Parameters:
device_id (
int
) – the integer id of a device- Returns:
a
Clutter.InputDevice
orNone
. The returned device is owned by theClutter.DeviceManager
and should never be modified or freed- Return type:
Retrieves the
Clutter.InputDevice
with the given device_idNew in version 1.2.
- do_remove_device(device) virtual¶
- Parameters:
device (
Clutter.InputDevice
) –
- do_select_stage_events(stage) virtual¶
- Parameters:
stage (
Clutter.Stage
) –
Signal Details¶
- Clutter.DeviceManager.signals.device_added(device_manager, device)¶
- Signal Name:
device-added
- Flags:
- Parameters:
device_manager (
Clutter.DeviceManager
) – The object which received the signaldevice (
Clutter.InputDevice
) – the newly addedClutter.InputDevice
The
::device-added
signal is emitted each time a device has been added to theClutter.DeviceManager
New in version 1.2.
- Clutter.DeviceManager.signals.device_removed(device_manager, device)¶
- Signal Name:
device-removed
- Flags:
- Parameters:
device_manager (
Clutter.DeviceManager
) – The object which received the signaldevice (
Clutter.InputDevice
) – the removedClutter.InputDevice
The
::device-removed
signal is emitted each time a device has been removed from theClutter.DeviceManager
New in version 1.2.
Property Details¶
- Clutter.DeviceManager.props.backend¶
- Name:
backend
- Type:
- Default Value:
- Flags:
The
Clutter.Backend
of the device manager