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: f64
§char_width: f64
§ascent: f64
§underline_position: f64
§underline_thickness: f64
§strikethrough_position: f64
§strikethrough_thickness: f64
§pango_ascent: i32
§pango_descent: i32
§pango_char_width: i32
Implementations§
Source§impl CellMetrics
impl CellMetrics
fn new(font_metrics: &FontMetrics, line_space: i32) -> Self
Auto Trait Implementations§
impl Freeze for CellMetrics
impl RefUnwindSafe for CellMetrics
impl Send for CellMetrics
impl Sync for CellMetrics
impl Unpin for CellMetrics
impl UnwindSafe for CellMetrics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more