#[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 This struct describes a strut style. The strut style determines the line spacing, baseline alignment mode, and other properties related to the line height when drawing text.
@since 12 @version 1.0
Fields§
§weight: OH_Drawing_FontWeightFont weight used for calculating the strut.
style: OH_Drawing_FontStyleFont style used when calculating the strut.
size: f64Size of the ascent plus descent in the logical pixels.
heightScale: f64Scale factor of the line height.
heightOverride: boolWhether to enable height override. true: enabled; false: disabled.
halfLeading: boolWhether to enable half leading. true: enabled; false: disabled.
leading: f64Custom leading to be applied to the strut.
forceStrutHeight: boolWhether to forcibly use the strut height for all rows. true means yes; false otherwise.
familiesSize: usizeNumber of font families.
families: *mut *mut c_charDouble pointer to the font families used for calculating the strut.
Trait Implementations§
Source§impl Clone for OH_Drawing_StrutStyle
impl Clone for OH_Drawing_StrutStyle
impl Copy for OH_Drawing_StrutStyle
Auto Trait Implementations§
impl !Send for OH_Drawing_StrutStyle
impl !Sync for OH_Drawing_StrutStyle
impl Forget for OH_Drawing_StrutStyle
impl Freeze for OH_Drawing_StrutStyle
impl Move for OH_Drawing_StrutStyle
impl RefUnwindSafe 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