[−][src]Trait guion::path::WidgetPath
A WidgetPath contains information to resolve to a specific Widget in a widget tree
Associated Types
Loading content...Required methods
fn attach(&mut self, sub: Self::SubPath)
fn attach_subpath(&mut self, sub: &Self)
fn id(&self) -> E::WidgetID
fn tip(&self) -> &Self::SubPath
fn parent(&self) -> Option<Self>
fn is_empty(&self) -> bool
fn slice<T>(&self, range: T) -> Self where
T: RangeBounds<usize>,
T: RangeBounds<usize>,
fn index<T>(&self, i: T) -> &Self::SubPath where
T: SliceIndex<[Self::SubPath], Output = Self::SubPath>,
T: SliceIndex<[Self::SubPath], Output = Self::SubPath>,
Provided methods
fn attached(self, sub: Self::SubPath) -> Self
fn attached_subpath(self, sub: &Self) -> Self
fn eq_path<F: Env + 'static>(&self, o: &F::WidgetPath) -> bool where
Self: 'static,
Self: 'static,
fn child_paths_of_slice<'a>(
&self,
c: CtxRefR<'a, E>
) -> Result<Vec<E::WidgetPath>, ()>
&self,
c: CtxRefR<'a, E>
) -> Result<Vec<E::WidgetPath>, ()>
Deprecated
fn render(&self, c: CtxRef<E>, r: &mut RenderLink<E>) -> Result<bool, ()>
fn event(&self, c: CtxRef<E>, e: (EEvent<E>, &Bounds, u64)) -> Result<(), ()>
fn size(&self, c: CtxRef<E>) -> Result<ESize<E>, ()>
fn with_env<F: Env<WidgetPath = E::WidgetPath>>(self) -> Self where
E::WidgetPath: WidgetPath<F>,
E::WidgetPath: WidgetPath<F>,
Implementors
impl<E, S> WidgetPath<E> for SimplePath<E, S> where
E: Env,
S: SubPath<E> + From<E::WidgetID> + Into<E::WidgetID> + Send + Sync + 'static,
Self: From<E::WidgetPath> + Into<E::WidgetPath>,
[src]
E: Env,
S: SubPath<E> + From<E::WidgetID> + Into<E::WidgetID> + Send + Sync + 'static,
Self: From<E::WidgetPath> + Into<E::WidgetPath>,
type SubPath = S
fn attach(&mut self, sub: S)
[src]
fn attached(self, sub: S) -> Self
[src]
fn attach_subpath(&mut self, sub: &Self)
[src]
fn id(&self) -> E::WidgetID
[src]
fn tip(&self) -> &S
[src]
fn parent(&self) -> Option<Self>
[src]
fn is_empty(&self) -> bool
[src]
fn slice<T>(&self, range: T) -> Self where
T: RangeBounds<usize>,
[src]
T: RangeBounds<usize>,
fn index<T>(&self, i: T) -> &S where
T: SliceIndex<[S], Output = S>,
[src]
T: SliceIndex<[S], Output = S>,