(&mut self, callback: F)
| 234 | /// To share data with the callback, use `Arc` or `Atomic*` types and `move ||` closures. |
| 235 | #[inline] |
| 236 | pub fn set_progress_callback<F: Fn(f32) -> ControlFlow + Send + Sync + 'static>(&mut self, callback: F) { |
| 237 | self.progress_callback = Some(Arc::new(callback)); |
| 238 | } |
| 239 | |
| 240 | /// Move transparent color to the last entry in the palette |
| 241 | /// |