Struct fontdue::OutlineBounds
source · [−]Expand description
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
sourceimpl OutlineBounds
impl OutlineBounds
sourcepub fn scale(&self, scale: f32) -> OutlineBounds
pub fn scale(&self, scale: f32) -> OutlineBounds
Scales the bounding box by the given factor.
Trait Implementations
sourceimpl Clone for OutlineBounds
impl Clone for OutlineBounds
sourcefn clone(&self) -> OutlineBounds
fn clone(&self) -> OutlineBounds
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OutlineBounds
impl Debug for OutlineBounds
sourceimpl Default for OutlineBounds
impl Default for OutlineBounds
sourceimpl PartialEq<OutlineBounds> for OutlineBounds
impl PartialEq<OutlineBounds> for OutlineBounds
sourcefn eq(&self, other: &OutlineBounds) -> bool
fn eq(&self, other: &OutlineBounds) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &OutlineBounds) -> bool
fn ne(&self, other: &OutlineBounds) -> bool
This method tests for !=
.
impl Copy for OutlineBounds
impl StructuralPartialEq for OutlineBounds
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more