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: Color
font: Cow<'a, str>
align: TextAlign
baseline: TextBaseLine
text: Cow<'a, str>
position: Vec2
size: Scalar
max_width: Option<Scalar>
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]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
impl<T> Any for T where
T: Any,
impl<T> Any for T where
T: Any,
pub fn get_type_id(&self) -> TypeId
Mutably borrows from an owned value. Read more
impl<T> TryDefault for T where
T: Default,
impl<T> TryDefault for T where
T: Default,
pub fn try_default() -> Result<T, String>
pub fn try_default() -> Result<T, String>
Tries to create the default.
fn unwrap_default() -> Self
fn unwrap_default() -> Self
Calls try_default
and panics on an error case.