[−][src]Struct pixel_engine::Screen
The Drawing layer for the engine
It is a glorified Sprite
Trait Implementations
impl Clone for Screen
[src]
impl Debug for Screen
[src]
impl ScreenTrait for Screen
[src]
fn get_size(&mut self) -> (usize, usize)
[src]
fn clear(&mut self, col: Color)
[src]
fn get_textsheet(&self) -> &Sprite
[src]
fn draw(&mut self, x: u32, y: u32, col: Color)
[src]
fn get_pixel_mode(&self) -> PixelMode
[src]
fn set_pixel_mode(&mut self, mode: PixelMode)
[src]
fn get_pixel(&self, x: u32, y: u32) -> Color
[src]
fn get_blend_factor(&self) -> f32
[src]
fn set_blend_factor(&mut self, f: f32)
[src]
Auto Trait Implementations
impl RefUnwindSafe for Screen
impl Send for Screen
impl Sync for Screen
impl Unpin for Screen
impl UnwindSafe for Screen
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ShapesTrait for T where
T: ScreenTrait,
[src]
T: ScreenTrait,
fn draw_text(&mut self, x: u32, y: u32, scale: u32, col: Color, text: &str)
[src]
fn draw_line(&mut self, p1: (u32, u32), p2: (u32, u32), col: Color)
[src]
fn draw_rect(&mut self, x: u32, y: u32, w: u32, h: u32, col: Color)
[src]
fn fill_rect(&mut self, x: u32, y: u32, w: u32, h: u32, col: Color)
[src]
fn draw_circle(&mut self, x: u32, y: u32, r: u32, col: Color)
[src]
fn fill_circle(&mut self, x: u32, y: u32, r: u32, col: Color)
[src]
fn draw_triangle(
&mut self,
pts1: (u32, u32),
pts2: (u32, u32),
pts3: (u32, u32),
col: Color
)
[src]
&mut self,
pts1: (u32, u32),
pts2: (u32, u32),
pts3: (u32, u32),
col: Color
)
fn fill_triangle(
&mut self,
pts1: (u32, u32),
pts2: (u32, u32),
pts3: (u32, u32),
col: Color
)
[src]
&mut self,
pts1: (u32, u32),
pts2: (u32, u32),
pts3: (u32, u32),
col: Color
)
impl<T> SpriteTrait for T where
T: ScreenTrait,
[src]
T: ScreenTrait,
fn draw_sprite(
&mut self,
x: u32,
y: u32,
scale: u32,
sprite: &Sprite,
flip: (bool, bool)
)
[src]
&mut self,
x: u32,
y: u32,
scale: u32,
sprite: &Sprite,
flip: (bool, bool)
)
fn draw_partial_sprite(
&mut self,
coords: (u32, u32),
sprite: &Sprite,
o: (u32, u32),
size: (u32, u32),
scale: u32,
flip: (bool, bool)
)
[src]
&mut self,
coords: (u32, u32),
sprite: &Sprite,
o: (u32, u32),
size: (u32, u32),
scale: u32,
flip: (bool, bool)
)
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>,