AssetToolbox
struct · ferroui-designer · v0.5.0
struct AssetToolbox
Members
newcontrolview_modeset_view_modequeryset_queryvisible_asset_idsassetson_activateon_begin_dragregisterset_category
new
fn new(assets: Vec<DesignerAsset>) -> Rc<Self>
control
fn control(self: &Self) -> Ref<Control>
view_mode
fn view_mode(self: &Self) -> AssetViewMode
set_view_mode
fn set_view_mode(self: &Rc<Self>, mode: AssetViewMode)
Switch presentation without changing the category, search or registered catalog.
query
fn query(self: &Self) -> String
set_query
fn set_query(self: &Self, query: &str)
visible_asset_ids
fn visible_asset_ids(self: &Self) -> Vec<String>
assets
fn assets(self: &Self) -> Vec<DesignerAsset>
on_activate
fn on_activate(self: &Self, callback: impl Fn(&DesignerAsset) -> () + 'static)
on_begin_drag
fn on_begin_drag(self: &Self, callback: impl Fn(&DesignerAsset, &PointerPressedEventArgs) -> () + 'static)
register
fn register(self: &Rc<Self>, asset: DesignerAsset) -> Result<(), String>
set_category
fn set_category(self: &Self, category: Option<&str>) -> bool
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.