ListBox
struct · ferroui-controls · v0.5.0
struct ListBox
An ItemsControl in which individual items can be selected.
Members
TYPEto_refTEMPLATE_PARTSscroll_propertyselected_items_propertyselection_propertyselection_mode_propertyconstructnewscrollselect_allunselect_all
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ListBox>
Returns a strong reference to this object.
TEMPLATE_PARTS
const TEMPLATE_PARTS: &'static [TemplatePartAttribute]
The named parts expected in the control template: the scrollable that scrolls the items.
scroll_property
fn scroll_property() -> &'static DirectProperty<ListBox, Option<Ref<InputElement>>>
Defines the Scroll property.
selected_items_property
fn selected_items_property() -> &'static DirectProperty<SelectingItemsControl, Option<SelectedItemsList>>
Defines the SelectedItems property.
selection_property
fn selection_property() -> &'static DirectProperty<SelectingItemsControl, Option<Rc<dyn ISelectionModel>>>
Defines the Selection property.
selection_mode_property
fn selection_mode_property() -> &'static StyledProperty<SelectionMode>
Defines the SelectionMode property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
scroll
fn scroll(self: &Self) -> Option<Ref<InputElement>>
Gets the scroll information for the ListBox: the element of the
template that implements the scrollable contract (see
InputElement::as_scrollable).
select_all
fn select_all(self: &Self)
Selects all items in the ListBox.
unselect_all
fn unselect_all(self: &Self)
Deselects all items in the ListBox.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTemplatedControlImplExtSelectingItemsControlImplExtControlImplExtItemsControlImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<ListBox>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplVisualImplLayoutableImplInteractiveImplSelectingItemsControlImplFerroObjectImplInputElementImplTemplatedControlImplItemsControlImplControlImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.