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 duplicate 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§fn default() -> SectionGeometry
fn default() -> SectionGeometry
Returns the “default value” for a type. Read more
Source§impl<X> From<&Section<'_, X>> for SectionGeometry
impl<X> From<&Section<'_, X>> for SectionGeometry
Source§fn from(section: &Section<'_, X>) -> SectionGeometry
fn from(section: &Section<'_, X>) -> SectionGeometry
Converts to this type from the input type.
Source§impl From<&VariedSection<'_>> for SectionGeometry
impl From<&VariedSection<'_>> for SectionGeometry
Source§fn from(section: &VariedSection<'_>) -> SectionGeometry
fn from(section: &VariedSection<'_>) -> SectionGeometry
Converts to this type from the input type.
Source§impl PartialEq for SectionGeometry
impl PartialEq for SectionGeometry
impl Copy for SectionGeometry
impl StructuralPartialEq for SectionGeometry
Auto Trait Implementations§
impl Freeze for SectionGeometry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more