[][src]Struct rg3d_ui::message::UiMessage

pub struct UiMessage<M: 'static, C: 'static + Control<M, C>> {
    pub handled: bool,
    pub data: UiMessageData<M, C>,
    pub destination: Handle<UINode<M, C>>,
}

Message is basic communication element that is used to deliver information to UI nodes or to user code.

Fields

handled: bool

Useful flag to check if a message was already handled.

data: UiMessageData<M, C>

Actual message data. Use pattern matching to get type specific data.

Notes

This field should be read-only.

destination: Handle<UINode<M, C>>

Handle of node that will receive message. Please note that all nodes in hierarchy will also receive this message, order is defined by routing strategy.

Notes

This field should be read-only.

Trait Implementations

impl<M: Debug + 'static, C: Debug + 'static + Control<M, C>> Debug for UiMessage<M, C>[src]

Auto Trait Implementations

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

impl<M, C> !Send for UiMessage<M, C>

impl<M, C> !Sync for UiMessage<M, C>

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

impl<M, C> !UnwindSafe for UiMessage<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, 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>,