Struct fontdue::OutlineBounds
source · pub struct OutlineBounds {
pub xmin: f32,
pub ymin: f32,
pub width: f32,
pub height: f32,
}
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§
source§impl 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§
source§impl Clone for OutlineBounds
impl Clone for OutlineBounds
source§fn clone(&self) -> OutlineBounds
fn clone(&self) -> OutlineBounds
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 moresource§impl Debug for OutlineBounds
impl Debug for OutlineBounds
source§impl Default for OutlineBounds
impl Default for OutlineBounds
source§impl PartialEq for OutlineBounds
impl PartialEq for OutlineBounds
source§fn 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 ==
.impl Copy for OutlineBounds
impl StructuralPartialEq for OutlineBounds
Auto Trait Implementations§
impl Freeze for OutlineBounds
impl RefUnwindSafe for OutlineBounds
impl Send for OutlineBounds
impl Sync for OutlineBounds
impl Unpin for OutlineBounds
impl UnwindSafe for OutlineBounds
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