The width of the control bounds
(&self, w: f32)
| 1364 | |
| 1365 | /// The width of the control bounds |
| 1366 | fn set_w(&self, w: f32) { |
| 1367 | // log::info!("Set Width Deault Impl {}", w); |
| 1368 | let dw = { |
| 1369 | let mut comp = self.as_ref().borrow_mut(); |
| 1370 | |
| 1371 | let mut w = if w < comp.w_min { comp.w_min } else { w }; |
| 1372 | |
| 1373 | w = if w > comp.w_max && comp.w_max != 0.0 { |
| 1374 | comp.w_max |
| 1375 | } else { |
| 1376 | w |
| 1377 | }; |
| 1378 | |
| 1379 | let dw = w - comp.w; |
| 1380 | |
| 1381 | comp.w = w; |
| 1382 | |
| 1383 | dw |
| 1384 | }; |
| 1385 | |
| 1386 | self.bounds_changed(0.0, 0.0, dw, 0.0); |
| 1387 | } |
| 1388 | |
| 1389 | /// The height of the control bounds |
| 1390 | fn h(&self) -> f32 { |
no test coverage detected