pub trait SpriteExt {
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 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;
}
Loading content...
Loading content...
Loading content...