Struct oxygengine_composite_renderer::composite_renderer::Text [−][src]
pub struct Text<'a> {
pub color: Color,
pub font: Cow<'a, str>,
pub align: TextAlign,
pub baseline: TextBaseLine,
pub text: Cow<'a, str>,
pub position: Vec2,
pub size: Scalar,
pub max_width: Option<Scalar>,
}Fields
color: Colorfont: Cow<'a, str>align: TextAlignbaseline: TextBaseLinetext: Cow<'a, str>position: Vec2size: Scalarmax_width: Option<Scalar>Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for Text<'a>
impl<'a> UnwindSafe for Text<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
