Struct masonry::render_root::RenderRoot
source · pub struct RenderRoot { /* private fields */ }
Implementations§
source§impl RenderRoot
impl RenderRoot
pub fn new( root_widget: impl Widget, size_policy: WindowSizePolicy, scale_factor: f64 ) -> Self
pub fn handle_window_event(&mut self, event: WindowEvent) -> Handled
pub fn handle_pointer_event(&mut self, event: PointerEvent) -> Handled
pub fn handle_text_event(&mut self, event: TextEvent) -> Handled
pub fn redraw(&mut self) -> (Scene, TreeUpdate)
pub fn pop_signal(&mut self) -> Option<RenderRootSignal>
pub fn pop_signal_matching( &mut self, predicate: impl Fn(&RenderRootSignal) -> bool ) -> Option<RenderRootSignal>
pub fn cursor_icon(&self) -> CursorIcon
pub fn edit_root_widget<R>( &mut self, f: impl FnOnce(WidgetMut<'_, Box<dyn Widget>>) -> R ) -> R
pub fn root_on_access_event(&mut self, event: ActionRequest)
Auto Trait Implementations§
impl !Freeze for RenderRoot
impl !RefUnwindSafe for RenderRoot
impl !Send for RenderRoot
impl !Sync for RenderRoot
impl Unpin for RenderRoot
impl !UnwindSafe for RenderRoot
Blanket Implementations§
source§impl<T> AsAny for Twhere
T: Any,
impl<T> AsAny for Twhere
T: Any,
source§fn as_dyn_any(&self) -> &(dyn Any + 'static)
fn as_dyn_any(&self) -> &(dyn Any + 'static)
Return self.
source§fn as_mut_dyn_any(&mut self) -> &mut (dyn Any + 'static)
fn as_mut_dyn_any(&mut self) -> &mut (dyn Any + 'static)
Return self.
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