ListBoxItem
struct · ferroui-controls · v0.5.0
struct ListBoxItem
A selectable item in a ListBox.
Members
TYPEto_refPSEUDO_CLASSESis_selected_propertyconstructnewis_selectedset_is_selectedupdate_selection_from_event
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ListBoxItem>
Returns a strong reference to this object.
PSEUDO_CLASSES
const PSEUDO_CLASSES: PseudoClassesAttribute
The pseudoclasses set by the class.
is_selected_property
fn is_selected_property() -> &'static StyledProperty<bool>
Defines the IsSelected property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
is_selected
fn is_selected(self: &Self) -> bool
Gets or sets the selection state of the item.
set_is_selected
fn set_is_selected(self: &Self, value: bool)
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTemplatedControlImplExtContentControlImplExtControlImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<ListBoxItem>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplVisualImplLayoutableImplInteractiveImplTemplatedControlImplContentControlImplFerroObjectImplInputElementImplControlImplISelectable
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.