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:
@ -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
|
||||
|
Reference in New Issue
Block a user