pub struct Ctx<'a, A> {
pub app: &'a mut A,
pub domains: &'a mut Domains,
pub views: &'a mut Views,
pub commands: &'a mut Commands<A>,
pub results: &'a [CommandResult],
pub input: &'a Input,
pub prepared: &'a [PreparedGeometry],
pub step: Step,
/* private fields */
}Fields§
§app: &'a mut A§domains: &'a mut Domains§views: &'a mut Views§commands: &'a mut Commands<A>§results: &'a [CommandResult]§input: &'a Input§prepared: &'a [PreparedGeometry]§step: StepImplementations§
Source§impl<A: Stores> Ctx<'_, A>
impl<A: Stores> Ctx<'_, A>
pub fn pick(&self, ndc: [f32; 2]) -> Option<Pick>
pub fn dragging(&self) -> Option<Drag>
pub fn grab(&mut self, ndc: [f32; 2], time: f64) -> Result<Pick, DragError>
pub fn drag( &mut self, ndc: [f32; 2], time: f64, ) -> Result<ChartPoint, DragError>
pub fn release(&mut self) -> Option<DragRelease>
pub fn release_at(&mut self, time: f64) -> Option<DragRelease>
pub fn cancel_drag(&mut self) -> Option<DragRelease>
Auto Trait Implementations§
impl<'a, A> Freeze for Ctx<'a, A>
impl<'a, A> !RefUnwindSafe for Ctx<'a, A>
impl<'a, A> Send for Ctx<'a, A>where
A: Send,
impl<'a, A> !Sync for Ctx<'a, A>
impl<'a, A> Unpin for Ctx<'a, A>
impl<'a, A> UnsafeUnpin for Ctx<'a, A>
impl<'a, A> !UnwindSafe for Ctx<'a, A>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more