FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    AssetToolbox

    struct · ferroui-designer · v0.5.0

    struct AssetToolbox
    

    View source

    Members

    new

    fn new(assets: Vec<DesignerAsset>) -> Rc<Self>
    

    Source

    control

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

    Source

    view_mode

    fn view_mode(self: &Self) -> AssetViewMode
    

    Source

    set_view_mode

    fn set_view_mode(self: &Rc<Self>, mode: AssetViewMode)
    

    Switch presentation without changing the category, search or registered catalog.

    Source

    query

    fn query(self: &Self) -> String
    

    Source

    set_query

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

    Source

    visible_asset_ids

    fn visible_asset_ids(self: &Self) -> Vec<String>
    

    Source

    assets

    fn assets(self: &Self) -> Vec<DesignerAsset>
    

    Source

    on_activate

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

    Source

    on_begin_drag

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

    Source

    register

    fn register(self: &Rc<Self>, asset: DesignerAsset) -> Result<(), String>
    

    Source

    set_category

    fn set_category(self: &Self, category: Option<&str>) -> bool
    

    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.