[−][src]Enum arcs::CanvasSpace
The coordinate system used for graphical objects rendered to a canvas.
The convention is for the canvas/window's top-left corner to be the origin,
with positive x
going to the right and positive y
going down the screen.
To convert from DrawingSpace
to CanvasSpace
you'll need a
crate::components::Viewport
representing the area on the drawing the
canvas will display. The crate::window
module exposes various utility
functions for converting back and forth, with
crate::window::to_drawing_coordinates()
and
crate::window::to_canvas_coordinates()
being the most useful.
Trait Implementations
impl Clone for CanvasSpace
[src]
fn clone(&self) -> CanvasSpace
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for CanvasSpace
[src]
impl Debug for CanvasSpace
[src]
impl Eq for CanvasSpace
[src]
impl Ord for CanvasSpace
[src]
fn cmp(&self, other: &CanvasSpace) -> Ordering
[src]
#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<CanvasSpace> for CanvasSpace
[src]
fn eq(&self, other: &CanvasSpace) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<CanvasSpace> for CanvasSpace
[src]
fn partial_cmp(&self, other: &CanvasSpace) -> Option<Ordering>
[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for CanvasSpace
[src]
impl StructuralPartialEq for CanvasSpace
[src]
Auto Trait Implementations
impl RefUnwindSafe for CanvasSpace
impl Send for CanvasSpace
impl Sync for CanvasSpace
impl Unpin for CanvasSpace
impl UnwindSafe for CanvasSpace
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
fn get_type_id(&self) -> TypeId
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> Event for T where
T: Send + Sync + 'static,
T: Send + Sync + '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> Resource for T where
T: Any + Send + Sync,
[src]
T: Any + Send + Sync,
impl<T> RoundFrom<T> for T
[src]
fn round_from(x: T) -> T
[src]
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>,
[src]
U: RoundFrom<T>,
fn round_into(self) -> U
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,