[][src]Struct foundry::view::View

pub struct View<'a> { /* fields omitted */ }

Methods

impl<'a> View<'a>[src]

pub fn new(grid: &'a Grid) -> View<'a>[src]

pub fn new_positioned(
    grid: &'a Grid,
    x_pos: usize,
    y_pos: usize,
    width: usize,
    height: usize
) -> View
[src]

pub fn position(&self) -> (usize, usize)[src]

pub fn set_position(&mut self, x: usize, y: usize)[src]

pub fn width(&self) -> usize[src]

pub fn set_width(&mut self, w: usize)[src]

pub fn height(&self) -> usize[src]

pub fn set_height(&mut self, h: usize)[src]

pub fn render(&self, img_width: usize, img_height: usize) -> Vec<u8>[src]

Auto Trait Implementations

impl<'a> Unpin for View<'a>

impl<'a> Sync for View<'a>

impl<'a> Send for View<'a>

impl<'a> UnwindSafe for View<'a>

impl<'a> RefUnwindSafe for View<'a>

Blanket Implementations

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Content for T[src]

impl<T> Erased for T