[][src]Struct azul_core::window::CallbacksOfHitTest

pub struct CallbacksOfHitTest {
    pub nodes_with_callbacks: BTreeMap<NodeId, DetermineCallbackResult>,
    pub needs_relayout_anyways: bool,
    pub needs_redraw_anyways: bool,
}

Fields

nodes_with_callbacks: BTreeMap<NodeId, DetermineCallbackResult>

A BTreeMap where each item is already filtered by the proper hit-testing type, meaning in order to get the proper callbacks, you simply have to iterate through all node IDs

needs_relayout_anyways: bool

Same as needs_redraw_anyways, but for reusing the layout from the previous frame. Each :hover and :active group stores whether it modifies the layout, as a performance optimization.

needs_redraw_anyways: bool

Whether the screen should be redrawn even if no Callback returns an UpdateScreen::Redraw. This is necessary for :hover and :active mouseovers - otherwise the screen would only update on the next resize.

Implementations

impl CallbacksOfHitTest[src]

pub fn should_call_callbacks(&self) -> bool[src]

Returns whether there is any

Trait Implementations

impl Debug for CallbacksOfHitTest[src]

impl Default for CallbacksOfHitTest[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.