Struct glyph_ui::view::on_event::View [−][src]
The view itself
Implementations
impl<V, F> View<V, F>
[src]
pub fn new<A, B, C>(view: V, f: F) -> Self where
F: Fn(&Event<A>, B) -> Box<dyn Iterator<Item = C>>,
[src]
F: Fn(&Event<A>, B) -> Box<dyn Iterator<Item = C>>,
Trait Implementations
impl<T, V, F, M> View<T, M> for View<V, F> where
F: Fn(&Event<T>, bool) -> Box<dyn Iterator<Item = M>>,
V: ViewTrait<T, M>,
[src]
F: Fn(&Event<T>, bool) -> Box<dyn Iterator<Item = M>>,
V: ViewTrait<T, M>,
fn draw(&self, printer: &Printer<'_>, focused: bool)
[src]
fn width(&self) -> Size2D<u16, Cell>
[src]
fn height(&self) -> Size2D<u16, Cell>
[src]
fn layout(&self, constraint: Size2D<u16, Cell>) -> Size2D<u16, Cell>
[src]
fn event(
&mut self,
event: &Event<T>,
focused: bool
) -> Box<dyn Iterator<Item = M>>
[src]
&mut self,
event: &Event<T>,
focused: bool
) -> Box<dyn Iterator<Item = M>>
fn interactive(&self) -> bool
[src]
Auto Trait Implementations
impl<V, F> RefUnwindSafe for View<V, F> where
F: RefUnwindSafe,
V: RefUnwindSafe,
[src]
F: RefUnwindSafe,
V: RefUnwindSafe,
impl<V, F> Send for View<V, F> where
F: Send,
V: Send,
[src]
F: Send,
V: Send,
impl<V, F> Sync for View<V, F> where
F: Sync,
V: Sync,
[src]
F: Sync,
V: Sync,
impl<V, F> Unpin for View<V, F> where
F: Unpin,
V: Unpin,
[src]
F: Unpin,
V: Unpin,
impl<V, F> UnwindSafe for View<V, F> where
F: UnwindSafe,
V: UnwindSafe,
[src]
F: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V> ViewExt for V
[src]
impl<'a, T, M, V> ViewExt<'a, T, M> for V
[src]
fn into_element(self) -> View<'a, T, M> where
Self: ViewTrait<T, M> + Sized + 'a,
[src]
Self: ViewTrait<T, M> + Sized + 'a,
impl<'a, T, O, M, F, V> ViewExt<'a, T, O, M, F> for V where
F: Fn(O) -> M + Clone + 'static,
M: 'static,
O: 'static,
[src]
F: Fn(O) -> M + Clone + 'static,
M: 'static,
O: 'static,
impl<V> ViewExt for V
[src]
impl<V> ViewExt for V
[src]
fn on_event<F, A, B, C>(self, f: F) -> View<Self, F> where
Self: Sized,
F: Fn(&Event<A>, B) -> Box<dyn Iterator<Item = C>>,
[src]
Self: Sized,
F: Fn(&Event<A>, B) -> Box<dyn Iterator<Item = C>>,