Struct wgpu_glyph::SectionGeometry [−]
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
pub fn clone(&self) -> SectionGeometry
pub fn clone(&self) -> SectionGeometry
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for SectionGeometry
impl Debug for SectionGeometry
impl Default for SectionGeometry
impl Default for SectionGeometry
pub fn default() -> SectionGeometry
pub fn default() -> SectionGeometry
Returns the “default value” for a type. Read more
impl<'_, '_, X> From<&'_ Section<'_, X>> for SectionGeometry
[src]
impl<'_, '_, X> From<&'_ Section<'_, X>> for SectionGeometry
[src]pub fn from(section: &Section<'_, X>) -> SectionGeometry
[src]
pub fn from(section: &Section<'_, X>) -> SectionGeometry
[src]Performs the conversion.
impl<'_, '_> From<&'_ VariedSection<'_>> for SectionGeometry
[src]
impl<'_, '_> From<&'_ VariedSection<'_>> for SectionGeometry
[src]pub fn from(section: &VariedSection<'_>) -> SectionGeometry
[src]
pub fn from(section: &VariedSection<'_>) -> SectionGeometry
[src]Performs the conversion.
impl PartialEq<SectionGeometry> for SectionGeometry
impl PartialEq<SectionGeometry> for SectionGeometry
pub fn eq(&self, other: &SectionGeometry) -> bool
pub fn eq(&self, other: &SectionGeometry) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &SectionGeometry) -> bool
pub fn ne(&self, other: &SectionGeometry) -> bool
This method tests for !=
.
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,