Struct sixtyfps_rendering_backend_gl::GLItemRenderer[][src]

pub struct GLItemRenderer { /* fields omitted */ }

Trait Implementations

impl ItemRenderer for GLItemRenderer[src]

fn draw_box_shadow(&mut self, box_shadow: Pin<&BoxShadow>)[src]

Draws a rectangular shadow shape, which is usually placed underneath another rectangular shape with an offset (the drop-shadow-offset-x/y). The rendering happens in two phases:

  • The (possibly round) rectangle is filled with the shadow color.
  • A blurred shadow border is drawn using femtovg’s box gradient. The shadow border is the shape of a slightly bigger rounded rect with the inner shape subtracted. That’s because

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, 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.