The height of the control bounds
(&self, h: f32)
| 1395 | |
| 1396 | /// The height of the control bounds |
| 1397 | fn set_h(&self, h: f32) { |
| 1398 | // log::info!("Set Height Deault Impl {}", h); |
| 1399 | let dh = { |
| 1400 | let mut comp = self.as_ref().borrow_mut(); |
| 1401 | |
| 1402 | let mut h = if h < comp.h_min { comp.h_min } else { h }; |
| 1403 | |
| 1404 | h = if h > comp.h_max && comp.h_max != 0.0 { |
| 1405 | comp.h_max |
| 1406 | } else { |
| 1407 | h |
| 1408 | }; |
| 1409 | |
| 1410 | let dh = h - comp.h; |
| 1411 | |
| 1412 | comp.h = h; |
| 1413 | |
| 1414 | dh |
| 1415 | }; |
| 1416 | |
| 1417 | self.bounds_changed(0.0, 0.0, 0.0, dh); |
| 1418 | } |
| 1419 | |
| 1420 | /// The x position of the control bounds, relative to its container |
| 1421 | fn set_x_local(&self, x: f32) { |
no test coverage detected