Skip to content

Tooltip

Shows passive help after an exact core-owned delay and supports provider-level warm-up behavior.

Loading interactive demo…

#Import

Import Tooltip from quickgui.

use quickgui::*;

#Usage

let tooltip = Tooltip::new("hint");
tooltip.trigger().child("Save")

#Anatomy

  • Tooltip::provider_part
  • Tooltip::root
  • Tooltip::trigger
  • Tooltip::portal
  • Tooltip::positioner
  • Tooltip::popup
  • Tooltip::arrow

#API reference

Expand an entry for its description and complete signature. A dash means no declaration default is documented.

pub fn new(content: impl IntoElement) -> Self

Create a tooltip from an arbitrary GPU element tree.

textpub fn text(label: impl Into<Arc<str>>) -> Self—

Create a compact native-style text tooltip.

pub fn text(label: impl Into<Arc<str>>) -> Self
View source
placementpub fn placement(mut self, placement: AnchorPlacement) -> Self—

Configures placement for this part.

pub fn placement(mut self, placement: AnchorPlacement) -> Self
View source
delaypub fn delay(mut self, delay: Duration) -> Self—

Configures delay for this part.

pub fn delay(mut self, delay: Duration) -> Self
View source
gappub fn gap(mut self, gap: f32) -> Self—

Configures gap for this part.

pub fn gap(mut self, gap: f32) -> Self
View source
viewport_marginpub fn viewport_margin(mut self, margin: f32) -> Self—

Configures viewport margin for this part.

pub fn viewport_margin(mut self, margin: f32) -> Self
View source
accessibility_descriptionpub fn accessibility_description(mut self, description: impl Into<Arc<str>>) -> Self—

Text exposed as the trigger's native accessibility description while the visual tooltip stays transient.

pub fn accessibility_description(mut self, description: impl Into<Arc<str>>) -> Self
View source