pub struct FolderFloatConfig {Show 21 fields
pub width: f32,
pub height: f32,
pub radius: f32,
pub spread: f32,
pub lift: f32,
pub tilt: f32,
pub flap_angle: f32,
pub rest_angle: f32,
pub open_duration: f32,
pub stagger: f32,
pub bounce: f32,
pub physics: bool,
pub drift: f32,
pub trigger: FolderFloatTrigger,
pub close_on_select: bool,
pub folder_color: Option<Hsla>,
pub front_color: Option<Hsla>,
pub paper_color: Option<Hsla>,
pub item_color: Option<Hsla>,
pub item_text_color: Option<Hsla>,
pub label_color: Option<Hsla>,
}Expand description
几何与时序采用参考组件默认值;颜色默认跟随 Arc 主题,也可逐项覆盖。 时间单位统一为秒,而不是上游的毫秒。
Fields§
§width: f32§height: f32§radius: f32§spread: f32§lift: f32§tilt: f32§flap_angle: f32§rest_angle: f32§open_duration: f32§stagger: f32§bounce: f32§physics: bool§drift: f32§trigger: FolderFloatTrigger§close_on_select: bool§folder_color: Option<Hsla>§front_color: Option<Hsla>§paper_color: Option<Hsla>§item_color: Option<Hsla>§item_text_color: Option<Hsla>§label_color: Option<Hsla>Trait Implementations§
Source§impl Clone for FolderFloatConfig
impl Clone for FolderFloatConfig
Source§impl Debug for FolderFloatConfig
impl Debug for FolderFloatConfig
Source§impl Default for FolderFloatConfig
impl Default for FolderFloatConfig
Source§impl PartialEq for FolderFloatConfig
impl PartialEq for FolderFloatConfig
impl StructuralPartialEq for FolderFloatConfig
Auto Trait Implementations§
impl Forget for FolderFloatConfig
impl Freeze for FolderFloatConfig
impl Move for FolderFloatConfig
impl RefUnwindSafe for FolderFloatConfig
impl Send for FolderFloatConfig
impl Sync for FolderFloatConfig
impl Unpin for FolderFloatConfig
impl UnsafeUnpin for FolderFloatConfig
impl UnwindSafe for FolderFloatConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
Source§type NoneType = T
type NoneType = T
The type of the none-equivalent value that
NoneValue::null_value produces.Source§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.
Source§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().