Struct gooey::core::AppContext [−][src]
pub struct AppContext { /* fields omitted */ }
Expand description
A context used during initialization of a window or application.
Implementations
pub fn new(
stylesheet: StyleSheet,
initial_language: LanguageIdentifier,
localizer: Arc<dyn Localizer + 'static>
) -> AppContext
pub fn new(
stylesheet: StyleSheet,
initial_language: LanguageIdentifier,
localizer: Arc<dyn Localizer + 'static>
) -> AppContext
Returns a new context with the language and localizer provided.
Localizes key
with parameters
.
Returns the stylesheet for the application.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for AppContext
impl Send for AppContext
impl Sync for AppContext
impl Unpin for AppContext
impl !UnwindSafe for AppContext
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