[][src]Trait plotters::coord::ReverseCoordTranslate

pub trait ReverseCoordTranslate: CoordTranslate {
    fn reverse_translate(&self, input: BackendCoord) -> Option<Self::From>;
}

The trait indicates that the coordinate system supports reverse transform This is useful when we need an interactive plot, thus we need to map the event from the backend coordinate to the logical coordinate

Required methods

fn reverse_translate(&self, input: BackendCoord) -> Option<Self::From>

Reverse translate the coordinate from the drawing coordinate to the logic coordinate. Note: the return value is an option, because it's possible that the drawing coordinate isn't able to be represented in te guest coordinate system

Loading content...

Implementors

impl ReverseCoordTranslate for Shift[src]

impl<T: ReverseCoordTranslate> ReverseCoordTranslate for ShiftAndTrans<T>[src]

impl<X: ReversibleRanged, Y: ReversibleRanged> ReverseCoordTranslate for RangedCoord<X, Y>[src]

Loading content...