Sets our main struct and passes it to the parent class.
Gets the previous or next child, or %NULL if it doesn't exist. This will be the same widget hdy_deck_navigate() will navigate to.
Returns whether the #HdyDeck allows swiping to the previous child.
Returns whether the #HdyDeck 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.
Get the main Gtk struct
Gets whether @self is homogeneous for the given orientation. See hdy_deck_set_homogeneous().
Returns whether the #HdyDeck is set up to interpolate between the sizes of children on page switch.
the main Gtk struct as a void*
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 the type of animation that will be used for transitions between children in @self.
Gets the visible child widget.
Gets the name of the currently visible child widget.
Switches to the previous or next child, similar to performing a swipe gesture to go in @direction.
Sets whether or not @self allows switching to the previous child via a swipe gesture.
Sets whether or not @self allows switching to the next child via a swipe gesture.
Sets the #HdyDeck to be homogeneous or not for the given orientation. If it is homogeneous, the #HdyDeck will request the same width or height for all its children depending on the orientation. If it isn't, the deck 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 #HdyDeck: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 children in @self will take.
Sets the type of animation that will be used for transitions between children in @self.
Makes @visible_child visible using a transition determined by HdyDeck:transition-type and HdyDeck: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.