#[repr(C)]pub struct OH_Drawing_StrutStyle {
pub weight: OH_Drawing_FontWeight,
pub style: OH_Drawing_FontStyle,
pub size: f64,
pub heightScale: f64,
pub heightOverride: bool,
pub halfLeading: bool,
pub leading: f64,
pub forceStrutHeight: bool,
pub familiesSize: usize,
pub families: *mut *mut c_char,
}Expand description
@brief Defines StrutStyle info struct.
@since 12 @version 1.0
Fields§
§weight: OH_Drawing_FontWeightThe font weight to use when calculating the strut
style: OH_Drawing_FontStyleThe font style to use when calculating the strut
size: f64The size of the ascent plus descent in logical pixels
heightScale: f64The minimum height of the strut, as a multiple of fontSize
heightOverride: boolWhether the height is override
halfLeading: boolWhether the halfleading is enable
leading: f64The additional leading to apply to the strut as a multiple of Size
forceStrutHeight: boolWhether the strut height should be forced
familiesSize: usizeThe size of font families
families: *mut *mut c_charThe families of the font to use when calculating the strut
Trait Implementations§
Source§impl Clone for OH_Drawing_StrutStyle
impl Clone for OH_Drawing_StrutStyle
Source§fn clone(&self) -> OH_Drawing_StrutStyle
fn clone(&self) -> OH_Drawing_StrutStyle
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 moreSource§impl Debug for OH_Drawing_StrutStyle
impl Debug for OH_Drawing_StrutStyle
impl Copy for OH_Drawing_StrutStyle
Auto Trait Implementations§
impl Freeze for OH_Drawing_StrutStyle
impl RefUnwindSafe for OH_Drawing_StrutStyle
impl !Send for OH_Drawing_StrutStyle
impl !Sync for OH_Drawing_StrutStyle
impl Unpin for OH_Drawing_StrutStyle
impl UnsafeUnpin for OH_Drawing_StrutStyle
impl UnwindSafe for OH_Drawing_StrutStyle
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