FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Expander

    struct · ferroui-controls · v0.5.0

    struct Expander
    

    A control with a header that has a collapsible content section.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<Expander>
    

    Returns a strong reference to this object.

    Source

    on_collapsed

    fn on_collapsed(self: &Self, event_args: &RoutedEventArgs)
    

    Raises the Collapsed event.

    Source

    on_collapsing

    fn on_collapsing(self: &Self, event_args: &CancelRoutedEventArgs)
    

    Raises the Collapsing event.

    Source

    on_expanded

    fn on_expanded(self: &Self, event_args: &RoutedEventArgs)
    

    Raises the Expanded event.

    Source

    on_expanding

    fn on_expanding(self: &Self, event_args: &CancelRoutedEventArgs)
    

    Raises the Expanding event.

    Source

    on_coerce_is_expanded

    fn on_coerce_is_expanded(self: &Self, value: bool) -> bool
    

    Called when the IsExpanded property has to be coerced.

    Source

    PSEUDO_CLASSES

    const PSEUDO_CLASSES: PseudoClassesAttribute
    

    The pseudoclasses set by the class.

    Source

    content_transition_property

    fn content_transition_property() -> &'static StyledProperty<Option<Rc<dyn IPageTransition>>>
    

    Defines the ContentTransition property.

    Source

    expand_direction_property

    fn expand_direction_property() -> &'static StyledProperty<ExpandDirection>
    

    Defines the ExpandDirection property.

    Source

    is_expanded_property

    fn is_expanded_property() -> &'static StyledProperty<bool>
    

    Defines the IsExpanded property.

    Source

    collapsed_event

    fn collapsed_event() -> &'static RoutedEvent<RoutedEventArgs>
    

    Defines the Collapsed event.

    Source

    collapsing_event

    fn collapsing_event() -> &'static RoutedEvent<CancelRoutedEventArgs>
    

    Defines the Collapsing event.

    Source

    expanded_event

    fn expanded_event() -> &'static RoutedEvent<RoutedEventArgs>
    

    Defines the Expanded event.

    Source

    expanding_event

    fn expanding_event() -> &'static RoutedEvent<CancelRoutedEventArgs>
    

    Defines the Expanding event.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    content_transition

    fn content_transition(self: &Self) -> Option<Rc<dyn IPageTransition>>
    

    The transition used when expanding or collapsing the content.

    Source

    set_content_transition

    fn set_content_transition(self: &Self, value: Option<Rc<dyn IPageTransition>>)
    

    Source

    expand_direction

    fn expand_direction(self: &Self) -> ExpandDirection
    

    The direction in which the expander opens.

    Source

    set_expand_direction

    fn set_expand_direction(self: &Self, value: ExpandDirection)
    

    Source

    is_expanded

    fn is_expanded(self: &Self) -> bool
    

    Whether the content area of the expander is open and visible.

    Source

    set_is_expanded

    fn set_is_expanded(self: &Self, value: bool)
    

    Source

    collapsed

    fn collapsed(self: &Self, handler: impl Fn(&Interactive, &RoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Occurs after the content area has closed and only the header is visible.

    Source

    collapsing

    fn collapsing(self: &Self, handler: impl Fn(&Interactive, &CancelRoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Occurs as the content area is closing.

    The cancel property of the event args may be set to true to cancel the event and keep the control open (expanded).

    Source

    expanded

    fn expanded(self: &Self, handler: impl Fn(&Interactive, &RoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Occurs after the expander has opened to display both its header and content.

    Source

    expanding

    fn expanding(self: &Self, handler: impl Fn(&Interactive, &CancelRoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Occurs as the content area is opening.

    The cancel property of the event args may be set to true to cancel the event and keep the control closed (collapsed).

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.