[−][src]Struct druid::win_handler::SingleWindowState
Everything required for a window to handle an event.
Fields
window_id: WindowIdphantom: PhantomData<T>Methods
impl<T: Data + 'static + Default> SingleWindowState<T>[src]
fn paint(&mut self, piet: &mut Piet, _ctx: &mut dyn WinCtx) -> bool[src]
fn do_layout(&mut self, piet: &mut Piet)[src]
fn do_paint(&mut self, piet: &mut Piet)[src]
fn do_event_inner(
&mut self,
event: Event,
win_ctx: &mut dyn WinCtx
) -> (bool, bool, bool)[src]
&mut self,
event: Event,
win_ctx: &mut dyn WinCtx
) -> (bool, bool, bool)
Send an event to the widget hierarchy.
Returns three flags. The first is true if the event was handled. The second is true if invalidation is requested. The third is true if an animation frame is requested.
fn window_got_focus(&mut self)[src]
Auto Trait Implementations
impl<T> Send for SingleWindowState<T> where
T: Send,
T: Send,
impl<T> Sync for SingleWindowState<T> where
T: Sync,
T: Sync,
impl<T> Unpin for SingleWindowState<T> where
T: Unpin,
T: Unpin,
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,
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> RoundFrom<T> for T[src]
fn round_from(x: T) -> T[src]
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>, [src]
U: RoundFrom<T>,
fn round_into(self) -> U[src]
impl<T> Same<T> for T[src]
type Output = T
Should always be Self
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.
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>,