MCPcopy Create free account

hub / github.com/PistonDevelopers/sprite / functions

Functions68 in github.com/PistonDevelopers/sprite

↓ 5 callersMethodid
(&self)
src/sprite.rs:93
↓ 4 callersMethodfind
(&self, sprite_id: Uuid, animation: &Behavior<Animation>)
src/scene.rs:132
↓ 3 callersMethodadd_child
Add sprite to scene
src/scene.rs:208
↓ 3 callersMethodget_opacity
(&self)
src/sprite.rs:211
↓ 3 callersMethodget_size
(&self)
tests/fake_texture.rs:12
↓ 3 callersMethodremove_child_when_done
Remove the child by `id` from the scene's children or grandchild once all of its animations have finished. If the child current has no animations, it
src/scene.rs:255
↓ 2 callersFunctiondt_event
(dt: f64)
tests/lib.rs:65
↓ 2 callersMethodevent
Update animation's state
src/scene.rs:44
↓ 2 callersMethodget_position
(&self)
src/sprite.rs:123
↓ 2 callersMethodget_rotation
(&self)
src/sprite.rs:147
↓ 2 callersMethodget_scale
(&self)
src/sprite.rs:159
↓ 2 callersMethodget_visible
Whether or not the sprite is visible
src/sprite.rs:98
↓ 2 callersMethodremove_child
Remove the child by `id` from the scene's children or grandchild will stop all the animations run by this child
src/scene.rs:224
↓ 2 callersMethodrun
Register animation with sprite
src/scene.rs:122
↓ 2 callersMethodrunning_for_child
Get the number of running animations for a sprite. If sprite does not exist, returns None.
src/scene.rs:195
↓ 2 callersMethodset_opacity
(&mut self, opacity: f32)
src/sprite.rs:217
↓ 2 callersMethodset_position
(&mut self, x: Scalar, y: Scalar)
src/sprite.rs:129
↓ 2 callersMethodset_rotation
(&mut self, deg: Scalar)
src/sprite.rs:153
↓ 2 callersMethodset_scale
(&mut self, sx: Scalar, sy: Scalar)
src/sprite.rs:165
↓ 2 callersMethodset_visible
Set the sprite's visibility
src/sprite.rs:103
↓ 2 callersFunctionupdate_opacity
( sprite: &mut Sprite<I>, factor: f64, t: f64, b: f64, c: f64, d: f64 )
src/animation.rs:312
↓ 2 callersFunctionupdate_position
( sprite: &mut Sprite<I>, factor: f64, t: f64, bx: f64, by: f64, cx: f64, cy: f64,
src/animation.rs:254
↓ 2 callersFunctionupdate_rotation
( sprite: &mut Sprite<I>, factor: f64, t: f64, b: f64, c: f64, d: f64 )
src/animation.rs:274
↓ 2 callersFunctionupdate_scale
( sprite: &mut Sprite<I>, factor: f64, t: f64, bx: f64, by: f64, cx: f64, cy: f64,
src/animation.rs:292
↓ 1 callersMethodchild
Find the child by `id` from the scene's children or grandchild
src/scene.rs:269
↓ 1 callersMethodchild_mut
Find the child by `id` from this sprite's children or grandchild, mutability
src/scene.rs:283
↓ 1 callersMethodchildren
(&self)
src/scene.rs:298
↓ 1 callersMethoddraw
Draw this sprite and its children
src/sprite.rs:309
↓ 1 callersMethodget_flip_x
(&self)
src/sprite.rs:179
↓ 1 callersMethodget_flip_y
(&self)
src/sprite.rs:199
↓ 1 callersMethodpause
Pause a running animation of the sprite
src/scene.rs:146
↓ 1 callersMethodprune_dead_sprites
(&mut self)
src/scene.rs:88
↓ 1 callersMethodset_flip_x
(&mut self, flip_x: bool)
src/sprite.rs:185
↓ 1 callersMethodset_flip_y
(&mut self, flip_y: bool)
src/sprite.rs:205
↓ 1 callersMethodstop_all
Stop all running animations of the sprite
src/scene.rs:180
↓ 1 callersMethodstop_all_including_children
(&mut self, sprite: &Sprite<I>)
src/scene.rs:215
↓ 1 callersMethodto_state
Generate a new state from Animation with specified Sprite
src/animation.rs:72
↓ 1 callersMethodupdate
Update the state and change the sprite's properties
src/animation.rs:164
Methodadd_child
Add a sprite as the child of this sprite, return the added sprite's id.
src/sprite.rs:246
Methodbounding_box
Get the sprite's bounding box
src/sprite.rs:410
Methodchild
Find the child by `id` from this sprite's children or grandchild
src/sprite.rs:275
Methodchild_mut
Find the child by `id` from this sprite's children or grandchild, mutability
src/sprite.rs:289
Methodchildren
(&self)
src/sprite.rs:304
Methoddraw
Render this scene
src/scene.rs:108
Methoddraw_tinted
Render this scene with tint
src/scene.rs:115
Methoddraw_tinted
Draw this sprite and its children with color
src/sprite.rs:359
Methodfrom_texture
Crate sprite from a texture
src/sprite.rs:38
Methodfrom_texture_rect
Create sprite from a rectangle selection of a texture
src/sprite.rs:65
Methodget_anchor
(&self)
src/sprite.rs:111
Methodget_color
(&self)
src/sprite.rs:141
Methodget_height
(&self)
tests/fake_texture.rs:14
Methodget_src_rect
(&self)
src/sprite.rs:223
Methodget_texture
(&self)
src/sprite.rs:235
Methodget_width
(&self)
tests/fake_texture.rs:13
Methodnew
Create a new scene
src/scene.rs:34
Methodnew
()
tests/fake_texture.rs:8
Functionpruning_stopped_sprites
()
tests/lib.rs:14
Methodremove_child
Remove the child by `id` from this sprite's children or grandchild
src/sprite.rs:254
Functionremove_child_when_done_when_animations_paused
()
tests/lib.rs:52
Functionremove_child_when_done_when_sprite_already_stopped
()
tests/lib.rs:41
Methodresume
Resume a paused animation of the sprite
src/scene.rs:155
Methodrunning
Get all the running animations in the scene
src/scene.rs:185
Methodset_anchor
(&mut self, x: Scalar, y: Scalar)
src/sprite.rs:117
Methodset_color
(&mut self, r: f32, g: f32, b: f32)
src/sprite.rs:135
Methodset_src_rect
(&mut self, src_rect: SourceRectangle)
src/sprite.rs:229
Methodset_texture
(&mut self, texture: Rc<I>)
src/sprite.rs:241
Methodstop
Stop a running animation of the sprite
src/scene.rs:173
Methodtoggle
Toggle an animation of the sprite
src/scene.rs:164