pub struct LazyView<T> {
pub id: ViewId,
pub content: T,
}Expand description
A wrapper type for lazy view construction.
LazyView<T> wraps a value that will eventually be converted into a View,
but creates its ViewId eagerly. This allows decorators to be applied
before the actual view is constructed.
§Example
use floem::views::*;
use floem::{IntoView, LazyView};
// The ViewId is created when LazyView is constructed,
// but the Label is only created when into_view() is called
let lazy = LazyView::new("Hello");
let view = lazy.style(|s| s.padding(10.0)).into_view();Fields§
§id: ViewIdThe ViewId created eagerly for this lazy view.
content: TThe content that will be converted into a view.
Implementations§
Trait Implementations§
Source§impl IntoView for LazyView<&str>
impl IntoView for LazyView<&str>
Source§type Intermediate = LazyView<&str>
type Intermediate = LazyView<&str>
Source§fn into_intermediate(self) -> Self::Intermediate
fn into_intermediate(self) -> Self::Intermediate
Source§impl IntoView for LazyView<()>
impl IntoView for LazyView<()>
Source§type Intermediate = LazyView<()>
type Intermediate = LazyView<()>
Source§fn into_intermediate(self) -> Self::Intermediate
fn into_intermediate(self) -> Self::Intermediate
Source§impl<A: IntoView + 'static> IntoView for LazyView<(A,)>
impl<A: IntoView + 'static> IntoView for LazyView<(A,)>
Source§type Intermediate = LazyView<(A,)>
type Intermediate = LazyView<(A,)>
Source§fn into_intermediate(self) -> Self::Intermediate
fn into_intermediate(self) -> Self::Intermediate
Source§impl<A: IntoView + 'static, B: IntoView + 'static> IntoView for LazyView<(A, B)>
impl<A: IntoView + 'static, B: IntoView + 'static> IntoView for LazyView<(A, B)>
Source§type Intermediate = LazyView<(A, B)>
type Intermediate = LazyView<(A, B)>
Source§fn into_intermediate(self) -> Self::Intermediate
fn into_intermediate(self) -> Self::Intermediate
Source§impl<A: IntoView + 'static, B: IntoView + 'static, C: IntoView + 'static> IntoView for LazyView<(A, B, C)>
impl<A: IntoView + 'static, B: IntoView + 'static, C: IntoView + 'static> IntoView for LazyView<(A, B, C)>
Source§type Intermediate = LazyView<(A, B, C)>
type Intermediate = LazyView<(A, B, C)>
Source§fn into_intermediate(self) -> Self::Intermediate
fn into_intermediate(self) -> Self::Intermediate
Source§impl<A: IntoView + 'static, B: IntoView + 'static, C: IntoView + 'static, D: IntoView + 'static> IntoView for LazyView<(A, B, C, D)>
impl<A: IntoView + 'static, B: IntoView + 'static, C: IntoView + 'static, D: IntoView + 'static> IntoView for LazyView<(A, B, C, D)>
Source§type Intermediate = LazyView<(A, B, C, D)>
type Intermediate = LazyView<(A, B, C, D)>
Source§fn into_intermediate(self) -> Self::Intermediate
fn into_intermediate(self) -> Self::Intermediate
Source§impl<A: IntoView + 'static, B: IntoView + 'static, C: IntoView + 'static, D: IntoView + 'static, E: IntoView + 'static> IntoView for LazyView<(A, B, C, D, E)>
impl<A: IntoView + 'static, B: IntoView + 'static, C: IntoView + 'static, D: IntoView + 'static, E: IntoView + 'static> IntoView for LazyView<(A, B, C, D, E)>
Source§fn into_intermediate(self) -> Self::Intermediate
fn into_intermediate(self) -> Self::Intermediate
Source§impl<A: IntoView + 'static, B: IntoView + 'static, C: IntoView + 'static, D: IntoView + 'static, E: IntoView + 'static, F: IntoView + 'static> IntoView for LazyView<(A, B, C, D, E, F)>
impl<A: IntoView + 'static, B: IntoView + 'static, C: IntoView + 'static, D: IntoView + 'static, E: IntoView + 'static, F: IntoView + 'static> IntoView for LazyView<(A, B, C, D, E, F)>
Source§fn into_intermediate(self) -> Self::Intermediate
fn into_intermediate(self) -> Self::Intermediate
Source§impl<A: IntoView + 'static, B: IntoView + 'static, C: IntoView + 'static, D: IntoView + 'static, E: IntoView + 'static, F: IntoView + 'static, G: IntoView + 'static> IntoView for LazyView<(A, B, C, D, E, F, G)>
impl<A: IntoView + 'static, B: IntoView + 'static, C: IntoView + 'static, D: IntoView + 'static, E: IntoView + 'static, F: IntoView + 'static, G: IntoView + 'static> IntoView for LazyView<(A, B, C, D, E, F, G)>
Source§fn into_intermediate(self) -> Self::Intermediate
fn into_intermediate(self) -> Self::Intermediate
Source§impl<A: IntoView + 'static, B: IntoView + 'static, C: IntoView + 'static, D: IntoView + 'static, E: IntoView + 'static, F: IntoView + 'static, G: IntoView + 'static, H: IntoView + 'static> IntoView for LazyView<(A, B, C, D, E, F, G, H)>
impl<A: IntoView + 'static, B: IntoView + 'static, C: IntoView + 'static, D: IntoView + 'static, E: IntoView + 'static, F: IntoView + 'static, G: IntoView + 'static, H: IntoView + 'static> IntoView for LazyView<(A, B, C, D, E, F, G, H)>
Source§fn into_intermediate(self) -> Self::Intermediate
fn into_intermediate(self) -> Self::Intermediate
Source§impl<A: IntoView + 'static, B: IntoView + 'static, C: IntoView + 'static, D: IntoView + 'static, E: IntoView + 'static, F: IntoView + 'static, G: IntoView + 'static, H: IntoView + 'static, I: IntoView + 'static> IntoView for LazyView<(A, B, C, D, E, F, G, H, I)>
impl<A: IntoView + 'static, B: IntoView + 'static, C: IntoView + 'static, D: IntoView + 'static, E: IntoView + 'static, F: IntoView + 'static, G: IntoView + 'static, H: IntoView + 'static, I: IntoView + 'static> IntoView for LazyView<(A, B, C, D, E, F, G, H, I)>
Source§fn into_intermediate(self) -> Self::Intermediate
fn into_intermediate(self) -> Self::Intermediate
Source§impl<A: IntoView + 'static, B: IntoView + 'static, C: IntoView + 'static, D: IntoView + 'static, E: IntoView + 'static, F: IntoView + 'static, G: IntoView + 'static, H: IntoView + 'static, I: IntoView + 'static, J: IntoView + 'static> IntoView for LazyView<(A, B, C, D, E, F, G, H, I, J)>
impl<A: IntoView + 'static, B: IntoView + 'static, C: IntoView + 'static, D: IntoView + 'static, E: IntoView + 'static, F: IntoView + 'static, G: IntoView + 'static, H: IntoView + 'static, I: IntoView + 'static, J: IntoView + 'static> IntoView for LazyView<(A, B, C, D, E, F, G, H, I, J)>
Source§fn into_intermediate(self) -> Self::Intermediate
fn into_intermediate(self) -> Self::Intermediate
Source§impl<A: IntoView + 'static, B: IntoView + 'static, C: IntoView + 'static, D: IntoView + 'static, E: IntoView + 'static, F: IntoView + 'static, G: IntoView + 'static, H: IntoView + 'static, I: IntoView + 'static, J: IntoView + 'static, K: IntoView + 'static> IntoView for LazyView<(A, B, C, D, E, F, G, H, I, J, K)>
impl<A: IntoView + 'static, B: IntoView + 'static, C: IntoView + 'static, D: IntoView + 'static, E: IntoView + 'static, F: IntoView + 'static, G: IntoView + 'static, H: IntoView + 'static, I: IntoView + 'static, J: IntoView + 'static, K: IntoView + 'static> IntoView for LazyView<(A, B, C, D, E, F, G, H, I, J, K)>
Source§fn into_intermediate(self) -> Self::Intermediate
fn into_intermediate(self) -> Self::Intermediate
Source§impl<A: IntoView + 'static, B: IntoView + 'static, C: IntoView + 'static, D: IntoView + 'static, E: IntoView + 'static, F: IntoView + 'static, G: IntoView + 'static, H: IntoView + 'static, I: IntoView + 'static, J: IntoView + 'static, K: IntoView + 'static, L: IntoView + 'static> IntoView for LazyView<(A, B, C, D, E, F, G, H, I, J, K, L)>
impl<A: IntoView + 'static, B: IntoView + 'static, C: IntoView + 'static, D: IntoView + 'static, E: IntoView + 'static, F: IntoView + 'static, G: IntoView + 'static, H: IntoView + 'static, I: IntoView + 'static, J: IntoView + 'static, K: IntoView + 'static, L: IntoView + 'static> IntoView for LazyView<(A, B, C, D, E, F, G, H, I, J, K, L)>
Source§fn into_intermediate(self) -> Self::Intermediate
fn into_intermediate(self) -> Self::Intermediate
Source§impl<A: IntoView + 'static, B: IntoView + 'static, C: IntoView + 'static, D: IntoView + 'static, E: IntoView + 'static, F: IntoView + 'static, G: IntoView + 'static, H: IntoView + 'static, I: IntoView + 'static, J: IntoView + 'static, K: IntoView + 'static, L: IntoView + 'static, M: IntoView + 'static> IntoView for LazyView<(A, B, C, D, E, F, G, H, I, J, K, L, M)>
impl<A: IntoView + 'static, B: IntoView + 'static, C: IntoView + 'static, D: IntoView + 'static, E: IntoView + 'static, F: IntoView + 'static, G: IntoView + 'static, H: IntoView + 'static, I: IntoView + 'static, J: IntoView + 'static, K: IntoView + 'static, L: IntoView + 'static, M: IntoView + 'static> IntoView for LazyView<(A, B, C, D, E, F, G, H, I, J, K, L, M)>
Source§fn into_intermediate(self) -> Self::Intermediate
fn into_intermediate(self) -> Self::Intermediate
Source§impl<A: IntoView + 'static, B: IntoView + 'static, C: IntoView + 'static, D: IntoView + 'static, E: IntoView + 'static, F: IntoView + 'static, G: IntoView + 'static, H: IntoView + 'static, I: IntoView + 'static, J: IntoView + 'static, K: IntoView + 'static, L: IntoView + 'static, M: IntoView + 'static, N: IntoView + 'static> IntoView for LazyView<(A, B, C, D, E, F, G, H, I, J, K, L, M, N)>
impl<A: IntoView + 'static, B: IntoView + 'static, C: IntoView + 'static, D: IntoView + 'static, E: IntoView + 'static, F: IntoView + 'static, G: IntoView + 'static, H: IntoView + 'static, I: IntoView + 'static, J: IntoView + 'static, K: IntoView + 'static, L: IntoView + 'static, M: IntoView + 'static, N: IntoView + 'static> IntoView for LazyView<(A, B, C, D, E, F, G, H, I, J, K, L, M, N)>
Source§fn into_intermediate(self) -> Self::Intermediate
fn into_intermediate(self) -> Self::Intermediate
Source§impl<A: IntoView + 'static, B: IntoView + 'static, C: IntoView + 'static, D: IntoView + 'static, E: IntoView + 'static, F: IntoView + 'static, G: IntoView + 'static, H: IntoView + 'static, I: IntoView + 'static, J: IntoView + 'static, K: IntoView + 'static, L: IntoView + 'static, M: IntoView + 'static, N: IntoView + 'static, O: IntoView + 'static> IntoView for LazyView<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)>
impl<A: IntoView + 'static, B: IntoView + 'static, C: IntoView + 'static, D: IntoView + 'static, E: IntoView + 'static, F: IntoView + 'static, G: IntoView + 'static, H: IntoView + 'static, I: IntoView + 'static, J: IntoView + 'static, K: IntoView + 'static, L: IntoView + 'static, M: IntoView + 'static, N: IntoView + 'static, O: IntoView + 'static> IntoView for LazyView<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)>
Source§fn into_intermediate(self) -> Self::Intermediate
fn into_intermediate(self) -> Self::Intermediate
Source§impl<A: IntoView + 'static, B: IntoView + 'static, C: IntoView + 'static, D: IntoView + 'static, E: IntoView + 'static, F: IntoView + 'static, G: IntoView + 'static, H: IntoView + 'static, I: IntoView + 'static, J: IntoView + 'static, K: IntoView + 'static, L: IntoView + 'static, M: IntoView + 'static, N: IntoView + 'static, O: IntoView + 'static, P: IntoView + 'static> IntoView for LazyView<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)>
impl<A: IntoView + 'static, B: IntoView + 'static, C: IntoView + 'static, D: IntoView + 'static, E: IntoView + 'static, F: IntoView + 'static, G: IntoView + 'static, H: IntoView + 'static, I: IntoView + 'static, J: IntoView + 'static, K: IntoView + 'static, L: IntoView + 'static, M: IntoView + 'static, N: IntoView + 'static, O: IntoView + 'static, P: IntoView + 'static> IntoView for LazyView<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)>
Source§fn into_intermediate(self) -> Self::Intermediate
fn into_intermediate(self) -> Self::Intermediate
Source§impl IntoView for LazyView<String>
impl IntoView for LazyView<String>
Source§type Intermediate = LazyView<String>
type Intermediate = LazyView<String>
Source§fn into_intermediate(self) -> Self::Intermediate
fn into_intermediate(self) -> Self::Intermediate
Source§impl<IV: IntoView + 'static> IntoView for LazyView<Vec<IV>>
impl<IV: IntoView + 'static> IntoView for LazyView<Vec<IV>>
Source§type Intermediate = LazyView<Vec<IV>>
type Intermediate = LazyView<Vec<IV>>
Source§fn into_intermediate(self) -> Self::Intermediate
fn into_intermediate(self) -> Self::Intermediate
Source§impl IntoView for LazyView<i32>
impl IntoView for LazyView<i32>
Source§type Intermediate = LazyView<i32>
type Intermediate = LazyView<i32>
Source§fn into_intermediate(self) -> Self::Intermediate
fn into_intermediate(self) -> Self::Intermediate
Source§impl IntoView for LazyView<usize>
impl IntoView for LazyView<usize>
Source§type Intermediate = LazyView<usize>
type Intermediate = LazyView<usize>
Source§fn into_intermediate(self) -> Self::Intermediate
fn into_intermediate(self) -> Self::Intermediate
Auto Trait Implementations§
impl<T> Freeze for LazyView<T>where
T: Freeze,
impl<T> RefUnwindSafe for LazyView<T>where
T: RefUnwindSafe,
impl<T> Send for LazyView<T>where
T: Send,
impl<T> Sync for LazyView<T>where
T: Sync,
impl<T> Unpin for LazyView<T>where
T: Unpin,
impl<T> UnwindSafe for LazyView<T>where
T: UnwindSafe,
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
Source§impl<T> ContainerExt for Twhere
T: IntoView + 'static,
impl<T> ContainerExt for Twhere
T: IntoView + 'static,
Source§impl<T> Decorators for Twhere
T: IntoView,
impl<T> Decorators for Twhere
T: IntoView,
Source§fn style(self, style: impl Fn(Style) -> Style + 'static) -> Self::Intermediate
fn style(self, style: impl Fn(Style) -> Style + 'static) -> Self::Intermediate
Alter the style of the view. Read more
Source§fn debug_name(self, name: impl Into<String>) -> Self::Intermediate
fn debug_name(self, name: impl Into<String>) -> Self::Intermediate
Add a debug name to the view that will be shown in the inspector. Read more
Source§fn debug_name_if<S: Into<String>>(
self,
apply: impl Fn() -> bool + 'static,
name: impl Fn() -> S + 'static,
) -> Self::Intermediate
fn debug_name_if<S: Into<String>>( self, apply: impl Fn() -> bool + 'static, name: impl Fn() -> S + 'static, ) -> Self::Intermediate
Conditionally add a debug name to the view that will be shown in the inspector. Read more
Source§fn dragging_style(
self,
style: impl Fn(Style) -> Style + 'static,
) -> Self::Intermediate
fn dragging_style( self, style: impl Fn(Style) -> Style + 'static, ) -> Self::Intermediate
The visual style to apply when the view is being dragged
Source§fn class<C: StyleClass>(self, _class: C) -> Self::Intermediate
fn class<C: StyleClass>(self, _class: C) -> Self::Intermediate
Add a style class to the view
Source§fn class_if<C: StyleClass>(
self,
apply: impl Fn() -> bool + 'static,
_class: C,
) -> Self::Intermediate
fn class_if<C: StyleClass>( self, apply: impl Fn() -> bool + 'static, _class: C, ) -> Self::Intermediate
Conditionally add a style class to the view
Source§fn remove_class<C: StyleClass>(self, _class: C) -> Self::Intermediate
fn remove_class<C: StyleClass>(self, _class: C) -> Self::Intermediate
Remove a style class from the view
👎Deprecated: Set this property using
Style::focusable insteadAllows the element to be navigated to with the keyboard. Similar to setting tabindex=“0” in html.
Source§fn disable_default_event(
self,
disable: impl Fn() -> (EventListener, bool) + 'static,
) -> Self::Intermediate
fn disable_default_event( self, disable: impl Fn() -> (EventListener, bool) + 'static, ) -> Self::Intermediate
Dynamically controls whether the default view behavior for an event should be disabled.
When disable is true, children will still see the event, but the view event function will not be called nor
the event listeners on the view. Read more
Source§fn draggable(self) -> Self::Intermediate
fn draggable(self) -> Self::Intermediate
👎Deprecated: use
Style::draggable directly insteadMark the view as draggable
Source§fn disabled(
self,
disabled_fn: impl Fn() -> bool + 'static,
) -> Self::Intermediate
fn disabled( self, disabled_fn: impl Fn() -> bool + 'static, ) -> Self::Intermediate
👎Deprecated: use
Style::set_disabled directly insteadMark the view as disabled Read more
Source§fn on_event(
self,
listener: EventListener,
action: impl FnMut(&Event) -> EventPropagation + 'static,
) -> Self::Intermediate
fn on_event( self, listener: EventListener, action: impl FnMut(&Event) -> EventPropagation + 'static, ) -> Self::Intermediate
Add an event handler for the given
EventListener.Source§fn on_key_down(
self,
key: Key,
cmp: impl Fn(Modifiers) -> bool + 'static,
action: impl Fn(&Event) + 'static,
) -> Self::Intermediate
fn on_key_down( self, key: Key, cmp: impl Fn(Modifiers) -> bool + 'static, action: impl Fn(&Event) + 'static, ) -> Self::Intermediate
Add an handler for pressing down a specific key. Read more
Source§fn on_key_up(
self,
key: Key,
cmp: impl Fn(Modifiers) -> bool + 'static,
action: impl Fn(&Event) + 'static,
) -> Self::Intermediate
fn on_key_up( self, key: Key, cmp: impl Fn(Modifiers) -> bool + 'static, action: impl Fn(&Event) + 'static, ) -> Self::Intermediate
Add an handler for a specific key being released. Read more
Source§fn on_event_cont(
self,
listener: EventListener,
action: impl Fn(&Event) + 'static,
) -> Self::Intermediate
fn on_event_cont( self, listener: EventListener, action: impl Fn(&Event) + 'static, ) -> Self::Intermediate
Add an event handler for the given
EventListener. This event will be handled with
the given handler and the event will continue propagating.Source§fn on_event_stop(
self,
listener: EventListener,
action: impl Fn(&Event) + 'static,
) -> Self::Intermediate
fn on_event_stop( self, listener: EventListener, action: impl Fn(&Event) + 'static, ) -> Self::Intermediate
Add an event handler for the given
EventListener. This event will be handled with
the given handler and the event will stop propagating.Source§fn on_click(
self,
action: impl FnMut(&Event) -> EventPropagation + 'static,
) -> Self::Intermediate
fn on_click( self, action: impl FnMut(&Event) -> EventPropagation + 'static, ) -> Self::Intermediate
Add an event handler for
EventListener::Click.Source§fn on_click_cont(self, action: impl Fn(&Event) + 'static) -> Self::Intermediate
fn on_click_cont(self, action: impl Fn(&Event) + 'static) -> Self::Intermediate
Add an event handler for
EventListener::Click. This event will be handled with
the given handler and the event will continue propagating.Source§fn on_click_stop(
self,
action: impl FnMut(&Event) + 'static,
) -> Self::Intermediate
fn on_click_stop( self, action: impl FnMut(&Event) + 'static, ) -> Self::Intermediate
Add an event handler for
EventListener::Click. This event will be handled with
the given handler and the event will stop propagating.Source§fn action(self, action: impl FnMut() + 'static) -> Self::Intermediate
fn action(self, action: impl FnMut() + 'static) -> Self::Intermediate
Attach action executed on button click or Enter or Space Key.
Source§fn on_double_click(
self,
action: impl Fn(&Event) -> EventPropagation + 'static,
) -> Self::Intermediate
fn on_double_click( self, action: impl Fn(&Event) -> EventPropagation + 'static, ) -> Self::Intermediate
Add an event handler for
EventListener::DoubleClickSource§fn on_double_click_cont(
self,
action: impl Fn(&Event) + 'static,
) -> Self::Intermediate
fn on_double_click_cont( self, action: impl Fn(&Event) + 'static, ) -> Self::Intermediate
Add an event handler for
EventListener::DoubleClick. This event will be handled with
the given handler and the event will continue propagating.Source§fn on_double_click_stop(
self,
action: impl Fn(&Event) + 'static,
) -> Self::Intermediate
fn on_double_click_stop( self, action: impl Fn(&Event) + 'static, ) -> Self::Intermediate
Add an event handler for
EventListener::DoubleClick. This event will be handled with
the given handler and the event will stop propagating.Source§fn on_secondary_click(
self,
action: impl Fn(&Event) -> EventPropagation + 'static,
) -> Self::Intermediate
fn on_secondary_click( self, action: impl Fn(&Event) -> EventPropagation + 'static, ) -> Self::Intermediate
Add an event handler for
EventListener::SecondaryClick. This is most often the “Right” click.Source§fn on_secondary_click_cont(
self,
action: impl Fn(&Event) + 'static,
) -> Self::Intermediate
fn on_secondary_click_cont( self, action: impl Fn(&Event) + 'static, ) -> Self::Intermediate
Add an event handler for
EventListener::SecondaryClick. This is most often the “Right” click.
This event will be handled with the given handler and the event will continue propagating.Source§fn on_secondary_click_stop(
self,
action: impl Fn(&Event) + 'static,
) -> Self::Intermediate
fn on_secondary_click_stop( self, action: impl Fn(&Event) + 'static, ) -> Self::Intermediate
Add an event handler for
EventListener::SecondaryClick. This is most often the “Right” click.
This event will be handled with the given handler and the event will stop propagating.Source§fn on_resize(self, action: impl Fn(Rect) + 'static) -> Self::Intermediate
fn on_resize(self, action: impl Fn(Rect) + 'static) -> Self::Intermediate
Adds an event handler for resize events for this view. Read more
Source§fn on_move(self, action: impl Fn(Point) + 'static) -> Self::Intermediate
fn on_move(self, action: impl Fn(Point) + 'static) -> Self::Intermediate
Adds an event handler for move events for this view. Read more
Source§fn on_cleanup(self, action: impl Fn() + 'static) -> Self::Intermediate
fn on_cleanup(self, action: impl Fn() + 'static) -> Self::Intermediate
Adds an event handler for cleanup events for this view. Read more
Source§fn animation(
self,
animation: impl Fn(Animation) -> Animation + 'static,
) -> Self::Intermediate
fn animation( self, animation: impl Fn(Animation) -> Animation + 'static, ) -> Self::Intermediate
Add an animation to the view. Read more
Source§fn clear_focus(self, when: impl Fn() + 'static) -> Self::Intermediate
fn clear_focus(self, when: impl Fn() + 'static) -> Self::Intermediate
Clear the focus from the window. Read more
Source§fn request_focus(self, when: impl Fn() + 'static) -> Self::Intermediate
fn request_focus(self, when: impl Fn() + 'static) -> Self::Intermediate
Request that this view gets the focus for the window. Read more
Source§fn window_scale(
self,
scale_fn: impl Fn() -> f64 + 'static,
) -> Self::Intermediate
fn window_scale( self, scale_fn: impl Fn() -> f64 + 'static, ) -> Self::Intermediate
Set the window scale factor. Read more
Source§fn window_title(
self,
title_fn: impl Fn() -> String + 'static,
) -> Self::Intermediate
fn window_title( self, title_fn: impl Fn() -> String + 'static, ) -> Self::Intermediate
Set the window title. Read more
Set the system window menu Read more
Adds a secondary-click context menu to the view, which opens at the mouse position. Read more
Adds a primary-click context menu, which opens below the view. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more