[][src]Struct pushrod::render::layout_cache::LayoutCache

pub struct LayoutCache { /* fields omitted */ }

This is a container object that stores a Vec of LayoutContainer objects for its cache.

Methods

impl LayoutCache[src]

This is the implementation of the LayoutCache.

pub fn new() -> Self[src]

pub fn add_layout(&mut self, layout: Box<dyn Layout>) -> i32[src]

Adds a Box<Layout> to the Layout stack.

pub fn get_layout_by_id(&mut self, id: i32) -> &mut LayoutContainer[src]

Retrieves a &mut LayoutContainer object by its ID.

pub fn get_layout_cache(&self) -> &[LayoutContainer][src]

Retrieves a borrowed slice of the LayoutContainer cache that can be sent to callbacks.

pub fn do_layout(&self, widgets: &[WidgetContainer])[src]

Performs the do_layout call on Layout objects only if their needs_layout flag is set to true.

Trait Implementations

impl Default for LayoutCache[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, 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.