Sets our main struct and passes it to the parent class.
Gets the previous or next child that doesn't have 'navigatable' child property set to %FALSE, or %NULL if it doesn't exist. This will be the same widget hdy_leaflet_navigate() will navigate to.
Returns whether the #HdyLeaflet allows swiping to the previous child.
Returns whether the #HdyLeaflet allows swiping to the next child.
Finds the child of @self with the name given as the argument. Returns %NULL if there is no child with this name.
Returns the amount of time (in milliseconds) that transitions between children in @self will take.
Returns whether @self is currently in a transition from one page to another.
Gets whether @self is folded.
Gets whether @self is homogeneous for the given fold and orientation. See hdy_leaflet_set_homogeneous().
Returns whether the #HdyLeaflet is set up to interpolate between the sizes of children on page switch.
Get the main Gtk struct
Returns the amount of time (in milliseconds) that transitions between modes in @self will take.
the main Gtk struct as a void*
Gets the type of animation that will be used for transitions between modes and children in @self.
Gets the visible child widget.
Gets the name of the currently visible child widget.
Switches to the previous or next child that doesn't have 'navigatable' child property set to %FALSE, similar to performing a swipe gesture to go in @direction.
Sets whether or not @self allows switching to the previous child that has 'navigatable' child property set to %TRUE via a swipe gesture
Sets whether or not @self allows switching to the next child that has 'navigatable' child property set to %TRUE via a swipe gesture.
Sets the duration that transitions between children in @self will take.
Sets the #HdyLeaflet to be homogeneous or not for the given fold and orientation. If it is homogeneous, the #HdyLeaflet will request the same width or height for all its children depending on the orientation. If it isn't and it is folded, the leaflet may change width or height when a different child becomes visible.
Sets whether or not @self will interpolate its size when changing the visible child. If the #HdyLeaflet:interpolate-size property is set to %TRUE, @self will interpolate its size between the current one and the one it'll take after changing the visible child, according to the set transition duration.
Sets the duration that transitions between modes in @self will take.
Sets the type of animation that will be used for transitions between modes and children in @self.
Makes @visible_child visible using a transition determined by HdyLeaflet:transition-type and HdyLeaflet:child-transition-duration. The transition can be cancelled by the user, in which case visible child will change back to the previously visible child.
Makes the child with the name @name visible.
the main Gtk struct
Get the main Gtk struct
the main Gtk struct as a void*
Emits HdySwipeable::child-switched signal. This should be called when the widget switches visible child widget.
Gets the progress @self will snap back to after the gesture is canceled.
Gets the swipe distance of @self. This corresponds to how many pixels 1 unit represents.
Gets the current progress of @self
Gets the snap points of @self. Each snap point represents a progress value that is considered acceptable to end the swipe on.
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.
Gets the #HdySwipeTracker used by this swipeable widget.
See HdySwipeable::child-switched.
This signal should be emitted when the widget's visible child is changed.