Struct webrender_api::TextDisplayItem
source · pub struct TextDisplayItem {
pub common: CommonItemProperties,
pub bounds: LayoutRect,
pub font_key: FontInstanceKey,
pub color: ColorF,
pub glyph_options: Option<GlyphOptions>,
pub ref_frame_offset: LayoutVector2D,
}
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>
§ref_frame_offset: LayoutVector2D
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§fn eq(&self, other: &TextDisplayItem) -> bool
fn eq(&self, other: &TextDisplayItem) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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