FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ListBoxItem

    struct · ferroui-controls · v0.5.0

    struct ListBoxItem
    

    A selectable item in a ListBox.

    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<ListBoxItem>
    

    Returns a strong reference to this object.

    Source

    PSEUDO_CLASSES

    const PSEUDO_CLASSES: PseudoClassesAttribute
    

    The pseudoclasses set by the class.

    Source

    is_selected_property

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

    Defines the IsSelected property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    is_selected

    fn is_selected(self: &Self) -> bool
    

    Gets or sets the selection state of the item.

    Source

    set_is_selected

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

    Source

    update_selection_from_event

    fn update_selection_from_event(self: &Self, e: &dyn IRoutedEventArgs) -> bool
    

    Updates the selection of the owning selecting items control from an event raised on this container.

    Source

    Trait implementations

    Availability

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