Struct gooey::App [−][src]
pub struct App { /* fields omitted */ }
Expand description
A cross-platform application.
Implementations
pub fn new<W: Widget>(
initial_window: WindowBuilder<W>,
transmogrifiers: Transmogrifiers<ActiveFrontend>
) -> Self
pub fn new<W: Widget>(
initial_window: WindowBuilder<W>,
transmogrifiers: Transmogrifiers<ActiveFrontend>
) -> Self
Returns a new application using initializer
to create a root widget and any custom transmogrifiers
.
pub fn from_root<W: Widget, I: FnOnce(&WidgetStorage) -> StyledWidget<W> + 'static>(
initializer: I
) -> Self
pub fn from_root<W: Widget, I: FnOnce(&WidgetStorage) -> StyledWidget<W> + 'static>(
initializer: I
) -> Self
Returns a new application using initializer
to create a root widget with no transmogrifiers.
pub fn with<T: Into<<ActiveFrontend as Frontend>::AnyTransmogrifier>>(
self,
transmogrifier: T
) -> Self
pub fn with<T: Into<<ActiveFrontend as Frontend>::AnyTransmogrifier>>(
self,
transmogrifier: T
) -> Self
Registers a Transmogrifier
. This will
allow T::Widget
to be used in this application.
Registers the transmogrifier for a component with behavior B
.
Registers the transmogrifier for a navigator with behavior B
.
Sets the stylesheet for this application. If not specified,
default_stylesheet()
is used.
Enables localization through the provided localizer.
Sets the initial language for localization. By default, the language is
auto-detected using a combination of
sys-locale
and environment
variables, so this should only be used in situations where you want to
ensure the user is presented a specific language during your
application’s startup.
Returns a headless renderer for this app. Only supported with feature
frontend-kludgine
currently.
Spawns an asynchronous task using the runtime that the App
uses.
Requires feature async
to be enabled.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for App
impl !UnwindSafe for App
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: FloatComponent,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: FloatComponent,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
Mutably borrows from an owned value. Read more
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined
range, otherwise an OutOfBounds
error is returned which contains
the unclamped color. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more