Struct glyph_brush::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 moresourceimpl Debug for OwnedVariedSection
impl Debug for OwnedVariedSection
sourceimpl Default for OwnedVariedSection
impl Default for OwnedVariedSection
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 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.
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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