ComponentLibrary
struct · ferroui-designer · v0.5.0
struct ComponentLibrary
Members
newcontrolliston_selecton_activateon_begin_dragon_createcancel_pending_dragset_queryset_filtervisible_itemsselected_itemselectreplace_items
new
fn new() -> Rc<Self>
control
fn control(self: &Self) -> Ref<Control>
list
fn list(self: &Self) -> Ref<ListBox>
on_select
fn on_select(self: &Self, callback: impl Fn(&ComponentLibraryItem) -> () + 'static)
on_activate
fn on_activate(self: &Self, callback: impl Fn(&ComponentLibraryItem) -> () + 'static)
on_begin_drag
fn on_begin_drag(self: &Self, callback: impl Fn(&ComponentLibraryItem, &PointerPressedEventArgs) -> () + 'static)
on_create
fn on_create(self: &Self, callback: impl Fn() -> () + 'static)
cancel_pending_drag
fn cancel_pending_drag(self: &Self)
Retire an in-progress pointer gesture when the host changes document, revision, scope or editing permissions without replacing the catalog.
set_query
fn set_query(self: &Self, query: &str)
set_filter
fn set_filter(self: &Self, filter: ComponentLibraryFilter)
visible_items
fn visible_items(self: &Self) -> Vec<ComponentLibraryItem>
selected_item
fn selected_item(self: &Self) -> Option<ComponentLibraryItem>
select
fn select(self: &Self, id: &str) -> bool
replace_items
fn replace_items(self: &Self, items: Vec<ComponentLibraryItem>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherSame
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.