Searched refs:relative_to_height (Results 1 – 2 of 2) sorted by relevance
255 pub fn relative_to_height(&self, p: f64) -> f64 { in relative_to_height() method777 assert_eq!(384.0, drawing_area.relative_to_height(0.5)); in test_relative_size()780 assert_eq!(768.0, drawing_area.relative_to_height(1.5)); in test_relative_size()783 assert_eq!(0.0, drawing_area.relative_to_height(-0.5)); in test_relative_size()
213 - Add relative sizing by added function `DrawingArea::relative_to_height` and `DrawingArea::relativ…