mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
clutter/stage: Add nullable annotation to get_*_actor methods
Allows to know when a NULL ClutterActor is possibly being returned. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2559>
This commit is contained in:
parent
5356bc865f
commit
8fcee7a8a5
@ -3296,7 +3296,7 @@ clutter_stage_remove_device_entry (ClutterStage *self,
|
||||
* Retrieves the [class@Clutter.Actor] underneath the pointer or touch point
|
||||
* of @device and @sequence.
|
||||
*
|
||||
* Return value: (transfer none): a pointer to the #ClutterActor or %NULL
|
||||
* Returns: (transfer none) (nullable): a pointer to the #ClutterActor or %NULL
|
||||
*/
|
||||
ClutterActor *
|
||||
clutter_stage_get_device_actor (ClutterStage *stage,
|
||||
@ -3905,7 +3905,7 @@ clutter_grab_get_seat_state (ClutterGrab *grab)
|
||||
*
|
||||
* Gets the actor that currently holds a grab.
|
||||
*
|
||||
* Returns: (transfer none): The grabbing actor
|
||||
* Returns: (transfer none) (nullable): The grabbing actor
|
||||
**/
|
||||
ClutterActor *
|
||||
clutter_stage_get_grab_actor (ClutterStage *stage)
|
||||
@ -3933,7 +3933,7 @@ clutter_stage_get_grab_actor (ClutterStage *stage)
|
||||
* and may differ from the actor that the stage originally
|
||||
* delivered the event to.
|
||||
*
|
||||
* Return value: (transfer none): a pointer to the #ClutterActor or %NULL
|
||||
* Returns: (transfer none) (nullable): a pointer to the #ClutterActor or %NULL
|
||||
**/
|
||||
ClutterActor *
|
||||
clutter_stage_get_event_actor (ClutterStage *stage,
|
||||
|
@ -168,10 +168,6 @@ void clutter_stage_set_minimum_size (ClutterStage
|
||||
guint width,
|
||||
guint height);
|
||||
CLUTTER_EXPORT
|
||||
void clutter_stage_get_minimum_size (ClutterStage *stage,
|
||||
guint *width,
|
||||
guint *height);
|
||||
CLUTTER_EXPORT
|
||||
void clutter_stage_set_key_focus (ClutterStage *stage,
|
||||
ClutterActor *actor);
|
||||
CLUTTER_EXPORT
|
||||
|
Loading…
Reference in New Issue
Block a user