[−][src]Struct druid::DelegateCtx
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]
&mut self,
command: impl Into<Command>,
target: impl Into<Option<Target>>
)
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]
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
fn round_from(x: T) -> T
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>,
U: RoundFrom<T>,
fn round_into(self) -> U
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]
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>,