Struct druid::piet::cairo::TextExtents
pub struct TextExtents(_);
Implementations§
§impl TextExtents
impl TextExtents
pub fn new( x_bearing: f64, y_bearing: f64, width: f64, height: f64, x_advance: f64, y_advance: f64 ) -> TextExtents
pub fn x_bearing(&self) -> f64
pub fn y_bearing(&self) -> f64
pub fn width(&self) -> f64
pub fn height(&self) -> f64
pub fn x_advance(&self) -> f64
pub fn y_advance(&self) -> f64
pub fn set_x_bearing(&mut self, x_bearing: f64)
pub fn set_y_bearing(&mut self, y_bearing: f64)
pub fn set_width(&mut self, width: f64)
pub fn set_height(&mut self, height: f64)
pub fn set_x_advance(&mut self, x_advance: f64)
pub fn set_y_advance(&mut self, y_advance: f64)
Trait Implementations§
§impl Clone for TextExtents
impl Clone for TextExtents
§fn clone(&self) -> TextExtents
fn clone(&self) -> TextExtents
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for TextExtents
impl Debug for TextExtents
impl Copy for TextExtents
Auto Trait Implementations§
impl RefUnwindSafe for TextExtents
impl Send for TextExtents
impl Sync for TextExtents
impl Unpin for TextExtents
impl UnwindSafe for TextExtents
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.