cluttermm: Clutter::DeviceManager Class Reference
Public Member Functions | |
virtual | ~DeviceManager () |
ClutterDeviceManager* | gobj () |
Provides access to the underlying C GObject. More... | |
const ClutterDeviceManager* | gobj () const |
Provides access to the underlying C GObject. More... | |
ClutterDeviceManager* | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More... | |
std::vector< Glib::RefPtr < InputDevice > > | list_devices () |
Lists all currently registered input devices. More... | |
std::vector< Glib::RefPtr < const InputDevice > > | list_devices () const |
Lists all currently registered input devices. More... | |
Glib::RefPtr< InputDevice > | get_device (int device_id) |
Retrieves the Clutter::InputDevice with the given device_id. More... | |
Glib::RefPtr< const InputDevice > | get_device (int device_id) const |
Retrieves the Clutter::InputDevice with the given device_id. More... | |
Glib::RefPtr< InputDevice > | get_core_device (InputDeviceType device_type) |
Retrieves the core Clutter::InputDevice of type device_type. More... | |
Glib::RefPtr< const InputDevice > | get_core_device (InputDeviceType device_type) const |
Retrieves the core Clutter::InputDevice of type device_type. More... | |
Glib::PropertyProxy_ReadOnly < Glib::RefPtr< Backend > > | property_backend () const |
The ClutterBackend of the device manager. More... | |
Static Public Member Functions | |
static GType | get_type () |
Get the GType for this class, for use with the underlying GObject type system. More... | |
static Glib::RefPtr < DeviceManager > | get_default () |
Retrieves the device manager singleton. More... | |
Protected Member Functions | |
DeviceManager () | |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr < Clutter::DeviceManager > | wrap (ClutterDeviceManager* object, bool take_copy=false) |
A Glib::wrap() method for this object. More... | |
Constructor & Destructor Documentation
|
virtual |
|
protected |
Member Function Documentation
Glib::RefPtr<InputDevice> Clutter::DeviceManager::get_core_device | ( | InputDeviceType | device_type) |
Retrieves the core Clutter::InputDevice of type device_type.
Core devices are devices created automatically by the default Clutter backend
- Parameters
-
device_type The type of the core device.
- Returns
- A Clutter::InputDevice or
0
. The returned device is owned by the Clutter::DeviceManager and should not be modified or freed.
Glib::RefPtr<const InputDevice> Clutter::DeviceManager::get_core_device | ( | InputDeviceType | device_type) | const |
Retrieves the core Clutter::InputDevice of type device_type.
Core devices are devices created automatically by the default Clutter backend
- Parameters
-
device_type The type of the core device.
- Returns
- A Clutter::InputDevice or
0
. The returned device is owned by the Clutter::DeviceManager and should not be modified or freed.
|
static |
Retrieves the device manager singleton.
- Returns
- The Clutter::DeviceManager singleton. The returned instance is owned by Clutter and it should not be modified or freed.
Glib::RefPtr<InputDevice> Clutter::DeviceManager::get_device | ( | int | device_id) |
Retrieves the Clutter::InputDevice with the given device_id.
- Parameters
-
device_id The integer id of a device.
- Returns
- A Clutter::InputDevice or
0
. The returned device is owned by the Clutter::DeviceManager and should never be modified or freed.
Glib::RefPtr<const InputDevice> Clutter::DeviceManager::get_device | ( | int | device_id) | const |
Retrieves the Clutter::InputDevice with the given device_id.
- Parameters
-
device_id The integer id of a device.
- Returns
- A Clutter::InputDevice or
0
. The returned device is owned by the Clutter::DeviceManager and should never be modified or freed.
|
static |
Get the GType for this class, for use with the underlying GObject type system.
|
inline |
Provides access to the underlying C GObject.
|
inline |
Provides access to the underlying C GObject.
ClutterDeviceManager* Clutter::DeviceManager::gobj_copy | ( | ) |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
std::vector< Glib::RefPtr<InputDevice> > Clutter::DeviceManager::list_devices | ( | ) |
Lists all currently registered input devices.
- Returns
- A newly allocated list of Clutter::InputDevice objects. Use Glib::slist_free() to deallocate it when done.
std::vector< Glib::RefPtr<const InputDevice> > Clutter::DeviceManager::list_devices | ( | ) | const |
Lists all currently registered input 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.
Glib::PropertyProxy_ReadOnly< Glib::RefPtr<Backend> > Clutter::DeviceManager::property_backend | ( | ) | const |
The ClutterBackend of the device manager.
You rarely need to use properties because there are get_ and set_ methods for almost all of them.
- Returns
- A PropertyProxy_ReadOnly that allows you to get the value of the property, or receive notification when the value of the property changes.
Friends And Related Function Documentation
|
related |
A Glib::wrap() method for this object.
- Parameters
-
object The C instance. take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
- Returns
- A C++ instance that wraps this C instance.
The documentation for this class was generated from the following file:
- cluttermm/device-manager.h