[−][src]Struct druid::DruidHandler
The struct implements the druid-shell WinHandler
trait.
One DruidHandler
exists per window.
This is something of an internal detail and possibly we don't want to surface it publicly.
Trait Implementations
impl<T: Data> WinHandler for DruidHandler<T>
[src]
pub fn connect(&mut self, handle: &WindowHandle)
[src]
pub fn prepare_paint(&mut self)
[src]
pub fn paint(&mut self, piet: &mut Piet<'_>, region: &Region)
[src]
pub fn size(&mut self, size: Size)
[src]
pub fn scale(&mut self, _scale: Scale)
[src]
pub fn command(&mut self, id: u32)
[src]
pub fn save_as(&mut self, token: FileDialogToken, file_info: Option<FileInfo>)
[src]
pub fn open_file(&mut self, token: FileDialogToken, file_info: Option<FileInfo>)
[src]
pub fn mouse_down(&mut self, event: &MouseEvent)
[src]
pub fn mouse_up(&mut self, event: &MouseEvent)
[src]
pub fn mouse_move(&mut self, event: &MouseEvent)
[src]
pub fn mouse_leave(&mut self)
[src]
pub fn key_down(&mut self, event: KeyEvent) -> bool
[src]
pub fn key_up(&mut self, event: KeyEvent)
[src]
pub fn wheel(&mut self, event: &MouseEvent)
[src]
pub fn zoom(&mut self, delta: f64)
[src]
pub fn got_focus(&mut self)
[src]
pub fn timer(&mut self, token: TimerToken)
[src]
pub fn idle(&mut self, token: IdleToken)
[src]
pub fn as_any(&mut self) -> &mut dyn Any
[src]
pub fn request_close(&mut self)
[src]
pub fn destroy(&mut self)
[src]
pub fn rebuild_resources(&mut self)
[src]
pub fn lost_focus(&mut self)
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for DruidHandler<T>
[src]
impl<T> !Send for DruidHandler<T>
[src]
impl<T> !Sync for DruidHandler<T>
[src]
impl<T> Unpin for DruidHandler<T>
[src]
impl<T> !UnwindSafe for DruidHandler<T>
[src]
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,
pub 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
pub fn round_from(x: T) -> T
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>,
U: RoundFrom<T>,
pub 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.
pub 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>,