[−][src]Struct fontdue::OutlineBounds
Defines the bounds for a glyph's outline in subpixels. A glyph's outline is always contained in its bitmap.
Fields
xmin: f32
Subpixel offset of the left-most edge of the glyph's outline.
ymin: f32
Subpixel offset of the bottom-most edge of the glyph's outline.
width: f32
The width of the outline in subpixels.
height: f32
The height of the outline in subpixels.
Implementations
impl OutlineBounds
[src]
pub fn scale(&self, scale: f32) -> OutlineBounds
[src]
Scales the bounding box by the given factor.
Trait Implementations
impl Clone for OutlineBounds
[src]
fn clone(&self) -> OutlineBounds
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for OutlineBounds
[src]
impl Debug for OutlineBounds
[src]
impl Default for OutlineBounds
[src]
impl PartialEq<OutlineBounds> for OutlineBounds
[src]
fn eq(&self, other: &OutlineBounds) -> bool
[src]
fn ne(&self, other: &OutlineBounds) -> bool
[src]
impl StructuralPartialEq for OutlineBounds
[src]
Auto Trait Implementations
impl RefUnwindSafe for OutlineBounds
impl Send for OutlineBounds
impl Sync for OutlineBounds
impl Unpin for OutlineBounds
impl UnwindSafe for OutlineBounds
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,