pub struct DrawableTextureProperties {
pub width: u32,
pub height: u32,
pub texture_variable_id: String,
pub font: ContentId,
pub text_variable_id: String,
pub set_color: bool,
pub color: Color,
pub horizontal_alignment: TextHorizontalAlignment,
pub vertical_alignment: TextVerticalAlignment,
pub alignment_resolution: u8,
}
Fields§
§width: u32
§height: u32
§texture_variable_id: String
§font: ContentId
§text_variable_id: String
§set_color: bool
§color: Color
§horizontal_alignment: TextHorizontalAlignment
§vertical_alignment: TextVerticalAlignment
§alignment_resolution: u8
Trait Implementations§
§impl Clone for DrawableTextureProperties
impl Clone for DrawableTextureProperties
§fn clone(&self) -> DrawableTextureProperties
fn clone(&self) -> DrawableTextureProperties
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 more§impl Debug for DrawableTextureProperties
impl Debug for DrawableTextureProperties
§impl<'de> Deserialize<'de> for DrawableTextureProperties
impl<'de> Deserialize<'de> for DrawableTextureProperties
§fn deserialize<__D>(
__deserializer: __D
) -> Result<DrawableTextureProperties, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<DrawableTextureProperties, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for DrawableTextureProperties
impl Serialize for DrawableTextureProperties
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for DrawableTextureProperties
impl RefUnwindSafe for DrawableTextureProperties
impl Send for DrawableTextureProperties
impl Sync for DrawableTextureProperties
impl Unpin for DrawableTextureProperties
impl UnwindSafe for DrawableTextureProperties
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more