Struct glyph_brush::legacy::OwnedVariedSection
source · [−]pub struct OwnedVariedSection {
pub screen_position: (f32, f32),
pub bounds: (f32, f32),
pub z: f32,
pub layout: Layout<BuiltInLineBreaker>,
pub text: Vec<OwnedSectionText>,
}
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.
z: f32
Z values for use in depth testing. Defaults to 0.0
layout: Layout<BuiltInLineBreaker>
Built in layout, can be overridden with custom layout logic
see queue_custom_layout
text: Vec<OwnedSectionText>
Text to render, rendered next to one another according the layout.
Implementations
sourceimpl OwnedVariedSection
impl OwnedVariedSection
pub fn to_borrowed(&self) -> VariedSection<'_>
Trait Implementations
sourceimpl Clone for OwnedVariedSection
impl Clone for OwnedVariedSection
sourcefn clone(&self) -> OwnedVariedSection
fn clone(&self) -> OwnedVariedSection
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OwnedVariedSection
impl Debug for OwnedVariedSection
sourceimpl Default for OwnedVariedSection
impl Default for OwnedVariedSection
sourceimpl<'a> From<&'a OwnedVariedSection> for VariedSection<'a>
impl<'a> From<&'a OwnedVariedSection> for VariedSection<'a>
sourcefn from(owned: &'a OwnedVariedSection) -> Self
fn from(owned: &'a OwnedVariedSection) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a OwnedVariedSection> for Cow<'a, VariedSection<'a>>
impl<'a> From<&'a OwnedVariedSection> for Cow<'a, VariedSection<'a>>
sourcefn from(owned: &'a OwnedVariedSection) -> Self
fn from(owned: &'a OwnedVariedSection) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a OwnedVariedSection> for Section<'a>
impl<'a> From<&'a OwnedVariedSection> for Section<'a>
sourcefn from(owned: &'a OwnedVariedSection) -> Self
fn from(owned: &'a OwnedVariedSection) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a OwnedVariedSection> for Cow<'a, Section<'a>>
impl<'a> From<&'a OwnedVariedSection> for Cow<'a, Section<'a>>
sourcefn from(owned: &'a OwnedVariedSection) -> Self
fn from(owned: &'a OwnedVariedSection) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<OwnedVariedSection> for OwnedVariedSection
impl PartialEq<OwnedVariedSection> for OwnedVariedSection
sourcefn eq(&self, other: &OwnedVariedSection) -> bool
fn eq(&self, other: &OwnedVariedSection) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &OwnedVariedSection) -> bool
fn ne(&self, other: &OwnedVariedSection) -> bool
This method tests for !=
.
impl StructuralPartialEq for OwnedVariedSection
Auto Trait Implementations
impl RefUnwindSafe for OwnedVariedSection
impl Send for OwnedVariedSection
impl Sync for OwnedVariedSection
impl Unpin for OwnedVariedSection
impl UnwindSafe for OwnedVariedSection
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more