pub enum LayoutRectContent {
Text {
glyphs: Vec<GlyphInstance>,
font_instance_key: FontInstanceKey,
color: ColorU,
glyph_options: Option<GlyphOptions>,
overflow: (bool, bool),
text_shadow: Option<StyleBoxShadow>,
},
Background {
content: RectBackground,
size: Option<StyleBackgroundSize>,
offset: Option<StyleBackgroundPosition>,
repeat: Option<StyleBackgroundRepeat>,
},
Image {
size: LogicalSize,
offset: LogicalPosition,
image_rendering: ImageRendering,
alpha_type: AlphaType,
image_key: ImageKey,
background_color: ColorU,
},
Border {
widths: StyleBorderWidths,
colors: StyleBorderColors,
styles: StyleBorderStyles,
},
}Variants§
Text
Fields
§
glyphs: Vec<GlyphInstance>§
font_instance_key: FontInstanceKey§
glyph_options: Option<GlyphOptions>§
text_shadow: Option<StyleBoxShadow>Background
Fields
§
content: RectBackground§
size: Option<StyleBackgroundSize>§
offset: Option<StyleBackgroundPosition>§
repeat: Option<StyleBackgroundRepeat>Image
Border
Implementations§
Source§impl LayoutRectContent
impl LayoutRectContent
pub fn scale_for_dpi(&mut self, scale_factor: f32)
Trait Implementations§
Source§impl Clone for LayoutRectContent
impl Clone for LayoutRectContent
Source§fn clone(&self) -> LayoutRectContent
fn clone(&self) -> LayoutRectContent
Returns a duplicate 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more