pub struct CustomSpanMetrics { /* private fields */ }Expand description
Output metrics for custom text span measurement.
Implementations§
Source§impl CustomSpanMetrics
impl CustomSpanMetrics
Sourcepub fn new() -> ArkUIResult<Self>
pub fn new() -> ArkUIResult<Self>
Allocates a new custom-span metrics object.
Sourcepub fn set_width(&mut self, width: f32) -> ArkUIResult<()>
pub fn set_width(&mut self, width: f32) -> ArkUIResult<()>
Sets measured span width.
Sourcepub fn set_height(&mut self, height: f32) -> ArkUIResult<()>
pub fn set_height(&mut self, height: f32) -> ArkUIResult<()>
Sets measured span height.
Auto Trait Implementations§
impl Freeze for CustomSpanMetrics
impl RefUnwindSafe for CustomSpanMetrics
impl !Send for CustomSpanMetrics
impl !Sync for CustomSpanMetrics
impl Unpin for CustomSpanMetrics
impl UnsafeUnpin for CustomSpanMetrics
impl UnwindSafe for CustomSpanMetrics
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