SwipeableT.getSwipeArea

Gets the area @self can start a swipe from for the given direction and gesture type. This can be used to restrict swipes to only be possible from a certain area, for example, to only allow edge swipes, or to have a draggable element and ignore swipes elsewhere.

Swipe area is only considered for direct swipes (as in, not initiated by #HdySwipeGroup).

If not implemented, the default implementation returns the allocation of @self, allowing swipes from anywhere.

template SwipeableT(TStruct)
void
getSwipeArea

Parameters

navigationDirection HdyNavigationDirection

the direction of the swipe

isDrag bool

whether the swipe is caused by a dragging gesture

rect GdkRectangle

a pointer to a #GdkRectangle to store the swipe area

Meta

Since

1.0