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§
Source§impl Clone for TextDisplayItem
impl Clone for TextDisplayItem
Source§fn clone(&self) -> TextDisplayItem
fn clone(&self) -> TextDisplayItem
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 moreSource§impl Debug for TextDisplayItem
impl Debug for TextDisplayItem
Source§impl Default for TextDisplayItem
impl Default for TextDisplayItem
Source§fn default() -> TextDisplayItem
fn default() -> TextDisplayItem
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextDisplayItem
impl<'de> Deserialize<'de> for TextDisplayItem
Source§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
Source§impl PartialEq for TextDisplayItem
impl PartialEq for TextDisplayItem
Source§impl Peek for TextDisplayItem
impl Peek for TextDisplayItem
Source§impl Poke for TextDisplayItem
impl Poke for TextDisplayItem
Source§impl Serialize for TextDisplayItem
impl Serialize for TextDisplayItem
impl Copy for TextDisplayItem
impl StructuralPartialEq for TextDisplayItem
Auto Trait Implementations§
impl Freeze for TextDisplayItem
impl RefUnwindSafe for TextDisplayItem
impl Send for TextDisplayItem
impl Sync for TextDisplayItem
impl Unpin for TextDisplayItem
impl UnwindSafe for TextDisplayItem
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