pub struct TooltipSpec {
pub text: String,
pub translatable: Option<String>,
pub delay_ms: Option<u32>,
pub offset: Option<f32>,
}Expand description
Parsed <tooltip text="..." delay="..."> payload, propagated from
the wrapper to its single child as
Attributes::tooltip.
Fields§
§text: StringBody text shown in the popup.
translatable: Option<String>translatable="<key>" on the <tooltip> wrapper - the catalogue
key the popup body resolves through. The wrapper is the element
that authors the string, so it takes a plain key of its own rather
than an attribute on the trigger’s; the trigger may not keep one,
since a <checkbox> moves its key onto the caption it synthesizes.
delay_ms: Option<u32>Hover dwell before the popup appears, in milliseconds. None =
author didn’t set delay="..." inline; the cascade fills it from
the --lumen-tooltip-delay skin token when declared, and the
spawn layer falls back to the runtime default (500) last.
offset: Option<f32>Gap between the cursor hotspot and the popup’s top-left corner,
in logical pixels. Same resolution chain as Self::delay_ms:
inline attr -> --lumen-tooltip-offset token -> runtime default.
Trait Implementations§
Source§impl Clone for TooltipSpec
impl Clone for TooltipSpec
Source§fn clone(&self) -> TooltipSpec
fn clone(&self) -> TooltipSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TooltipSpec
impl Debug for TooltipSpec
Source§impl<'de> Deserialize<'de> for TooltipSpec
impl<'de> Deserialize<'de> for TooltipSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for TooltipSpec
impl PartialEq for TooltipSpec
Source§fn eq(&self, other: &TooltipSpec) -> bool
fn eq(&self, other: &TooltipSpec) -> bool
self and other values to be equal, and is used by ==.