Lines Matching refs:HPos
14 use crate::style::text_anchor::{HPos, Pos, VPos};
342 (label_dist, *p - y0, HPos::Left, VPos::Center) in draw_axis_and_labels()
347 HPos::Right, in draw_axis_and_labels()
354 (tw as i32 - label_dist, *p - y0, HPos::Right, VPos::Center) in draw_axis_and_labels()
357 (dx, dy) if dx == 0 && dy > 0 => (*p - x0, label_dist, HPos::Center, VPos::Top), in draw_axis_and_labels()
360 (*p - x0, th as i32 - label_dist, HPos::Center, VPos::Bottom) in draw_axis_and_labels()
368 (tw as i32 - label_dist, *p - y0, HPos::Right, VPos::Center) in draw_axis_and_labels()
372 (label_dist, *p - y0, HPos::Left, VPos::Center) in draw_axis_and_labels()
376 (*p - x0, th as i32 - label_dist, HPos::Center, VPos::Bottom) in draw_axis_and_labels()
379 (dx, dy) if dx == 0 && dy < 0 => (*p - x0, label_dist, HPos::Center, VPos::Top), in draw_axis_and_labels()
439 (dx, dy) if dx > 0 && dy == 0 => (tw, th / 2, HPos::Center, VPos::Top), in draw_axis_and_labels()
441 (dx, dy) if dx < 0 && dy == 0 => (0, th / 2, HPos::Center, VPos::Top), in draw_axis_and_labels()
443 (dx, dy) if dx == 0 && dy > 0 => (tw / 2, th, HPos::Center, VPos::Bottom), in draw_axis_and_labels()
445 (dx, dy) if dx == 0 && dy < 0 => (tw / 2, 0, HPos::Center, VPos::Top), in draw_axis_and_labels()
680 font.pos = Pos::new(HPos::Right, VPos::Center);
682 font.pos = Pos::new(HPos::Left, VPos::Center);
685 font.pos = Pos::new(HPos::Center, VPos::Bottom);
687 font.pos = Pos::new(HPos::Center, VPos::Top);