Searched refs:HPos (Results 1 – 6 of 6) sorted by relevance
/external/rust/crates/plotters-svg/src/ |
D | svg.rs | 6 text_anchor::{HPos, VPos}, 397 HPos::Left => "start", in draw_text() 398 HPos::Right => "end", in draw_text() 399 HPos::Center => "middle", in draw_text() 413 HPos::Left => x0, in draw_text() 414 HPos::Center => x0 - fx1 / 2 + fx0 / 2, in draw_text() 415 HPos::Right => x0 - fx1 + fx0, 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 | 64 pub enum HPos { enum 88 pub h_pos: HPos, 105 pub fn new(h_pos: HPos, v_pos: VPos) -> Self { in new() argument 120 h_pos: HPos::Left, in default()
|
D | lib.rs | 73 use text_anchor::{HPos, VPos}; 238 HPos::Left => 0, in draw_text() 239 HPos::Right => -width, in draw_text() 240 HPos::Center => -width / 2, 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() 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() [all …]
|
/external/rust/crates/plotters/examples/ |
D | console.rs | 2 use plotters::style::text_anchor::{HPos, VPos}; 135 HPos::Left => 0, in draw_text() 136 HPos::Right => -width, in draw_text() 137 HPos::Center => -width / 2, 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()
|