Clutter.DeviceManager

g Clutter.DeviceManager Clutter.DeviceManager GObject.Object GObject.Object GObject.Object->Clutter.DeviceManager

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

get_default ()

get_core_device (device_type)

get_device (device_id)

list_devices ()

peek_devices ()

Virtual Methods

Inherited:

GObject.Object (7)

do_add_device (device)

do_get_core_device (device_type)

do_get_device (device_id)

do_remove_device (device)

do_select_stage_events (stage)

Properties

Name

Type

Flags

Short Description

backend

Clutter.Backend

r/w/co

The Clutter.Backend of the device manager

Signals

Inherited:

GObject.Object (1)

Name

Short Description

device-added

The ::device-added signal is emitted each time a device has been added to the Clutter.DeviceManager

device-removed

The ::device-removed signal is emitted each time a device has been removed from the Clutter.DeviceManager

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Clutter.DeviceManager(**kwargs)
Bases:

GObject.Object

Abstract:

Yes

Structure:

Clutter.DeviceManagerClass

The Clutter.DeviceManager structure contains only private data

New 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:

Clutter.DeviceManager

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 or None. The returned device is owned by the Clutter.DeviceManager and should not be modified or freed

Return type:

Clutter.InputDevice

Retrieves the core Clutter.InputDevice of type device_type

Core 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 or None. The returned device is owned by the Clutter.DeviceManager and should never be modified or freed

Return type:

Clutter.InputDevice

Retrieves the Clutter.InputDevice with the given device_id

New 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:

[Clutter.InputDevice]

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 the Clutter.DeviceManager and should never be modified or freed

Return type:

[Clutter.InputDevice]

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 or None. The returned device is owned by the Clutter.DeviceManager and should not be modified or freed

Return type:

Clutter.InputDevice

Retrieves the core Clutter.InputDevice of type device_type

Core 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 or None. The returned device is owned by the Clutter.DeviceManager and should never be modified or freed

Return type:

Clutter.InputDevice

Retrieves the Clutter.InputDevice with the given device_id

New 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:

RUN_LAST

Parameters:

The ::device-added signal is emitted each time a device has been added to the Clutter.DeviceManager

New in version 1.2.

Clutter.DeviceManager.signals.device_removed(device_manager, device)
Signal Name:

device-removed

Flags:

RUN_LAST

Parameters:

The ::device-removed signal is emitted each time a device has been removed from the Clutter.DeviceManager

New in version 1.2.

Property Details

Clutter.DeviceManager.props.backend
Name:

backend

Type:

Clutter.Backend

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

The Clutter.Backend of the device manager