Struct lambda::runtimes::application::ApplicationRuntimeBuilder
source · pub struct ApplicationRuntimeBuilder { /* private fields */ }
Implementations§
source§impl ApplicationRuntimeBuilder
impl ApplicationRuntimeBuilder
pub fn new(app_name: &str) -> Self
sourcepub fn with_app_name(self, name: &str) -> Self
pub fn with_app_name(self, name: &str) -> Self
Update the name of the LambdaKernel.
sourcepub fn with_renderer_configured_as(
self,
configuration: impl FnOnce(RenderContextBuilder) -> RenderContextBuilder
) -> Self
pub fn with_renderer_configured_as(
self,
configuration: impl FnOnce(RenderContextBuilder) -> RenderContextBuilder
) -> Self
Configures the RenderAPIBuilder
before the RenderContext
is built
using a callback provided by the user. The renderer in it’s default
state will be good enough for most applications, but if you need to
customize the renderer you can do so here.
sourcepub fn with_window_configured_as(
self,
configuration: impl FnOnce(WindowBuilder) -> WindowBuilder
) -> Self
pub fn with_window_configured_as(
self,
configuration: impl FnOnce(WindowBuilder) -> WindowBuilder
) -> Self
Configures the WindowBuilder before the Window is built using a callback provided by the user. If you need to customize the window you can do so here.
sourcepub fn with_component<T: Default + Component + 'static>(
self,
configure_component: impl FnOnce(Self, T) -> (Self, T)
) -> Self
pub fn with_component<T: Default + Component + 'static>(
self,
configure_component: impl FnOnce(Self, T) -> (Self, T)
) -> Self
Attach a component to the current runnable.
sourcepub fn build(self) -> ApplicationRuntime
pub fn build(self) -> ApplicationRuntime
Builds an ApplicationRuntime
equipped with windowing, an event loop, and a
component stack that allows components to be dynamically pushed into the
Kernel to receive events & render access.