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:
parent
e5bde0b074
commit
86f2aed570
@ -136,6 +136,7 @@ void _clutter_input_device_set_time (ClutterInputDev
|
|||||||
guint32 time_);
|
guint32 time_);
|
||||||
void _clutter_input_device_set_stage (ClutterInputDevice *device,
|
void _clutter_input_device_set_stage (ClutterInputDevice *device,
|
||||||
ClutterStage *stage);
|
ClutterStage *stage);
|
||||||
|
ClutterStage * _clutter_input_device_get_stage (ClutterInputDevice *device);
|
||||||
void _clutter_input_device_set_actor (ClutterInputDevice *device,
|
void _clutter_input_device_set_actor (ClutterInputDevice *device,
|
||||||
ClutterActor *actor,
|
ClutterActor *actor,
|
||||||
gboolean emit_crossing);
|
gboolean emit_crossing);
|
||||||
|
@ -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 >
|
/*< private >
|
||||||
* clutter_input_device_set_actor:
|
* clutter_input_device_set_actor:
|
||||||
* @device: a #ClutterInputDevice
|
* @device: a #ClutterInputDevice
|
||||||
|
Loading…
x
Reference in New Issue
Block a user