Struct yy_typings::room::BackgroundSprite
source · [−]pub struct BackgroundSprite {
pub sprite_id: Option<ViewPath>,
pub color: usize,
pub x: i32,
pub y: i32,
pub htiled: bool,
pub vtiled: bool,
pub hspeed: f64,
pub vspeed: f64,
pub stretch: bool,
pub animation_fps: f64,
pub animation_speed_type: i32,
pub user_defined_anim_fps: bool,
}
Fields
sprite_id: Option<ViewPath>
color: usize
x: i32
y: i32
htiled: bool
vtiled: bool
hspeed: f64
vspeed: f64
stretch: bool
animation_fps: f64
animation_speed_type: i32
user_defined_anim_fps: bool
Trait Implementations
sourceimpl Clone for BackgroundSprite
impl Clone for BackgroundSprite
sourcefn clone(&self) -> BackgroundSprite
fn clone(&self) -> BackgroundSprite
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for BackgroundSprite
impl Debug for BackgroundSprite
sourceimpl Default for BackgroundSprite
impl Default for BackgroundSprite
sourcefn default() -> BackgroundSprite
fn default() -> BackgroundSprite
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for BackgroundSprite
impl<'de> Deserialize<'de> for BackgroundSprite
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<BackgroundSprite> for BackgroundSprite
impl PartialEq<BackgroundSprite> for BackgroundSprite
sourcefn eq(&self, other: &BackgroundSprite) -> bool
fn eq(&self, other: &BackgroundSprite) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &BackgroundSprite) -> bool
fn ne(&self, other: &BackgroundSprite) -> bool
This method tests for !=
.
sourceimpl Serialize for BackgroundSprite
impl Serialize for BackgroundSprite
impl StructuralPartialEq for BackgroundSprite
Auto Trait Implementations
impl RefUnwindSafe for BackgroundSprite
impl Send for BackgroundSprite
impl Sync for BackgroundSprite
impl Unpin for BackgroundSprite
impl UnwindSafe for BackgroundSprite
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more