FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ComponentLibrary

    struct · ferroui-designer · v0.5.0

    struct ComponentLibrary
    

    View source

    Members

    new

    fn new() -> Rc<Self>
    

    Source

    control

    fn control(self: &Self) -> Ref<Control>
    

    Source

    list

    fn list(self: &Self) -> Ref<ListBox>
    

    Source

    on_select

    fn on_select(self: &Self, callback: impl Fn(&ComponentLibraryItem) -> () + 'static)
    

    Source

    on_activate

    fn on_activate(self: &Self, callback: impl Fn(&ComponentLibraryItem) -> () + 'static)
    

    Source

    on_begin_drag

    fn on_begin_drag(self: &Self, callback: impl Fn(&ComponentLibraryItem, &PointerPressedEventArgs) -> () + 'static)
    

    Source

    on_create

    fn on_create(self: &Self, callback: impl Fn() -> () + 'static)
    

    Source

    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.

    Source

    set_query

    fn set_query(self: &Self, query: &str)
    

    Source

    set_filter

    fn set_filter(self: &Self, filter: ComponentLibraryFilter)
    

    Source

    visible_items

    fn visible_items(self: &Self) -> Vec<ComponentLibraryItem>
    

    Source

    selected_item

    fn selected_item(self: &Self) -> Option<ComponentLibraryItem>
    

    Source

    select

    fn select(self: &Self, id: &str) -> bool
    

    Source

    replace_items

    fn replace_items(self: &Self, items: Vec<ComponentLibraryItem>)
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Same

    Availability

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