[−][src]Struct guion::render::link::RenderLink
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]
E: Env,
pub fn new(
r: &'a mut ERenderer<E>,
b: Bounds,
v: ESVariant<E>,
s: EStyle<E>,
force: bool
) -> Self
[src]
r: &'a mut ERenderer<E>,
b: Bounds,
v: ESVariant<E>,
s: EStyle<E>,
force: bool
) -> Self
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]
'l: 's,
pub fn with_force<'s>(&'s mut self, force: bool) -> RenderLink<'s, E> where
'a: 's,
[src]
'a: 's,
fork with force set
pub fn enforced<'s>(&'s mut self) -> RenderLink<'s, E> where
'a: 's,
[src]
'a: 's,
fork with force set to true
pub fn inside_border<'s>(&'s mut self, s: &'s Border) -> RenderLink<'s, E> where
'a: 's,
[src]
'a: 's,
fork with area inside the border
pub fn slice<'s>(&'s mut self, s: &'s Bounds) -> RenderLink<'s, E> where
'a: 's,
[src]
'a: 's,
fork with area inside the bounds
pub fn slice_abs<'s>(&'s mut self, s: &'s Bounds) -> RenderLink<'s, E> where
'a: 's,
[src]
'a: 's,
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]
&'s mut self,
verbs: impl IntoIterator<Item = impl Deref<Target = V>>
) -> RenderLink<'s, E> where
ESVariant<E>: StyleVariantSupport<V>,
V: Copy,
'a: 's,
fork with attached style variant verbs
pub fn inter_border<'s, V>(&'s mut self) -> RenderLink<'s, E> where
'a: 's,
[src]
'a: 's,
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]
&mut self,
w: Link<E>,
pre: impl FnOnce(&mut ESVariant<E>, &mut Border),
post: impl FnOnce(&mut ESVariant<E>, &mut Border)
) -> bool
pub fn render_widgets<'b>(
&mut self,
i: impl Iterator<Item = E::WidgetPath> + 'b,
c: CtxRef<E>,
overlap: bool
)
[src]
&mut self,
i: impl Iterator<Item = E::WidgetPath> + 'b,
c: CtxRef<E>,
overlap: bool
)
Deprecated
impl<'a, E> RenderLink<'a, E> where
E: Env,
ERenderer<E>: RenderStdWidgets<E>,
[src]
E: Env,
ERenderer<E>: RenderStdWidgets<E>,
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]
&mut self,
text: &ESPPText<E>,
c: &mut E::Context
)
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,
<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,
<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,
<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,
<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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,