[−][src]Struct foundry::view::View
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]
grid: &'a Grid,
x_pos: usize,
y_pos: usize,
width: usize,
height: usize
) -> View
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]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,