input: adds internal _clutter_input_device_get_stage api

This adds internal api to be able to query the stage currently
associated with a given input device so input backends shouldn't need to
refer to the default stage.

Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
This commit is contained in:
Robert Bragg 2011-12-05 13:49:28 +00:00
parent e5bde0b074
commit 86f2aed570
2 changed files with 15 additions and 0 deletions

View File

@ -136,6 +136,7 @@ void _clutter_input_device_set_time (ClutterInputDev
guint32 time_);
void _clutter_input_device_set_stage (ClutterInputDevice *device,
ClutterStage *stage);
ClutterStage * _clutter_input_device_get_stage (ClutterInputDevice *device);
void _clutter_input_device_set_actor (ClutterInputDevice *device,
ClutterActor *actor,
gboolean emit_crossing);

View File

@ -458,6 +458,20 @@ _clutter_input_device_set_stage (ClutterInputDevice *device,
*/
}
/*< private >
* clutter_input_device_get_stage:
* @device: a #ClutterInputDevice
*
* Retrieves the stage currently associated with @device.
*
* Return value: The stage currently associated with @device.
*/
ClutterStage *
_clutter_input_device_get_stage (ClutterInputDevice *device)
{
return device->stage;
}
/*< private >
* clutter_input_device_set_actor:
* @device: a #ClutterInputDevice