Render corner radius values as simple stacked lines.
(
&mut self,
cr: CornerRadius,
info_text_config: usize,
)
| 7453 | |
| 7454 | /// Render corner radius values as simple stacked lines. |
| 7455 | fn render_debug_view_corner_radius( |
| 7456 | &mut self, |
| 7457 | cr: CornerRadius, |
| 7458 | info_text_config: usize, |
| 7459 | ) { |
| 7460 | self.debug_open(&ElementDeclaration::default()); |
| 7461 | { |
| 7462 | self.debug_text("topLeft: ", info_text_config); |
| 7463 | self.debug_float_text(cr.top_left, info_text_config); |
| 7464 | } |
| 7465 | self.close_element(); |
| 7466 | self.debug_open(&ElementDeclaration::default()); |
| 7467 | { |
| 7468 | self.debug_text("topRight: ", info_text_config); |
| 7469 | self.debug_float_text(cr.top_right, info_text_config); |
| 7470 | } |
| 7471 | self.close_element(); |
| 7472 | self.debug_open(&ElementDeclaration::default()); |
| 7473 | { |
| 7474 | self.debug_text("bottomLeft: ", info_text_config); |
| 7475 | self.debug_float_text(cr.bottom_left, info_text_config); |
| 7476 | } |
| 7477 | self.close_element(); |
| 7478 | self.debug_open(&ElementDeclaration::default()); |
| 7479 | { |
| 7480 | self.debug_text("bottomRight: ", info_text_config); |
| 7481 | self.debug_float_text(cr.bottom_right, info_text_config); |
| 7482 | } |
| 7483 | self.close_element(); |
| 7484 | } |
| 7485 | |
| 7486 | fn debug_border_position_name(position: BorderPosition) -> &'static str { |
| 7487 | match position { |
no test coverage detected