pub trait DeckExt: IsA<Deck> + Sealed + 'static {
Show 39 methods
// Provided methods
fn adjacent_child(&self, direction: NavigationDirection) -> Option<Widget> { ... }
fn can_swipe_back(&self) -> bool { ... }
fn can_swipe_forward(&self) -> bool { ... }
fn child_by_name(&self, name: &str) -> Option<Widget> { ... }
fn is_homogeneous(&self, orientation: Orientation) -> bool { ... }
fn is_interpolate_size(&self) -> bool { ... }
fn transition_duration(&self) -> u32 { ... }
fn is_transition_running(&self) -> bool { ... }
fn transition_type(&self) -> DeckTransitionType { ... }
fn visible_child(&self) -> Option<Widget> { ... }
fn visible_child_name(&self) -> Option<GString> { ... }
fn insert_child_after(
&self,
child: &impl IsA<Widget>,
sibling: Option<&impl IsA<Widget>>
) { ... }
fn navigate(&self, direction: NavigationDirection) -> bool { ... }
fn prepend(&self, child: &impl IsA<Widget>) { ... }
fn reorder_child_after(
&self,
child: &impl IsA<Widget>,
sibling: Option<&impl IsA<Widget>>
) { ... }
fn set_can_swipe_back(&self, can_swipe_back: bool) { ... }
fn set_can_swipe_forward(&self, can_swipe_forward: bool) { ... }
fn set_homogeneous(&self, orientation: Orientation, homogeneous: bool) { ... }
fn set_interpolate_size(&self, interpolate_size: bool) { ... }
fn set_transition_duration(&self, duration: u32) { ... }
fn set_transition_type(&self, transition: DeckTransitionType) { ... }
fn set_visible_child(&self, visible_child: &impl IsA<Widget>) { ... }
fn set_visible_child_name(&self, name: &str) { ... }
fn is_hhomogeneous(&self) -> bool { ... }
fn set_hhomogeneous(&self, hhomogeneous: bool) { ... }
fn is_vhomogeneous(&self) -> bool { ... }
fn set_vhomogeneous(&self, vhomogeneous: bool) { ... }
fn child_name<T: IsA<Widget>>(&self, item: &T) -> Option<GString> { ... }
fn set_child_name<T: IsA<Widget>>(&self, item: &T, name: Option<&str>) { ... }
fn connect_can_swipe_back_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_can_swipe_forward_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_hhomogeneous_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_interpolate_size_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_transition_duration_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_transition_running_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_transition_type_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_vhomogeneous_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_visible_child_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_visible_child_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
}
Expand description
Provided Methods§
sourcefn adjacent_child(&self, direction: NavigationDirection) -> Option<Widget>
fn adjacent_child(&self, direction: NavigationDirection) -> Option<Widget>
Finds the previous or next navigatable child.
Gets the previous or next child. This will be the same widget
navigate()
will navigate to.
If there’s no child to navigate to, NULL
will be returned instead.
direction
the direction
Returns
the previous or next child
sourcefn can_swipe_back(&self) -> bool
fn can_swipe_back(&self) -> bool
Gets whether swipe gestures for navigating backward are enabled.
Returns
Whether swipe gestures are enabled.
sourcefn can_swipe_forward(&self) -> bool
fn can_swipe_forward(&self) -> bool
Gets whether swipe gestures for navigating forward enabled.
Returns
Whether swipe gestures are enabled.
sourcefn child_by_name(&self, name: &str) -> Option<Widget>
fn child_by_name(&self, name: &str) -> Option<Widget>
sourcefn is_homogeneous(&self, orientation: Orientation) -> bool
fn is_homogeneous(&self, orientation: Orientation) -> bool
Gets whether @self is homogeneous for the given orientation.
orientation
the orientation
Returns
whether @self is homogeneous for the given orientation
sourcefn is_interpolate_size(&self) -> bool
fn is_interpolate_size(&self) -> bool
Gets whether @self will interpolate its size when changing the visible child.
Returns
whether child sizes are interpolated
sourcefn transition_duration(&self) -> u32
fn transition_duration(&self) -> u32
Gets the mode transition animation duration for @self.
Returns
the mode transition duration, in milliseconds.
sourcefn is_transition_running(&self) -> bool
fn is_transition_running(&self) -> bool
Gets whether a transition is currently running for @self.
Returns
whether a transition is currently running
sourcefn transition_type(&self) -> DeckTransitionType
fn transition_type(&self) -> DeckTransitionType
Gets the type of animation used for transitions between children.
Returns
the current transition type of @self
sourcefn visible_child(&self) -> Option<Widget>
fn visible_child(&self) -> Option<Widget>
sourcefn visible_child_name(&self) -> Option<GString>
fn visible_child_name(&self) -> Option<GString>
sourcefn insert_child_after(
&self,
child: &impl IsA<Widget>,
sibling: Option<&impl IsA<Widget>>
)
fn insert_child_after( &self, child: &impl IsA<Widget>, sibling: Option<&impl IsA<Widget>> )
v1_2
only.sourcefn reorder_child_after(
&self,
child: &impl IsA<Widget>,
sibling: Option<&impl IsA<Widget>>
)
fn reorder_child_after( &self, child: &impl IsA<Widget>, sibling: Option<&impl IsA<Widget>> )
v1_2
only.sourcefn set_can_swipe_back(&self, can_swipe_back: bool)
fn set_can_swipe_back(&self, can_swipe_back: bool)
sourcefn set_can_swipe_forward(&self, can_swipe_forward: bool)
fn set_can_swipe_forward(&self, can_swipe_forward: bool)
sourcefn set_homogeneous(&self, orientation: Orientation, homogeneous: bool)
fn set_homogeneous(&self, orientation: Orientation, homogeneous: bool)
Sets whether @self is homogeneous for a given orientation.
If set to FALSE
, different children can have different size along the
opposite orientation.
orientation
the orientation
homogeneous
TRUE
to make @self homogeneous
sourcefn set_interpolate_size(&self, interpolate_size: bool)
fn set_interpolate_size(&self, interpolate_size: bool)
Sets whether @self will interpolate its size when changing the visible child.
@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.
interpolate_size
the new value
sourcefn set_transition_duration(&self, duration: u32)
fn set_transition_duration(&self, duration: u32)
sourcefn set_transition_type(&self, transition: DeckTransitionType)
fn set_transition_type(&self, transition: DeckTransitionType)
Sets the type of animation used for transitions between children.
The transition type can be changed without problems at runtime, so it is possible to change the animation based on the child that is about to become current.
transition
the new transition type
sourcefn set_visible_child(&self, visible_child: &impl IsA<Widget>)
fn set_visible_child(&self, visible_child: &impl IsA<Widget>)
sourcefn set_visible_child_name(&self, name: &str)
fn set_visible_child_name(&self, name: &str)
Makes the child with the name @name visible.
See set_visible_child()
for more details.
name
the name of a child
sourcefn is_hhomogeneous(&self) -> bool
fn is_hhomogeneous(&self) -> bool
Horizontally homogeneous sizing.
sourcefn set_hhomogeneous(&self, hhomogeneous: bool)
fn set_hhomogeneous(&self, hhomogeneous: bool)
Horizontally homogeneous sizing.
sourcefn is_vhomogeneous(&self) -> bool
fn is_vhomogeneous(&self) -> bool
Vertically homogeneous sizing.
sourcefn set_vhomogeneous(&self, vhomogeneous: bool)
fn set_vhomogeneous(&self, vhomogeneous: bool)
Vertically homogeneous sizing.