pub struct LayoutCtx<'frame, 'bp> {
pub states: &'frame mut States,
pub attribute_storage: &'frame mut AttributeStorage<'bp>,
pub components: &'frame mut Components,
pub glyph_map: &'frame mut GlyphMap,
pub viewport: &'frame mut Viewport,
pub floating_widgets: &'frame mut FloatingWidgets,
pub component_registry: &'frame mut ComponentRegistry,
pub new_components: Vec<(WidgetId, StateId)>,
pub stop_runtime: bool,
/* private fields */
}Fields§
§states: &'frame mut States§attribute_storage: &'frame mut AttributeStorage<'bp>§components: &'frame mut Components§glyph_map: &'frame mut GlyphMap§viewport: &'frame mut Viewport§floating_widgets: &'frame mut FloatingWidgets§component_registry: &'frame mut ComponentRegistry§new_components: Vec<(WidgetId, StateId)>§stop_runtime: boolImplementations§
Source§impl<'frame, 'bp> LayoutCtx<'frame, 'bp>
impl<'frame, 'bp> LayoutCtx<'frame, 'bp>
pub fn new( globals: &'bp Globals, factory: &'frame Factory, states: &'frame mut States, attribute_storage: &'frame mut AttributeStorage<'bp>, components: &'frame mut Components, component_registry: &'frame mut ComponentRegistry, floating_widgets: &'frame mut FloatingWidgets, glyph_map: &'frame mut GlyphMap, viewport: &'frame mut Viewport, ) -> Self
pub fn attributes(&self, node_id: WidgetId) -> &Attributes<'bp>
pub fn eval_ctx( &mut self, parent_component: Option<WidgetId>, ) -> EvalCtx<'_, 'bp>
Auto Trait Implementations§
impl<'frame, 'bp> Freeze for LayoutCtx<'frame, 'bp>
impl<'frame, 'bp> !RefUnwindSafe for LayoutCtx<'frame, 'bp>
impl<'frame, 'bp> !Send for LayoutCtx<'frame, 'bp>
impl<'frame, 'bp> !Sync for LayoutCtx<'frame, 'bp>
impl<'frame, 'bp> Unpin for LayoutCtx<'frame, 'bp>
impl<'frame, 'bp> !UnwindSafe for LayoutCtx<'frame, 'bp>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more