[−][src]Struct widgetry::EventCtx
Fields
fake_mouseover: bool
input: UserInput
canvas: &'a mut Canvas
prerender: &'a Prerender
style: &'a mut Style
updates_requested: Vec<UpdateType>
Implementations
impl<'a> EventCtx<'a>
[src]
pub fn loading_screen<O, S: Into<String>, F: FnOnce(&mut EventCtx, &mut Timer) -> O>(
&mut self,
raw_timer_name: S,
f: F
) -> O
[src]
&mut self,
raw_timer_name: S,
f: F
) -> O
pub fn request_update(&mut self, update_type: UpdateType)
[src]
pub fn canvas_movement(&mut self)
[src]
pub fn no_op_event<O, F: FnMut(&mut EventCtx) -> O>(
&mut self,
fake_mouseover: bool,
cb: F
) -> O
[src]
&mut self,
fake_mouseover: bool,
cb: F
) -> O
pub fn redo_mouseover(&self) -> bool
[src]
pub fn normal_left_click(&mut self) -> bool
[src]
fn is_dragging(&self) -> bool
[src]
pub fn default_line_height(&self) -> f64
[src]
pub fn upload(&self, batch: GeomBatch) -> Drawable
[src]
pub(crate) fn cursor_clickable(&mut self)
[src]
pub fn style(&self) -> &Style
[src]
pub fn set_style(&mut self, style: Style)
[src]
Auto Trait Implementations
impl<'a> !RefUnwindSafe for EventCtx<'a>
impl<'a> !Send for EventCtx<'a>
impl<'a> !Sync for EventCtx<'a>
impl<'a> Unpin for EventCtx<'a>
impl<'a> !UnwindSafe for EventCtx<'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> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<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]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,