Struct rg3d_ui::RestrictionEntry[][src]

pub struct RestrictionEntry<M: MessageData, C: Control<M, C>> {
    pub handle: Handle<UINode<M, C>>,
    pub stop: bool,
}

Fields

handle: Handle<UINode<M, C>>

Handle to UI node to which picking must be restricted to.

stop: bool

A flag that tells UI to stop iterating over picking stack. There are two use cases: chain of menus (popups) and set of modal windows. In case of menus you need to restrict picking to an entire chain, but leave possibility to select any menu in the chain. In case of multiple modal windows you need to restrict picking individually per window, not allowing to pick anything behind modal window, but still save restrictions in the entire chain of modal windows so if topmost closes, restriction will be on previous one and so on.

Trait Implementations

impl<M: Clone + MessageData, C: Clone + Control<M, C>> Clone for RestrictionEntry<M, C>[src]

impl<M: Copy + MessageData, C: Copy + Control<M, C>> Copy for RestrictionEntry<M, C>[src]

Auto Trait Implementations

impl<M, C> !RefUnwindSafe for RestrictionEntry<M, C>

impl<M, C> Send for RestrictionEntry<M, C>

impl<M, C> Sync for RestrictionEntry<M, C>

impl<M, C> Unpin for RestrictionEntry<M, C> where
    C: Unpin,
    M: Unpin

impl<M, C> !UnwindSafe for RestrictionEntry<M, C>

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> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,