pub struct TooltipProviderBuilder { /* private fields */ }Expand description
Configuration handle returned by tooltip_provider.
Implementations§
Source§impl TooltipProviderBuilder
impl TooltipProviderBuilder
Sourcepub fn variant(&self, value: TooltipVariant) -> Self
pub fn variant(&self, value: TooltipVariant) -> Self
Configure variant before this component executes.
Sourcepub fn variant_optional(&self, value: Option<TooltipVariant>) -> Self
pub fn variant_optional(&self, value: Option<TooltipVariant>) -> Self
Configure variant before this component executes.
Sourcepub fn headline(&self, value: impl Into<String>) -> Self
pub fn headline(&self, value: impl Into<String>) -> Self
Configure headline before this component executes.
Sourcepub fn headline_optional(&self, value: Option<String>) -> Self
pub fn headline_optional(&self, value: Option<String>) -> Self
Configure headline before this component executes.
Sourcepub fn action_label(&self, value: impl Into<String>) -> Self
pub fn action_label(&self, value: impl Into<String>) -> Self
Configure action_label before this component executes.
Sourcepub fn action_label_optional(&self, value: Option<String>) -> Self
pub fn action_label_optional(&self, value: Option<String>) -> Self
Configure action_label before this component executes.
Sourcepub fn on_action<F>(&self, value: F) -> Self
pub fn on_action<F>(&self, value: F) -> Self
Configure on_action before this component executes.
Configure on_action before this component executes.
Sourcepub fn on_action_optional(&self, value: Option<Callback>) -> Self
pub fn on_action_optional(&self, value: Option<Callback>) -> Self
Configure on_action before this component executes.
Sourcepub fn actions<F, Output>(&self, value: F) -> Self
pub fn actions<F, Output>(&self, value: F) -> Self
Configure actions before this component executes.
Configure actions before this component executes.
Sourcepub fn actions_optional(&self, value: Option<RenderSlot>) -> Self
pub fn actions_optional(&self, value: Option<RenderSlot>) -> Self
Configure actions before this component executes.
Sourcepub fn controller(&self, value: State<TooltipController>) -> Self
pub fn controller(&self, value: State<TooltipController>) -> Self
Configure controller before this component executes.
Sourcepub fn controller_optional(
&self,
value: Option<State<TooltipController>>,
) -> Self
pub fn controller_optional( &self, value: Option<State<TooltipController>>, ) -> Self
Configure controller before this component executes.
Sourcepub fn group(&self, value: State<Option<State<TooltipController>>>) -> Self
pub fn group(&self, value: State<Option<State<TooltipController>>>) -> Self
Configure group before this component executes.
Sourcepub fn group_optional(
&self,
value: Option<State<Option<State<TooltipController>>>>,
) -> Self
pub fn group_optional( &self, value: Option<State<Option<State<TooltipController>>>>, ) -> Self
Configure group before this component executes.
Sourcepub fn placement(&self, value: TooltipPlacement) -> Self
pub fn placement(&self, value: TooltipPlacement) -> Self
Configure placement before this component executes.
Sourcepub fn placement_optional(&self, value: Option<TooltipPlacement>) -> Self
pub fn placement_optional(&self, value: Option<TooltipPlacement>) -> Self
Configure placement before this component executes.
Sourcepub fn persistent(&self, value: bool) -> Self
pub fn persistent(&self, value: bool) -> Self
Configure persistent before this component executes.
Sourcepub fn persistent_optional(&self, value: Option<bool>) -> Self
pub fn persistent_optional(&self, value: Option<bool>) -> Self
Configure persistent before this component executes.
Sourcepub fn modifier(&self, value: Modifier) -> Self
pub fn modifier(&self, value: Modifier) -> Self
Configure modifier before this component executes.
Sourcepub fn modifier_optional(&self, value: Option<Modifier>) -> Self
pub fn modifier_optional(&self, value: Option<Modifier>) -> Self
Configure modifier before this component executes.
Sourcepub fn popup_modifier(&self, value: Modifier) -> Self
pub fn popup_modifier(&self, value: Modifier) -> Self
Configure popup_modifier before this component executes.
Sourcepub fn popup_modifier_optional(&self, value: Option<Modifier>) -> Self
pub fn popup_modifier_optional(&self, value: Option<Modifier>) -> Self
Configure popup_modifier before this component executes.
Sourcepub fn child<F, Output>(&self, value: F) -> Self
pub fn child<F, Output>(&self, value: F) -> Self
Configure child before this component executes.
Configure child before this component executes.
Sourcepub fn child_optional(
&self,
value: Option<RenderSlotWith<State<TooltipController>>>,
) -> Self
pub fn child_optional( &self, value: Option<RenderSlotWith<State<TooltipController>>>, ) -> Self
Configure child before this component executes.
Auto Trait Implementations§
impl Freeze for TooltipProviderBuilder
impl RefUnwindSafe for TooltipProviderBuilder
impl Send for TooltipProviderBuilder
impl Sync for TooltipProviderBuilder
impl Unpin for TooltipProviderBuilder
impl UnsafeUnpin for TooltipProviderBuilder
impl UnwindSafe for TooltipProviderBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.