Struct guion::render::link::RenderLink [−][src]
Reference-compound of renderer, current bounds and style
Fields
r: &'a mut ERenderer<E>
force: bool
Whether rendering is enforced (e.g. if invalidation from outside occurred)
Implementations
impl<'a, E> RenderLink<'a, E> where
E: Env,
[src]
E: Env,
pub fn new(
r: &'a mut ERenderer<E>,
bounds: Bounds,
viewport: Bounds,
style: EStyle<E>,
selector: ESSelector<E>,
force: bool
) -> Self
[src]
r: &'a mut ERenderer<E>,
bounds: Bounds,
viewport: Bounds,
style: EStyle<E>,
selector: ESSelector<E>,
force: bool
) -> Self
pub fn simple(r: &'a mut ERenderer<E>, dim: (u32, u32), c: &E::Context) -> Self
[src]
pub fn bounds(&self) -> &Bounds
[src]
pub fn viewport(&self) -> &Bounds
[src]
pub fn style(&self) -> &EStyle<E>
[src]
pub fn selector(&self) -> &ESSelector<E>
[src]
pub fn force(&self) -> bool
[src]
pub fn with_force(&mut self, force: bool) -> RenderLink<'_, E>
[src]
Fork with force set
pub fn enforced(&mut self) -> RenderLink<'_, E>
[src]
Fork with force set to true
pub fn inside_border_specific(&mut self, s: &Border) -> RenderLink<'_, E>
[src]
Fork with area inside the border
pub fn inside_border(&mut self, c: &mut E::Context) -> RenderLink<'_, E>
[src]
Fork with area inside the border defined by the style
pub fn inside_border_by<S>(
&mut self,
selectags: S,
c: &mut E::Context
) -> RenderLink<'_, E> where
ESSelector<E>: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
[src]
&mut self,
selectags: S,
c: &mut E::Context
) -> RenderLink<'_, E> where
ESSelector<E>: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
Fork with area inside the border defined by the style
Default style border is determined by the attached tags which won’t be present on the forked RenderLink
pub fn inside_border_by_mul<S>(
&mut self,
selectags: S,
multiplier: u32,
c: &mut E::Context
) -> RenderLink<'_, E> where
ESSelector<E>: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
[src]
&mut self,
selectags: S,
multiplier: u32,
c: &mut E::Context
) -> RenderLink<'_, E> where
ESSelector<E>: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
Fork with area inside the border defined by the style
Default style border is determined by the attached tags which won’t be present on the forked RenderLink
pub fn slice(&mut self, s: &Bounds) -> RenderLink<'_, E>
[src]
Fork with area inside the bounds
pub fn slice_abs(&mut self, s: &Bounds) -> RenderLink<'_, E>
[src]
Fork with area inside the bounds
pub fn inner_centered(&mut self, size: Dims) -> RenderLink<'_, E>
[src]
Fork with area inside the bounds
pub fn inner_aligned(
&mut self,
size: Dims,
align: (f32, f32)
) -> RenderLink<'_, E>
[src]
&mut self,
size: Dims,
align: (f32, f32)
) -> RenderLink<'_, E>
Fork with area inside the bounds
pub fn with<S>(&mut self, selectags: S) -> RenderLink<'_, E> where
ESSelector<E>: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
[src]
ESSelector<E>: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
pub fn with_style(&mut self, style: &EStyle<E>) -> RenderLink<'_, E>
[src]
pub fn with_style_selector(
&mut self,
style_selector: &ESSelector<E>
) -> RenderLink<'_, E>
[src]
&mut self,
style_selector: &ESSelector<E>
) -> RenderLink<'_, E>
pub fn with_bounds(&mut self, bounds: Bounds) -> RenderLink<'_, E>
[src]
pub fn with_viewport(&mut self, viewport: Bounds) -> RenderLink<'_, E>
[src]
pub fn render_widget(&mut self, w: Link<'_, E>)
[src]
pub fn fork_with(
&mut self,
bounds: Option<Bounds>,
viewport: Option<Bounds>,
style: Option<EStyle<E>>,
selector: Option<ESSelector<E>>
) -> RenderLink<'_, E>
[src]
&mut self,
bounds: Option<Bounds>,
viewport: Option<Bounds>,
style: Option<EStyle<E>>,
selector: Option<ESSelector<E>>
) -> RenderLink<'_, E>
Trait Implementations
impl<'a, E> Deref for RenderLink<'a, E> where
E: Env,
[src]
E: Env,
type Target = ERenderer<E>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl<'a, E> DerefMut for RenderLink<'a, E> where
E: Env,
[src]
E: Env,
impl<'a, E> Drop for RenderLink<'a, E> where
E: Env,
[src]
E: Env,
Auto Trait Implementations
impl<'a, E> RefUnwindSafe for RenderLink<'a, E> where
<<E as Env>::Backend as Backend<E>>::Renderer: RefUnwindSafe,
<<<E as Env>::Backend as Backend<E>>::Style as Style<E>>::Selector: RefUnwindSafe,
<<E as Env>::Backend as Backend<E>>::Style: RefUnwindSafe,
<<E as Env>::Backend as Backend<E>>::Renderer: RefUnwindSafe,
<<<E as Env>::Backend as Backend<E>>::Style as Style<E>>::Selector: RefUnwindSafe,
<<E as Env>::Backend as Backend<E>>::Style: RefUnwindSafe,
impl<'a, E> Send for RenderLink<'a, E> where
<<E as Env>::Backend as Backend<E>>::Renderer: Send,
<<<E as Env>::Backend as Backend<E>>::Style as Style<E>>::Selector: Send + Sync,
<<E as Env>::Backend as Backend<E>>::Style: Send + Sync,
<<E as Env>::Backend as Backend<E>>::Renderer: Send,
<<<E as Env>::Backend as Backend<E>>::Style as Style<E>>::Selector: Send + Sync,
<<E as Env>::Backend as Backend<E>>::Style: Send + Sync,
impl<'a, E> Sync for RenderLink<'a, E> where
<<E as Env>::Backend as Backend<E>>::Renderer: Sync,
<<<E as Env>::Backend as Backend<E>>::Style as Style<E>>::Selector: Sync,
<<E as Env>::Backend as Backend<E>>::Style: Sync,
<<E as Env>::Backend as Backend<E>>::Renderer: Sync,
<<<E as Env>::Backend as Backend<E>>::Style as Style<E>>::Selector: Sync,
<<E as Env>::Backend as Backend<E>>::Style: Sync,
impl<'a, E> Unpin for RenderLink<'a, E> where
<<<E as Env>::Backend as Backend<E>>::Style as Style<E>>::Selector: Unpin,
<<E as Env>::Backend as Backend<E>>::Style: Unpin,
<<<E as Env>::Backend as Backend<E>>::Style as Style<E>>::Selector: Unpin,
<<E as Env>::Backend as Backend<E>>::Style: 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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> FromInto<U> for T where
T: From<U> + Into<U>,
[src]
T: From<U> + Into<U>,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<'_, S, T, E> StyleSelectorAppend<&'_ S, E> for T where
T: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
[src]
T: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
pub fn append(&mut Self, &S)
[src]
fn with(&self, selectag: S) -> Self where
Self: Sized,
[src]
Self: Sized,
fn from(selectag: S) -> Self where
Self: Sized,
[src]
Self: Sized,
impl<'a, S, T, E> StyleSelectorAppend<&'a [S], E> for T where
T: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
[src]
T: StyleSelectorAppend<S, E>,
S: StyleSelectag<E>,
pub fn append(&mut Self, &[S])
[src]
fn with(&self, selectag: S) -> Self where
Self: Sized,
[src]
Self: Sized,
fn from(selectag: S) -> Self where
Self: Sized,
[src]
Self: Sized,
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.
pub 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>,