Struct gfx_glyph::OwnedVariedSection [] [src]

pub struct OwnedVariedSection {
    pub screen_position: (f32, f32),
    pub bounds: (f32, f32),
    pub z: f32,
    pub layout: Layout<BuiltInLineBreaker>,
    pub text: Vec<OwnedSectionText>,
}

Fields

Position on screen to render text, in pixels from top-left. Defaults to (0, 0).

Max (width, height) bounds, in pixels from top-left. Defaults to unbounded.

Z values for use in depth testing. Defaults to 0.0

Built in layout, can be overridden with custom layout logic see queue_custom_layout

Text to render, rendered next to one another according the layout.

Methods

impl OwnedVariedSection
[src]

Trait Implementations

impl Debug for OwnedVariedSection
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for OwnedVariedSection
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for OwnedVariedSection
[src]

[src]

Returns the "default value" for a type. Read more

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

[src]

Performs the conversion.

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

[src]

Performs the conversion.

Auto Trait Implementations