Class: Clutter::DeviceManager

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Overview

The Clutter::DeviceManagerClass structure contains only private data

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.defaultClutter::DeviceManager

Retrieves the device manager singleton

Returns:

  • (Clutter::DeviceManager)

    the Clutter::DeviceManager singleton. The returned instance is owned by Clutter and it should not be modified or freed

Instance Method Details

#backendClutter::Backend

Returns backend.

Returns:

#backend=(backend) ⇒ Clutter::Backend

Parameters:

Returns:

#get_core_device(device_type) ⇒ Clutter::InputDevice

Retrieves the core Clutter::InputDevice of type device_type

Core devices are devices created automatically by the default Clutter backend

Parameters:

Returns:

  • (Clutter::InputDevice)

    a Clutter::InputDevice or nil. The returned device is owned by the Clutter::DeviceManager and should not be modified or freed

#get_device(device_id) ⇒ Clutter::InputDevice

Retrieves the Clutter::InputDevice with the given device_id

Parameters:

  • device_id (Integer)

    the integer id of a device

Returns:

  • (Clutter::InputDevice)

    a Clutter::InputDevice or nil. The returned device is owned by the Clutter::DeviceManager and should never be modified or freed

#list_devicesGLib::SList<Clutter::InputDevice>

Lists all currently registered input devices

Returns:

  • (GLib::SList<Clutter::InputDevice>)

    a newly allocated list of Clutter::InputDevice objects. Use g_slist_free() to deallocate it when done

#peek_devicesGLib::SList<Clutter::InputDevice>

Lists all currently registered input devices

Returns:

  • (GLib::SList<Clutter::InputDevice>)

    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