Struct entmet_lib::entities::entity::TextDisplay
source · pub struct TextDisplay {
pub text: TextComponent,
pub line_width: i32,
pub background_color: i32,
pub text_opacity: i8,
pub options: Mask<TextDisplayMaskData>,
/* private fields */
}Expand description
An instance of a text display
Fields§
§text: TextComponentThe text of the display
line_width: i32the line width
background_color: i32The background color
§Note
The color is decoded as RGB / ARGB where:
- B: & 0xFF
- G: & 0xFF00 >> 8
- R: & 0xFF0000 >> 16
- A: & 0xFF000000 >> 24
text_opacity: i8the text opacity ranging from 0 to 255
options: Mask<TextDisplayMaskData>The mask of all text display options
Trait Implementations§
source§impl Default for TextDisplay
impl Default for TextDisplay
source§impl Deref for TextDisplay
impl Deref for TextDisplay
Auto Trait Implementations§
impl Freeze for TextDisplay
impl RefUnwindSafe for TextDisplay
impl Send for TextDisplay
impl Sync for TextDisplay
impl Unpin for TextDisplay
impl UnwindSafe for TextDisplay
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