Tooltip
Shows passive help after an exact core-owned delay and supports provider-level warm-up behavior.
Loading interactive demo…
let tooltip = Tooltip::new("hint");
tooltip.trigger().child("Save")#Import
Import Tooltip from quickgui.
use quickgui::*;#Usage
let tooltip = Tooltip::new("hint");
tooltip.trigger().child("Save")#Anatomy
Tooltip::provider_partTooltip::rootTooltip::triggerTooltip::portalTooltip::positionerTooltip::popupTooltip::arrow
#API reference
Expand an entry for its description and complete signature. A dash means no declaration default is documented.
Tooltip
View sourcepub fn new(content: impl IntoElement) -> SelfCreate 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>>) -> SelfView sourceplacementpub fn placement(mut self, placement: AnchorPlacement) -> Self—
Configures placement for this part.
pub fn placement(mut self, placement: AnchorPlacement) -> SelfView sourcedelaypub fn delay(mut self, delay: Duration) -> Self—
gappub fn gap(mut self, gap: f32) -> Self—
viewport_marginpub fn viewport_margin(mut self, margin: f32) -> Self—
Configures viewport margin for this part.
pub fn viewport_margin(mut self, margin: f32) -> SelfView sourceaccessibility_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>>) -> SelfView source