Struct gfx_glyph::SectionGeometry
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§
§impl Clone for SectionGeometry
impl Clone for SectionGeometry
§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 more§impl Debug for SectionGeometry
impl Debug for SectionGeometry
§impl Default for SectionGeometry
impl Default for SectionGeometry
§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.
§impl PartialEq<SectionGeometry> for SectionGeometry
impl PartialEq<SectionGeometry> for SectionGeometry
§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 ==
.