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
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.
Methods
impl OwnedVariedSection
[src]
pub fn to_borrowed(&self) -> VariedSection
[src]
Trait Implementations
impl Debug for OwnedVariedSection
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for OwnedVariedSection
[src]
fn clone(&self) -> OwnedVariedSection
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for OwnedVariedSection
[src]
impl<'a> From<&'a OwnedVariedSection> for VariedSection<'a>
[src]
fn from(owned: &'a OwnedVariedSection) -> Self
[src]
Performs the conversion.
impl<'a> From<&'a OwnedVariedSection> for Cow<'a, VariedSection<'a>>
[src]
fn from(owned: &'a OwnedVariedSection) -> Self
[src]
Performs the conversion.