本文へスキップ

Tooltip

コアが正確に管理する遅延後に補助情報を表示し、Provider 単位のウォームアップにも対応します。

デモを読み込み中…

#インポート

quickgui から Tooltip をインポートします。

use quickgui::*;

#使い方

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

#構成

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

#API リファレンス

項目を展開すると説明と完全なシグネチャが表示されます。ダッシュは宣言に既定値が記載されていないことを示します。

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
ソースを見る
placementpub fn placement(mut self, placement: AnchorPlacement) -> Self—

Configures placement for this part.

pub fn placement(mut self, placement: AnchorPlacement) -> Self
ソースを見る
delaypub fn delay(mut self, delay: Duration) -> Self—

Configures delay for this part.

pub fn delay(mut self, delay: Duration) -> Self
ソースを見る
gappub fn gap(mut self, gap: f32) -> Self—

Configures gap for this part.

pub 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) -> Self
ソースを見る
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
ソースを見る