MCPcopy Create free account

hub / github.com/Handfish/confetty_rs / functions

Functions50 in github.com/Handfish/confetty_rs

↓ 5 callersMethodposition
Position returns the position of the projectile.
src/projectile.rs:44
↓ 4 callersMethodget_simulation_state
(&mut self)
src/app.rs:99
↓ 4 callersMethodvelocity
Velocity returns the velocity of the projectile.
src/projectile.rs:49
↓ 3 callersMethodremove_indices_from_particles
(&mut self, i: Vec<usize>)
src/simulation_confetti.rs:74
↓ 3 callersMethodupdate
Update updates the position and velocity values for the given projectile. Call this after calling NewProjectile to update values.
src/projectile.rs:33
↓ 2 callersMethodquit
Set running to false to quit the application.
src/app.rs:68
↓ 2 callersFunctionsample_character
Sample a random element from the array
src/simulation_shooting_star.rs:23
↓ 1 callersMethoddraw
[`Draw`] the terminal interface by [`rendering`] the widgets. [`Draw`]: ratatui::Terminal::draw [`rendering`]: crate::ui:render
src/tui.rs:53
↓ 1 callersMethodexit
Exits the terminal interface. It disables the raw mode and reverts back the terminal properties.
src/tui.rs:71
↓ 1 callersFunctionhandle_key_events
Handles the key events and updates the state of [`App`].
src/handler.rs:5
↓ 1 callersMethodinit
Initializes the terminal interface. It enables the raw mode and sets terminal properties.
src/tui.rs:32
↓ 1 callersMethodnext
Receive the next event from the handler thread. This function will always block the current thread if there is no data available and it's possible fo
src/event.rs:76
↓ 1 callersFunctionrender
Renders the user interface widgets.
src/ui.rs:10
↓ 1 callersFunctionsample_character
Sample a random element from the array
src/simulation_confetti.rs:15
↓ 1 callersFunctionsample_character
Sample a random element from the array
src/simulation_fireworks.rs:22
↓ 1 callersFunctionsample_color
()
src/simulation_confetti.rs:19
↓ 1 callersFunctionsample_color
()
src/simulation_shooting_star.rs:29
↓ 1 callersFunctionsample_color
()
src/simulation_fireworks.rs:28
↓ 1 callersMethodset_area
(&mut self, area: Rect)
src/app.rs:76
↓ 1 callersMethodspawn_explosion_particles
(&mut self, color: Color, x: f32, y: f32)
src/simulation_fireworks.rs:99
↓ 1 callersMethodspawn_explosion_particles_x_bounds
( &mut self, color: Color, x: f32, y: f32, angle: f32, vel: Ve
src/simulation_shooting_star.rs:142
↓ 1 callersMethodspawn_explosion_particles_y_bounds
( &mut self, color: Color, x: f32, y: f32, angle: f32, vel: Ve
src/simulation_shooting_star.rs:182
↓ 1 callersMethodspawn_particles
(&mut self)
src/app.rs:80
↓ 1 callersMethodtick
Handles the tick event of the terminal.
src/app.rs:59
Methodacceleration
Acceleration returns the acceleration of the projectile.
src/projectile.rs:54
Methoddefault
()
src/app.rs:25
Methodfireworks
()
src/app.rs:41
Methodget_area
(&self)
src/app.rs:72
Functionmain
()
src/main.rs:19
Methodnew
(width: usize)
src/simulation_confetti.rs:25
Methodnew
(width: usize, height: usize)
src/simulation_shooting_star.rs:35
Methodnew
Constructs a new instance of [`App`].
src/app.rs:37
Methodnew
(width: usize, height: usize)
src/simulation_fireworks.rs:34
Methodnew
Constructs a new instance of [`EventHandler`].
src/event.rs:34
Methodnew
( delta_time: f32, initial_position: Point2<f32>, initial_velocity: Vector2<f32>,
src/projectile.rs:17
Methodnew
Constructs a new instance of [`Tui`].
src/tui.rs:25
Methodnew_explosion
(color: Color, x: f32, y: f32, v: f32, i: f32)
src/simulation_fireworks.rs:57
Methodnew_explosion_x_bounds
(color: Color, x: f32, y: f32, v: f32, i: f32)
src/simulation_shooting_star.rs:96
Methodnew_explosion_y_bounds
(color: Color, x: f32, y: f32, v: f32, i: f32)
src/simulation_shooting_star.rs:71
Methodremove_indices_from_particles
(&mut self, i: Vec<usize>)
src/simulation_shooting_star.rs:222
Methodremove_indices_from_particles
(&mut self, i: Vec<usize>)
src/simulation_fireworks.rs:108
Methodrender
(self, area: Rect, buf: &mut Buffer, state: &mut Self::State)
src/system.rs:17
Methodreset
Resets the terminal interface. This function is also used for the panic hook to revert the terminal properties if unexpected errors occur.
src/tui.rs:62
Methodshooting_star
()
src/app.rs:50
Methodspawn_particles
(&mut self, width: usize)
src/simulation_confetti.rs:66
Methodspawn_particles
(&mut self, width: usize, height: usize)
src/simulation_shooting_star.rs:136
Methodspawn_particles
(&mut self, width: usize, height: usize)
src/simulation_fireworks.rs:93
Methodtick
(&mut self)
src/simulation_confetti.rs:60
Methodtick
(&mut self)
src/simulation_shooting_star.rs:130
Methodtick
(&mut self)
src/simulation_fireworks.rs:87