guion 0.4.0

flexible GUI framework
Documentation
//! Aliases for deep/nested types inside Env
#![allow(type_alias_bounds)]
use super::*;

pub type ERenderer<E: Env> = <E::Backend as Backend<E>>::Renderer;
pub type EEvent<E: Env> = <E::Backend as Backend<E>>::Event;
pub type EEDest<E: Env> = <EEvent<E> as Event<E>>::Dest;
pub type EEKey<E: Env> = <EEvent<E> as Event<E>>::Key;
pub type EEFilter<E: Env> = <E::Backend as Backend<E>>::EventFilter;
pub type EStyle<E: Env> = <E::Backend as Backend<E>>::Style;
pub type ESize<E: Env> = <E::Backend as Backend<E>>::Size;

pub type ESSelector<E: Env> = <EStyle<E> as Style<E>>::Selector;
pub type ESGlyphs<E: Env> = <EStyle<E> as Style<E>>::Glyphs;
pub type ESGlyph<E: Env> = <ESGlyphs<E> as Glyphs<E>>::Glyph;
pub type ESFont<E: Env> = <EStyle<E> as Style<E>>::Font;
pub type ESColor<E: Env> = <EStyle<E> as Style<E>>::Color;
pub type ESCursor<E: Env> = <EStyle<E> as Style<E>>::Cursor;
pub type ECHandler<E: Env> = <E::Context as Context<E>>::Handler;
pub type ECQueue<E: Env> = <E::Context as Context<E>>::Queue;

pub type ECStdState<E: Env> = <E::Context as CtxStdState<E>>::T;
pub type EPressedKey<E: Env> = <ECStdState<E> as StdState<E>>::K;

pub type CtxRef<'a,E: Env> = (&'a E::Storage,&'a mut E::Context);
pub type CtxRefR<'a,E: Env> = (&'a E::Storage,&'a E::Context);
pub type CtxRefM<'a,E: Env> = (&'a mut E::Storage,&'a mut E::Context);

/// Reference to a [`Widget`](Widget) or [immediate widget](AsWidget)
pub type WidgetRef<'a,E: Env> = Box<(dyn Widget<E>+'a)>;
/// Reference to a [`Widget`](WidgetMut) or [immediate widget](AsWidgetMut)
pub type WidgetRefMut<'a,E: Env> = Box<(dyn WidgetMut<E>+'a)>;