[−][src]Struct pushrod::render::layout_cache::LayoutCache
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
impl !RefUnwindSafe for LayoutCache
impl !Send for LayoutCache
impl !Sync for LayoutCache
impl Unpin for LayoutCache
impl !UnwindSafe for LayoutCache
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>,