Method

Adw.Leaflet.get_adjacent_child

Declaration [src]

GtkWidget*
adw_leaflet_get_adjacent_child (
  AdwLeaflet* self,
  AdwNavigationDirection direction
)

Description [src]

Finds the previous or next navigatable child.

This will be the same child adw_leaflet_navigate() or swipe gestures will navigate to.

If there’s no child to navigate to, NULL will be returned instead.

See AdwLeafletPage:navigatable.

Parameters

direction AdwNavigationDirection
 

the direction

Return value

Returns: GtkWidget*

the previous or next child

Ownership is not transferred to the caller
Can be NULL