Struct glyph_brush_layout::SectionGeometry
source · pub struct SectionGeometry {
pub screen_position: (f32, f32),
pub bounds: (f32, f32),
}
Fields§
§screen_position: (f32, f32)
Position on screen to render text, in pixels from top-left. Defaults to (0, 0).
bounds: (f32, f32)
Max (width, height) bounds, in pixels from top-left. Defaults to unbounded.
Trait Implementations§
source§impl Clone for SectionGeometry
impl Clone for SectionGeometry
source§fn clone(&self) -> SectionGeometry
fn clone(&self) -> SectionGeometry
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 SectionGeometry
impl Debug for SectionGeometry
source§impl Default for SectionGeometry
impl Default for SectionGeometry
source§impl PartialEq for SectionGeometry
impl PartialEq for SectionGeometry
source§fn eq(&self, other: &SectionGeometry) -> bool
fn eq(&self, other: &SectionGeometry) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SectionGeometry
impl StructuralPartialEq for SectionGeometry
Auto Trait Implementations§
impl RefUnwindSafe for SectionGeometry
impl Send for SectionGeometry
impl Sync for SectionGeometry
impl Unpin for SectionGeometry
impl UnwindSafe for SectionGeometry
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