[][src]Struct kiss3d::planar_camera::Sidescroll

pub struct Sidescroll { /* fields omitted */ }

A 2D camera that can be zoomed and panned.

Methods

impl Sidescroll[src]

pub fn new() -> Sidescroll[src]

Create a new arc-ball camera.

pub fn at(&self) -> Point2<f32>[src]

The point the arc-ball is looking at.

pub fn set_at(&mut self, at: Point2<f32>)[src]

Get a mutable reference to the point the camera is looking at.

pub fn zoom(&self) -> f32[src]

Gets the zoom of the camera.

pub fn set_zoom(&mut self, zoom: f32)[src]

Sets the zoom of the camera.

pub fn look_at(&mut self, at: Point2<f32>, zoom: f32)[src]

Move the camera such that it is centered on a specific point.

pub fn drag_button(&self) -> Option<MouseButton>[src]

The button used to drag the Sidescroll camera.

pub fn rebind_drag_button(&mut self, new_button: Option<MouseButton>)[src]

Set the button used to drag the Sidescroll camera. Use None to disable dragging.

Trait Implementations

impl PlanarCamera for Sidescroll[src]

impl Clone for Sidescroll[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Sidescroll[src]

Auto Trait Implementations

impl Send for Sidescroll

impl Sync for Sidescroll

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.

impl<T> Same for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 

impl<T> Downcast for T where
    T: Any