Struct gooey::frontends::browser::WebSys[][src]

pub struct WebSys {
    pub ui: Gooey<WebSys>,
    // some fields omitted
}
Expand description

WebSys is a Frontend implementor that implements Gooey interfaces through web-sys in a web browser.

Fields

ui: Gooey<WebSys>

Implementations

Executes callback with the transmogrifier and transmogrifier state as parameters.

Trait Implementations

Processes commands and events for this widget and transmogrifier.

Returns the TypeId of the underlying Widget.

Initializes default state for a newly created widget.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The generic-free type of the frontend-specific transmogrifier trait.

The context type provided to aide in transmogrifying.

Returns the underlying Gooey instance.

Notifies the frontend that a widget has messages. Frontends should ensure that process_widget_messages is called at some point after this method is called. Read more

Returns the current system theme.

Loads an image asynchronously, executing completed when loaded.

Returns the asset configuration.

Schedules a timer that invokes callback after duration, and repeats if repeating is true.

Returns the window for this interface, if present.

Opens a window. Returns false if unable to open the window.

Returns the State for the widget. Not all frontends track UI state, and this function is primarily used when building frontends. Read more

Returns the full Url for the asset, if available.

Executed when Gooey exits a managed code block.

A widget is being initialized.

Localizes key with parameters.

The type the storage this transmogrifier uses for state.

The type of the widget being transmogrified.

Called after a transmogrifier is initialized.

Called when a command is received from the widget.

Processes commands and events for this widget and transmogrifier.

Returns an initialized state using Self::State::default().

Returns the TypeId of Self::Widget.

The type the storage this transmogrifier uses for state.

The type of the widget being transmogrified.

Called when a command is received from the widget.

Called after a transmogrifier is initialized.

Processes commands and events for this widget and transmogrifier.

Returns an initialized state using Self::State::default().

Returns the TypeId of Self::Widget.

The type the storage this transmogrifier uses for state.

The type of the widget being transmogrified.

Called after a transmogrifier is initialized.

Called when a command is received from the widget.

Processes commands and events for this widget and transmogrifier.

Returns an initialized state using Self::State::default().

Returns the TypeId of Self::Widget.

The type the storage this transmogrifier uses for state.

The type of the widget being transmogrified.

Called when a command is received from the widget.

Called after a transmogrifier is initialized.

Processes commands and events for this widget and transmogrifier.

Returns an initialized state using Self::State::default().

Returns the TypeId of Self::Widget.

The type the storage this transmogrifier uses for state.

The type of the widget being transmogrified.

Called when a command is received from the widget.

Called after a transmogrifier is initialized.

Processes commands and events for this widget and transmogrifier.

Returns an initialized state using Self::State::default().

Returns the TypeId of Self::Widget.

The type the storage this transmogrifier uses for state.

The type of the widget being transmogrified.

Called when a command is received from the widget.

Called after a transmogrifier is initialized.

Processes commands and events for this widget and transmogrifier.

Returns an initialized state using Self::State::default().

Returns the TypeId of Self::Widget.

The type the storage this transmogrifier uses for state.

The type of the widget being transmogrified.

Called when a command is received from the widget.

Called after a transmogrifier is initialized.

Processes commands and events for this widget and transmogrifier.

Returns an initialized state using Self::State::default().

Returns the TypeId of Self::Widget.

The type the storage this transmogrifier uses for state.

The type of the widget being transmogrified.

Called when a command is received from the widget.

Called after a transmogrifier is initialized.

Processes commands and events for this widget and transmogrifier.

Returns an initialized state using Self::State::default().

Returns the TypeId of Self::Widget.

Sets the window title.

Returns the size of the content area of the window.

Attempts to resize the window to new_size. This may not work on all platforms.

Sets the outer position of the window. This may not work on all platforms.

Returns the position of the top-left of the content area in screen coordinates.

Sets whether the window should always be on top of other windows.

Returns true if the window is maximized.

Sets whether the window should be maximized.

Sets whether the window should be minimized.

Closes the window.

Returns the position on the screen of the window’s top-left corner. On platforms where this is unsupported, innner_position() is returned. Read more

Auto Trait Implementations

Blanket Implementations

Convert the source color to the destination color using the specified method Read more

Convert the source color to the destination color using the bradford method by default Read more

Gets the TypeId of self. Read more

Clones the frontend, returning the clone in a box.

Returns the widget storage.

Notifies the frontend that a widget has messages. Frontends should ensure that process_widget_messages is called at some point after this method is called. Read more

Marks that managed code is being executed. Can be nested. Automatically exited when the returned guard is dropped.

Returns the current system theme.

Loads an image asynchronously, executing completed when loaded.

Returns the full Url for the asset, if available.

Schedules a timer that invokes callback after duration, and repeats if repeating is true.

Localizes key with parameters.

Returns the window for this frontend instance.

Opens a window. Returns false if unable to open the window.

Returns the current application context.

Returns the underlying type as Any.

Returns the underlying type as Any.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

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

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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

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