pub struct EditorShellProps {
pub toolbar: ViewFn,
pub left: ViewFn,
pub right: ViewFn,
pub bottom: ViewFn,
pub status: ViewFn,
pub left_open: Option<RwSignal<bool>>,
pub right_open: Option<RwSignal<bool>>,
pub bottom_open: Option<RwSignal<bool>>,
pub left_size: Option<RwSignal<f64>>,
pub right_size: Option<RwSignal<f64>>,
pub bottom_size: Option<RwSignal<f64>>,
pub children: Children,
}Expand description
Props for the EditorShell component.
A code-editor layout with a top toolbar, collapsible and resizable left,
right, and bottom slots around the central children, and a status footer.
Each *_open signal toggles a slot’s visibility; providing a matching
*_size signal makes that slot resizable (and drives its pixel size) via an
inserted ResizeHandle.
§Required Props
- children:
Children
§Optional Props
- toolbar:
impl Into<ViewFn> - left:
impl Into<ViewFn> - right:
impl Into<ViewFn> - bottom:
impl Into<ViewFn> - status:
impl Into<ViewFn> - left_open:
RwSignal<bool> - right_open:
RwSignal<bool> - bottom_open:
RwSignal<bool> - left_size:
RwSignal<f64> - right_size:
RwSignal<f64> - bottom_size:
RwSignal<f64>
Fields§
§toolbar: ViewFn§left: ViewFn§right: ViewFn§bottom: ViewFn§status: ViewFn§left_open: Option<RwSignal<bool>>§right_open: Option<RwSignal<bool>>§bottom_open: Option<RwSignal<bool>>§left_size: Option<RwSignal<f64>>§right_size: Option<RwSignal<f64>>§bottom_size: Option<RwSignal<f64>>§children: ChildrenImplementations§
Source§impl EditorShellProps
impl EditorShellProps
Sourcepub fn builder() -> EditorShellPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> EditorShellPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building EditorShellProps.
On the builder, call .toolbar(...)(optional), .left(...)(optional), .right(...)(optional), .bottom(...)(optional), .status(...)(optional), .left_open(...)(optional), .right_open(...)(optional), .bottom_open(...)(optional), .left_size(...)(optional), .right_size(...)(optional), .bottom_size(...)(optional), .children(...) to set the values of the fields.
Finally, call .build() to create the instance of EditorShellProps.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for EditorShellProps
impl !Sync for EditorShellProps
impl !UnwindSafe for EditorShellProps
impl Freeze for EditorShellProps
impl Send for EditorShellProps
impl Unpin for EditorShellProps
impl UnsafeUnpin for EditorShellProps
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>
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>
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)
&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)
&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> 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>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn 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>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which 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)
&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)
&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> DowncastSend for T
impl<T> DowncastSend for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
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>
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>
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> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.