Struct zng_wgt_text::SelectionToolbarMix
source · 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 mix-in.
source§impl<P: WidgetImpl> SelectionToolbarMix<P>
impl<P: WidgetImpl> SelectionToolbarMix<P>
sourcepub fn selection_toolbar(&self, toolbar: impl UiNode)
pub fn selection_toolbar(&self, toolbar: impl UiNode)
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