Searched refs:VPos (Results 1 – 6 of 6) sorted by relevance
/external/rust/crates/plotters-svg/src/ |
D | svg.rs | 6 text_anchor::{HPos, VPos}, 403 VPos::Top => "0.76em", in draw_text() 404 VPos::Center => "0.5ex", in draw_text() 405 VPos::Bottom => "-0.5ex", in draw_text() 418 VPos::Top => y0, in draw_text() 419 VPos::Center => y0 - fy1 / 2 + fy0 / 2, in draw_text() 420 VPos::Bottom => y0 - fy1 + fy0, in draw_text() 582 use plotters::style::text_anchor::{HPos, Pos, VPos}; 640 .pos(Pos::new(HPos::Right, VPos::Top)); in test_text_alignments() 643 let style = style.pos(Pos::new(HPos::Center, VPos::Top)); in test_text_alignments() [all …]
|
/external/rust/crates/plotters-backend/src/ |
D | text.rs | 75 pub enum VPos { enum 90 pub v_pos: VPos, 105 pub fn new(h_pos: HPos, v_pos: VPos) -> Self { in new() 121 v_pos: VPos::Top, in default()
|
D | lib.rs | 73 use text_anchor::{HPos, VPos}; 243 VPos::Top => 0, in draw_text() 244 VPos::Center => -height / 2, in draw_text() 245 VPos::Bottom => -height, in draw_text()
|
/external/rust/crates/plotters/src/chart/ |
D | context.rs | 14 use crate::style::text_anchor::{HPos, Pos, VPos}; 342 (label_dist, *p - y0, HPos::Left, VPos::Center) in draw_axis_and_labels() 348 VPos::Center, 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() [all …]
|
/external/rust/crates/plotters/examples/ |
D | console.rs | 2 use plotters::style::text_anchor::{HPos, VPos}; 140 VPos::Top => 0, in draw_text() 141 VPos::Center => -height / 2, in draw_text() 142 VPos::Bottom => -height, in draw_text()
|
/external/rust/crates/plotters/src/drawing/ |
D | area.rs | 5 use crate::style::text_anchor::{HPos, Pos, VPos}; 487 let style = &style.pos(Pos::new(HPos::Center, VPos::Top)); in titled()
|