[−][src]Trait yy_boss::SpriteExt
Required methods
fn with(self, edit: impl Fn(&mut Self)) -> Self
fn new(name: &str, texture_group_id: TexturePath) -> Sprite
fn with_layer(name: &str, texture_group_id: TexturePath, layer: Layer) -> Sprite
fn parent(self, parent: ViewPath) -> Sprite
fn bbox_mode(self, f: impl Fn(isize, isize) -> BboxModeUtility) -> Self
fn collision_kind(self, collision_kind: CollisionKind) -> Self
fn frame(self, frame_id: FrameId) -> Self
fn clear_all_frames(self) -> Self
Clears all of the frames from the given image. Generally speaking, a sprite should have at least one frame when imported into GMS2, but this function will leave it entirely bare.
Builder version.
fn origin(self, origin: OriginUtility, locked: bool) -> Self
fn playback_speed(self, pback_speed: PlaybackSpeed, speed: f64) -> Self
fn dimensions(self, width: NonZeroUsize, height: NonZeroUsize) -> Self
fn set_clear_all_frames(&mut self)
Clears all of the frames from the given image. Generally speaking, a sprite should have at least one frame when imported into GMS2, but this function will leave it entirely bare.
Implementations on Foreign Types
impl SpriteExt for Sprite
[src]
fn with(self, edit: impl Fn(&mut Self)) -> Self
[src]
fn with_layer(name: &str, texture_group_id: TexturePath, layer: Layer) -> Sprite
[src]
fn new(name: &str, texture_group_id: TexturePath) -> Sprite
[src]
fn parent(self, parent: ViewPath) -> Sprite
[src]
fn bbox_mode(self, f: impl Fn(isize, isize) -> BboxModeUtility) -> Self
[src]
fn frame(self, frame_name: FrameId) -> Self
[src]
fn clear_all_frames(self) -> Self
[src]
Test
fn set_clear_all_frames(&mut self)
[src]
Another test