(
&mut self,
scrollbar: ScrollbarConfig,
info_text_config: usize,
info_title_config: usize,
)
| 7492 | } |
| 7493 | |
| 7494 | fn render_debug_scrollbar_config( |
| 7495 | &mut self, |
| 7496 | scrollbar: ScrollbarConfig, |
| 7497 | info_text_config: usize, |
| 7498 | info_title_config: usize, |
| 7499 | ) { |
| 7500 | self.debug_text("Width", info_title_config); |
| 7501 | self.debug_float_text(scrollbar.width, info_text_config); |
| 7502 | |
| 7503 | self.debug_text("Corner Radius", info_title_config); |
| 7504 | self.debug_float_text(scrollbar.corner_radius, info_text_config); |
| 7505 | |
| 7506 | self.debug_text("Min Thumb Size", info_title_config); |
| 7507 | self.debug_float_text(scrollbar.min_thumb_size, info_text_config); |
| 7508 | |
| 7509 | self.debug_text("Hide After Frames", info_title_config); |
| 7510 | if let Some(frames) = scrollbar.hide_after_frames { |
| 7511 | self.debug_int_text(frames as f32, info_text_config); |
| 7512 | } else { |
| 7513 | self.debug_text("none", info_text_config); |
| 7514 | } |
| 7515 | |
| 7516 | self.debug_text("Thumb Color", info_title_config); |
| 7517 | self.render_debug_view_color(scrollbar.thumb_color, info_text_config); |
| 7518 | |
| 7519 | self.debug_text("Track Color", info_title_config); |
| 7520 | if let Some(track) = scrollbar.track_color { |
| 7521 | self.render_debug_view_color(track, info_text_config); |
| 7522 | } else { |
| 7523 | self.debug_text("none", info_text_config); |
| 7524 | } |
| 7525 | } |
| 7526 | |
| 7527 | /// Render a shader uniform value in the debug view. |
| 7528 | fn render_debug_shader_uniform_value(&mut self, value: &crate::shaders::ShaderUniformValue, config_index: usize) { |
no test coverage detected