#[repr(C)]pub struct OH_Drawing_LineMetrics {
pub ascender: f64,
pub descender: f64,
pub capHeight: f64,
pub xHeight: f64,
pub width: f64,
pub height: f64,
pub x: f64,
pub y: f64,
pub startIndex: usize,
pub endIndex: usize,
pub firstCharMetrics: OH_Drawing_Font_Metrics,
}Expand description
@brief The metrics of line.
@since 12 @version 1.0
Fields§
§ascender: f64Text ascender height
descender: f64Tex descender height
capHeight: f64The height of a capital letter
xHeight: f64The height of a lowercase letter
width: f64Text width
height: f64Line height
x: f64The distance from the left end of the text to the left end of the container, aligned to 0, is the width of the container minus the width of the line of text
y: f64The height from the top of the text to the top of the container, the first line is 0, and the second line is the height of the first line
startIndex: usizeStart Index
endIndex: usizeEnd Index
firstCharMetrics: OH_Drawing_Font_MetricsThe metrics information of the first character
Trait Implementations§
Source§impl Clone for OH_Drawing_LineMetrics
impl Clone for OH_Drawing_LineMetrics
Source§fn clone(&self) -> OH_Drawing_LineMetrics
fn clone(&self) -> OH_Drawing_LineMetrics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OH_Drawing_LineMetrics
Auto Trait Implementations§
impl Freeze for OH_Drawing_LineMetrics
impl RefUnwindSafe for OH_Drawing_LineMetrics
impl Send for OH_Drawing_LineMetrics
impl Sync for OH_Drawing_LineMetrics
impl Unpin for OH_Drawing_LineMetrics
impl UnsafeUnpin for OH_Drawing_LineMetrics
impl UnwindSafe for OH_Drawing_LineMetrics
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