Struct azul_webrender_api::TextDisplayItem [−][src]
pub struct TextDisplayItem { pub common: CommonItemProperties, pub bounds: LayoutRect, pub font_key: FontInstanceKey, pub color: ColorF, pub glyph_options: Option<GlyphOptions>, }
Fields
common: CommonItemProperties
bounds: LayoutRect
The area all the glyphs should be found in. Strictly speaking this isn’t necessarily needed, but layout engines should already “know” this, and we use it cull and size things quickly before glyph layout is done. Currently the glyphs can be outside these bounds, but that should imply they can be cut off.
font_key: FontInstanceKey
color: ColorF
glyph_options: Option<GlyphOptions>
Trait Implementations
Returns the “default value” for a type. Read more
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for TextDisplayItem
impl Send for TextDisplayItem
impl Sync for TextDisplayItem
impl Unpin for TextDisplayItem
impl UnwindSafe for TextDisplayItem
Blanket Implementations
Mutably borrows from an owned value. Read more