pub enum PartialOffscreenDrawing {
ClipXY,
ClipXWrapY,
WrapXClipY,
WrapXY,
}Expand description
Drawing behavior for sprites that are partially offscreen.
Sprites that are drawn at coordinates fully offscreen will always
have the modulo of the screen size applied to their coordinates.
The partial offscreen drawing behavior will be applied after this.
See also Instruction::DrawSprite.
Variants§
ClipXY
Clip offscreen parts of sprites in both X and Y.
ClipXWrapY
Clip offscreen parts of sprites in X, wrap in Y.
WrapXClipY
Wrap offscreen parts of sprites in X, clip in Y.
WrapXY
Wrap offscreen parts of sprites in both X and Y.
Implementations§
Source§impl PartialOffscreenDrawing
impl PartialOffscreenDrawing
pub fn should_wrap_x(self) -> bool
pub fn should_wrap_y(self) -> bool
Trait Implementations§
Source§impl Clone for PartialOffscreenDrawing
impl Clone for PartialOffscreenDrawing
Source§fn clone(&self) -> PartialOffscreenDrawing
fn clone(&self) -> PartialOffscreenDrawing
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PartialOffscreenDrawing
impl Debug for PartialOffscreenDrawing
Source§impl Default for PartialOffscreenDrawing
impl Default for PartialOffscreenDrawing
Source§impl PartialEq for PartialOffscreenDrawing
impl PartialEq for PartialOffscreenDrawing
impl Copy for PartialOffscreenDrawing
impl Eq for PartialOffscreenDrawing
impl StructuralPartialEq for PartialOffscreenDrawing
Auto Trait Implementations§
impl Freeze for PartialOffscreenDrawing
impl RefUnwindSafe for PartialOffscreenDrawing
impl Send for PartialOffscreenDrawing
impl Sync for PartialOffscreenDrawing
impl Unpin for PartialOffscreenDrawing
impl UnwindSafe for PartialOffscreenDrawing
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more