pub enum LayoutRectContent {
Text {
glyphs: Vec<GlyphInstance>,
font_instance_key: FontInstanceKey,
color: ColorU,
glyph_options: Option<GlyphOptions>,
overflow: (bool, bool),
},
Background {
content: RectBackground,
size: Option<StyleBackgroundSize>,
offset: Option<StyleBackgroundPosition>,
repeat: Option<StyleBackgroundRepeat>,
},
Image {
size: LayoutSize,
offset: LayoutPoint,
image_rendering: ImageRendering,
alpha_type: AlphaType,
image_key: ImageKey,
background_color: ColorU,
},
Border {
widths: StyleBorderWidths,
colors: StyleBorderColors,
styles: StyleBorderStyles,
},
BoxShadow {
shadow: StyleBoxShadow,
clip_mode: BoxShadowClipMode,
},
}
Variants§
Text
Fields
§
glyphs: Vec<GlyphInstance>
§
font_instance_key: FontInstanceKey
§
glyph_options: Option<GlyphOptions>
Background
Fields
§
content: RectBackground
§
size: Option<StyleBackgroundSize>
§
offset: Option<StyleBackgroundPosition>
§
repeat: Option<StyleBackgroundRepeat>
Image
Border
BoxShadow
Trait Implementations§
Source§impl Clone for LayoutRectContent
impl Clone for LayoutRectContent
Source§fn clone(&self) -> LayoutRectContent
fn clone(&self) -> LayoutRectContent
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 LayoutRectContent
impl Debug for LayoutRectContent
Source§impl PartialEq for LayoutRectContent
impl PartialEq for LayoutRectContent
Source§impl PartialOrd for LayoutRectContent
impl PartialOrd for LayoutRectContent
impl StructuralPartialEq for LayoutRectContent
Auto Trait Implementations§
impl Freeze for LayoutRectContent
impl RefUnwindSafe for LayoutRectContent
impl Send for LayoutRectContent
impl Sync for LayoutRectContent
impl Unpin for LayoutRectContent
impl UnwindSafe for LayoutRectContent
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