Struct gfx_glyph::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, Global>,
}
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, Global>
Text to render, rendered next to one another according the layout.
Implementations§
source§impl OwnedVariedSection
impl OwnedVariedSection
pub fn to_borrowed(&self) -> VariedSection<'_>
Trait Implementations§
source§impl Clone for OwnedVariedSection
impl Clone for OwnedVariedSection
source§fn clone(&self) -> OwnedVariedSection
fn clone(&self) -> OwnedVariedSection
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OwnedVariedSection
impl Debug for OwnedVariedSection
source§impl Default for OwnedVariedSection
impl Default for OwnedVariedSection
source§fn default() -> OwnedVariedSection
fn default() -> OwnedVariedSection
Returns the “default value” for a type. Read more
source§impl<'a> From<&'a OwnedVariedSection> for VariedSection<'a>
impl<'a> From<&'a OwnedVariedSection> for VariedSection<'a>
source§fn from(owned: &'a OwnedVariedSection) -> VariedSection<'a>
fn from(owned: &'a OwnedVariedSection) -> VariedSection<'a>
Converts to this type from the input type.
source§impl PartialEq<OwnedVariedSection> for OwnedVariedSection
impl PartialEq<OwnedVariedSection> for OwnedVariedSection
source§fn 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 ==
.