[][src]Struct glyph_brush::legacy::OwnedVariedSection

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

impl OwnedVariedSection[src]

pub fn to_borrowed(&self) -> VariedSection<'_>[src]

Trait Implementations

impl Clone for OwnedVariedSection[src]

impl Debug for OwnedVariedSection[src]

impl Default for OwnedVariedSection[src]

impl<'a> From<&'a OwnedVariedSection> for VariedSection<'a>[src]

impl<'a> From<&'a OwnedVariedSection> for Section<'a>[src]

impl PartialEq<OwnedVariedSection> for OwnedVariedSection[src]

impl StructuralPartialEq for OwnedVariedSection[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,