[][src]Enum azul_core::display_list::LayoutRectContent

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 of Text

glyphs: Vec<GlyphInstance>font_instance_key: FontInstanceKeycolor: ColorUglyph_options: Option<GlyphOptions>overflow: (bool, bool)
Background
Image

Fields of Image

size: LayoutSizeoffset: LayoutPointimage_rendering: ImageRenderingalpha_type: AlphaTypeimage_key: ImageKeybackground_color: ColorU
Border

Fields of Border

widths: StyleBorderWidthscolors: StyleBorderColorsstyles: StyleBorderStyles
BoxShadow

Fields of BoxShadow

shadow: StyleBoxShadowclip_mode: BoxShadowClipMode

Trait Implementations

impl Clone for LayoutRectContent[src]

impl Debug for LayoutRectContent[src]

impl PartialEq<LayoutRectContent> for LayoutRectContent[src]

impl PartialOrd<LayoutRectContent> for LayoutRectContent[src]

impl StructuralPartialEq for LayoutRectContent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.