pub struct Sandbox<M: 'static + Component> {
pub ui: Ui<M>,
/* private fields */
}Expand description
Sandbox for quick prototyping of pixel widgets applications
Fields§
§ui: Ui<M>The Ui being used in the sandbox
Implementations§
Source§impl<T> Sandbox<T>where
T: 'static + Component,
impl<T> Sandbox<T>where
T: 'static + Component,
Sourcepub async fn new<S, E>(
root_component: T,
style: S,
window: WindowBuilder,
) -> Result<Self>
pub async fn new<S, E>( root_component: T, style: S, window: WindowBuilder, ) -> Result<Self>
Construct a new Sandbox with a root component, style and window builder.
The Sandbox will finish building the window and setup the graphics.
To start the main event loop, call run() on the result.
Auto Trait Implementations§
impl<M> !Freeze for Sandbox<M>
impl<M> !RefUnwindSafe for Sandbox<M>
impl<M> !Send for Sandbox<M>
impl<M> !Sync for Sandbox<M>
impl<M> Unpin for Sandbox<M>
impl<M> !UnwindSafe for Sandbox<M>
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