[][src]Struct guion::render::link::RenderLink

pub struct RenderLink<'a, E> where
    E: Env
{ pub r: &'a mut ERenderer<E>, pub b: Bounds, pub br: Bounds, pub v: ESVariant<E>, pub s: EStyle<E>, pub force: bool, }

reference-compound of renderer, current bounds and style

Fields

r: &'a mut ERenderer<E>

the underlying renderer

b: Bounds

current slice

br: Bounds

current slice, but including last border

v: ESVariant<E>s: EStyle<E>force: bool

whether rendering is enforced (e.g. if invalidation from outside occured)

Methods

impl<'a, E> RenderLink<'a, E> where
    E: Env
[src]

pub fn new(
    r: &'a mut ERenderer<E>,
    b: Bounds,
    v: ESVariant<E>,
    s: EStyle<E>,
    force: bool
) -> Self
[src]

pub fn simple(r: &'a mut ERenderer<E>, dim: (u32, u32), c: &E::Context) -> Self[src]

pub fn force(&mut self) -> bool[src]

pub fn requires_render<'l, 's>(&mut self, w: &'s dyn Widget<'l, E>) -> bool where
    'l: 's, 
[src]

pub fn with_force<'s>(&'s mut self, force: bool) -> RenderLink<'s, E> where
    'a: 's, 
[src]

fork with force set

pub fn enforced<'s>(&'s mut self) -> RenderLink<'s, E> where
    'a: 's, 
[src]

fork with force set to true

pub fn inside_border<'s>(&'s mut self, s: &'s Border) -> RenderLink<'s, E> where
    'a: 's, 
[src]

fork with area inside the border

pub fn slice<'s>(&'s mut self, s: &'s Bounds) -> RenderLink<'s, E> where
    'a: 's, 
[src]

fork with area inside the bounds

pub fn slice_abs<'s>(&'s mut self, s: &'s Bounds) -> RenderLink<'s, E> where
    'a: 's, 
[src]

fork with area inside the bounds

pub fn with<'s, V>(
    &'s mut self,
    verbs: impl IntoIterator<Item = impl Deref<Target = V>>
) -> RenderLink<'s, E> where
    ESVariant<E>: StyleVariantSupport<V>,
    V: Copy,
    'a: 's, 
[src]

fork with attached style variant verbs

pub fn inter_border<'s, V>(&'s mut self) -> RenderLink<'s, E> where
    'a: 's, 
[src]

Deprecated:

Unstable

pub fn color(&self) -> ESColor<E>[src]

get the current color defined by the style variant

pub fn render_widget(&mut self, w: Link<E>) -> bool[src]

pub fn _render_widget(
    &mut self,
    w: Link<E>,
    pre: impl FnOnce(&mut ESVariant<E>, &mut Border),
    post: impl FnOnce(&mut ESVariant<E>, &mut Border)
) -> bool
[src]

pub fn render_widgets<'b>(
    &mut self,
    i: impl Iterator<Item = E::WidgetPath> + 'b,
    c: CtxRef<E>,
    overlap: bool
)
[src]

Deprecated

impl<'a, E> RenderLink<'a, E> where
    E: Env,
    ERenderer<E>: RenderStdWidgets<E>, 
[src]

pub fn fill_rect(&mut self)[src]

pub fn border_rect(&mut self, thickness: u32)[src]

pub fn render_text(&mut self, text: &str, c: &mut E::Context)[src]

Deprecated:

avoid this because stuff is not cached

pub fn render_preprocessed_text(
    &mut self,
    text: &ESPPText<E>,
    c: &mut E::Context
)
[src]

pub fn set_cursor(&mut self, cursor: ESCursor<E>)[src]

pub fn draw_text_button(&mut self, pressed: bool, caption: &str)[src]

pub fn draw_selected(&mut self)[src]

Auto Trait Implementations

impl<'a, E> RefUnwindSafe for RenderLink<'a, E> where
    <E as Env>::Backend: Backend<E>,
    <<E as Env>::Backend as Backend<E>>::Renderer: RefUnwindSafe,
    <<E as Env>::Backend as Backend<E>>::Style: RefUnwindSafe,
    <<<E as Env>::Backend as Backend<E>>::Style as Style<E>>::Variant: RefUnwindSafe

impl<'a, E> Send for RenderLink<'a, E> where
    <E as Env>::Backend: Backend<E>,
    <<E as Env>::Backend as Backend<E>>::Renderer: Send,
    <<E as Env>::Backend as Backend<E>>::Style: Send,
    <<<E as Env>::Backend as Backend<E>>::Style as Style<E>>::Variant: Send

impl<'a, E> Sync for RenderLink<'a, E> where
    <E as Env>::Backend: Backend<E>,
    <<E as Env>::Backend as Backend<E>>::Renderer: Sync,
    <<E as Env>::Backend as Backend<E>>::Style: Sync,
    <<<E as Env>::Backend as Backend<E>>::Style as Style<E>>::Variant: Sync

impl<'a, E> Unpin for RenderLink<'a, E> where
    <E as Env>::Backend: Backend<E>,
    <<E as Env>::Backend as Backend<E>>::Style: Unpin,
    <<<E as Env>::Backend as Backend<E>>::Style as Style<E>>::Variant: Unpin

impl<'a, E> !UnwindSafe for RenderLink<'a, E>

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.