pub struct SelectionToolbarMix<P>(/* private fields */);Expand description
m Selection toolbar properties.
Implementations§
Source§impl SelectionToolbarMix<()>
impl SelectionToolbarMix<()>
Sourcepub fn context_vars_set(set: &mut ContextValueSet)
pub fn context_vars_set(set: &mut ContextValueSet)
Insert context variables used by properties in this mixin.
Source§impl<P: WidgetImpl> SelectionToolbarMix<P>
impl<P: WidgetImpl> SelectionToolbarMix<P>
Sourcepub fn selection_toolbar(&self, toolbar: impl IntoUiNode)
pub fn selection_toolbar(&self, toolbar: impl IntoUiNode)
P Defines the floating mini-toolbar that shows near a new text selection.
The toolbar is used
Source§impl<P: WidgetImpl> SelectionToolbarMix<P>
impl<P: WidgetImpl> SelectionToolbarMix<P>
Sourcepub fn selection_toolbar_fn(
&self,
toolbar: impl IntoVar<WidgetFn<SelectionToolbarArgs>>,
)
pub fn selection_toolbar_fn( &self, toolbar: impl IntoVar<WidgetFn<SelectionToolbarArgs>>, )
P Defines the floating mini-toolbar that shows near a new text selection.
Sets the SELECTION_TOOLBAR_FN_VAR.
Source§impl<P: WidgetImpl> SelectionToolbarMix<P>
impl<P: WidgetImpl> SelectionToolbarMix<P>
Sourcepub fn selection_toolbar_anchor(&self, offset: impl IntoVar<AnchorOffset>)
pub fn selection_toolbar_anchor(&self, offset: impl IntoVar<AnchorOffset>)
P Position the selection toolbar in relation to the bounding box of all selection rectangles.
See selection_toolbar_fn.
Sets the SELECTION_TOOLBAR_ANCHOR_VAR.
Trait Implementations§
Source§impl<P> Deref for SelectionToolbarMix<P>
impl<P> Deref for SelectionToolbarMix<P>
Auto Trait Implementations§
impl<P> Freeze for SelectionToolbarMix<P>where
P: Freeze,
impl<P> RefUnwindSafe for SelectionToolbarMix<P>where
P: RefUnwindSafe,
impl<P> Send for SelectionToolbarMix<P>where
P: Send,
impl<P> Sync for SelectionToolbarMix<P>where
P: Sync,
impl<P> Unpin for SelectionToolbarMix<P>where
P: Unpin,
impl<P> UnwindSafe for SelectionToolbarMix<P>where
P: 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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