pub struct CellMetrics {
pub line_height: f64,
pub char_width: f64,
pub ascent: f64,
pub underline_position: f64,
pub underline_thickness: f64,
pub strikethrough_position: f64,
pub strikethrough_thickness: f64,
pub pango_ascent: i32,
pub pango_descent: i32,
pub pango_char_width: i32,
}Fields
line_height: f64char_width: f64ascent: f64underline_position: f64underline_thickness: f64strikethrough_position: f64strikethrough_thickness: f64pango_ascent: i32pango_descent: i32pango_char_width: i32Implementations
sourceimpl CellMetrics
impl CellMetrics
fn new(font_metrics: &FontMetrics, line_space: i32) -> Self
Auto Trait Implementations
impl RefUnwindSafe for CellMetrics
impl Send for CellMetrics
impl Sync for CellMetrics
impl Unpin for CellMetrics
impl UnwindSafe for CellMetrics
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more