[][src]Struct druid::DelegateCtx

pub struct DelegateCtx<'a> { /* fields omitted */ }

A context passed in to AppDelegate functions.

Implementations

impl<'a> DelegateCtx<'a>[src]

pub fn submit_command(
    &mut self,
    command: impl Into<Command>,
    target: impl Into<Option<Target>>
)
[src]

Submit a Command to be run after this event is handled.

Commands are run in the order they are submitted; all commands submitted during the handling of an event are executed before the update() method is called.

pub fn new_window<T: Any>(&mut self, desc: WindowDesc<T>)[src]

Create a new window. T must be the application's root Data type (the type provided to AppLauncher::launch).

pub fn set_menu<T: Any>(&mut self, menu: MenuDesc<T>, window: WindowId)[src]

Set the window's menu. T must be the application's root Data type (the type provided to AppLauncher::launch).

Auto Trait Implementations

impl<'a> !RefUnwindSafe for DelegateCtx<'a>

impl<'a> !Send for DelegateCtx<'a>

impl<'a> !Sync for DelegateCtx<'a>

impl<'a> Unpin for DelegateCtx<'a>

impl<'a> !UnwindSafe for DelegateCtx<'a>

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

impl<T, U> RoundInto<U> for T where
    U: RoundFrom<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

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.