Tooltip
コアが正確に管理する遅延後に補助情報を表示し、Provider 単位のウォームアップにも対応します。
デモを読み込み中…
let tooltip = Tooltip::new("hint");
tooltip.trigger().child("Save")#インポート
quickgui から Tooltip をインポートします。
use quickgui::*;#使い方
let tooltip = Tooltip::new("hint");
tooltip.trigger().child("Save")#構成
Tooltip::provider_partTooltip::rootTooltip::triggerTooltip::portalTooltip::positionerTooltip::popupTooltip::arrow
#API リファレンス
項目を展開すると説明と完全なシグネチャが表示されます。ダッシュは宣言に既定値が記載されていないことを示します。
Tooltip
ソースを見るpub fn new(content: impl IntoElement) -> SelfCreate a tooltip from an arbitrary GPU element tree.
textpub 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—
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) -> 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ソースを見る