Expander
struct · ferroui-controls · v0.5.0
struct Expander
A control with a header that has a collapsible content section.
Members
TYPEto_refon_collapsedon_collapsingon_expandedon_expandingon_coerce_is_expandedPSEUDO_CLASSEScontent_transition_propertyexpand_direction_propertyis_expanded_propertycollapsed_eventcollapsing_eventexpanded_eventexpanding_eventconstructnewcontent_transitionset_content_transitionexpand_directionset_expand_directionis_expandedset_is_expandedcollapsedcollapsingexpandedexpanding
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<Expander>
Returns a strong reference to this object.
on_collapsed
fn on_collapsed(self: &Self, event_args: &RoutedEventArgs)
Raises the Collapsed event.
on_collapsing
fn on_collapsing(self: &Self, event_args: &CancelRoutedEventArgs)
Raises the Collapsing event.
on_expanded
fn on_expanded(self: &Self, event_args: &RoutedEventArgs)
Raises the Expanded event.
on_expanding
fn on_expanding(self: &Self, event_args: &CancelRoutedEventArgs)
Raises the Expanding event.
on_coerce_is_expanded
fn on_coerce_is_expanded(self: &Self, value: bool) -> bool
Called when the IsExpanded property has to be coerced.
PSEUDO_CLASSES
const PSEUDO_CLASSES: PseudoClassesAttribute
The pseudoclasses set by the class.
content_transition_property
fn content_transition_property() -> &'static StyledProperty<Option<Rc<dyn IPageTransition>>>
Defines the ContentTransition property.
expand_direction_property
fn expand_direction_property() -> &'static StyledProperty<ExpandDirection>
Defines the ExpandDirection property.
is_expanded_property
fn is_expanded_property() -> &'static StyledProperty<bool>
Defines the IsExpanded property.
collapsed_event
fn collapsed_event() -> &'static RoutedEvent<RoutedEventArgs>
Defines the Collapsed event.
collapsing_event
fn collapsing_event() -> &'static RoutedEvent<CancelRoutedEventArgs>
Defines the Collapsing event.
expanded_event
fn expanded_event() -> &'static RoutedEvent<RoutedEventArgs>
Defines the Expanded event.
expanding_event
fn expanding_event() -> &'static RoutedEvent<CancelRoutedEventArgs>
Defines the Expanding event.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
content_transition
fn content_transition(self: &Self) -> Option<Rc<dyn IPageTransition>>
The transition used when expanding or collapsing the content.
set_content_transition
fn set_content_transition(self: &Self, value: Option<Rc<dyn IPageTransition>>)
expand_direction
fn expand_direction(self: &Self) -> ExpandDirection
The direction in which the expander opens.
set_expand_direction
fn set_expand_direction(self: &Self, value: ExpandDirection)
is_expanded
fn is_expanded(self: &Self) -> bool
Whether the content area of the expander is open and visible.
set_is_expanded
fn set_is_expanded(self: &Self, value: bool)
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.
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).
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.
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).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTemplatedControlImplExtContentControlImplExtControlImplExtExpanderImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<Expander>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplVisualImplLayoutableImplInteractiveImplInputElementImplTemplatedControlImplContentControlImplControlImplFerroObjectImplExpanderImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.