pub struct WebViewStyleConfig {
pub state: Signal<WebViewVisualState>,
pub focused: Signal<bool>,
pub content: WidgetId,
}Expand description
Inputs handed to a WebViewStyle to build the web view’s overlay chrome.
Fields§
§state: Signal<WebViewVisualState>Reactive lifecycle state — bind overlay surface/border/opacity to it.
focused: Signal<bool>Whether the Teksilo-side frame holds keyboard focus. The web view paints no content of its own — the page is the engine’s native subview — so the focus ring drawn from this is the only thing telling a keyboard user that Tab landed here and Enter will enter the page. Draw it.
content: WidgetIdPre-built overlay content (e.g. a spinner + status label) the chrome centers. The native engine surface is composited by the OS on top of this; the overlay is what shows through before/around the page.
Trait Implementations§
Source§impl Clone for WebViewStyleConfig
impl Clone for WebViewStyleConfig
Source§fn clone(&self) -> WebViewStyleConfig
fn clone(&self) -> WebViewStyleConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for WebViewStyleConfig
impl !Send for WebViewStyleConfig
impl !Sync for WebViewStyleConfig
impl !UnwindSafe for WebViewStyleConfig
impl Freeze for WebViewStyleConfig
impl Unpin for WebViewStyleConfig
impl UnsafeUnpin for WebViewStyleConfig
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