pub struct HoverFxTooltipConfig {Show 13 fields
pub text: String,
pub i18n_key: Option<String>,
pub placement: HoverFxTooltipPlacement,
pub offset_px: u16,
pub max_width_px: u16,
pub box_opacity: f32,
pub show_delay_ms: u16,
pub hide_delay_ms: u16,
pub duration_ms: u16,
pub speed_ms: u16,
pub stagger_ms: u16,
pub textfx_effect: String,
pub split: String,
}Fields§
§text: String§i18n_key: Option<String>§placement: HoverFxTooltipPlacement§offset_px: u16§max_width_px: u16§box_opacity: f32§show_delay_ms: u16§hide_delay_ms: u16§duration_ms: u16§speed_ms: u16§stagger_ms: u16§textfx_effect: String§split: StringImplementations§
Source§impl HoverFxTooltipConfig
impl HoverFxTooltipConfig
pub fn new(text: impl Into<String>) -> HoverFxTooltipConfig
pub fn with_text(self, text: impl Into<String>) -> HoverFxTooltipConfig
pub fn with_i18n_key(self, key: impl AsRef<str>) -> HoverFxTooltipConfig
pub fn i18n_key(self, key: impl AsRef<str>) -> HoverFxTooltipConfig
pub fn key(self, key: impl AsRef<str>) -> HoverFxTooltipConfig
pub fn locale_key(self, key: impl AsRef<str>) -> HoverFxTooltipConfig
pub fn with_placement( self, placement: HoverFxTooltipPlacement, ) -> HoverFxTooltipConfig
pub fn top(self) -> HoverFxTooltipConfig
pub fn right(self) -> HoverFxTooltipConfig
pub fn bottom(self) -> HoverFxTooltipConfig
pub fn left(self) -> HoverFxTooltipConfig
pub fn cursor(self) -> HoverFxTooltipConfig
pub fn with_offset_px(self, offset_px: u16) -> HoverFxTooltipConfig
pub fn offset(self, offset_px: u16) -> HoverFxTooltipConfig
pub fn with_max_width_px(self, max_width_px: u16) -> HoverFxTooltipConfig
pub fn max_width(self, max_width_px: u16) -> HoverFxTooltipConfig
pub fn with_box_opacity(self, box_opacity: f32) -> HoverFxTooltipConfig
pub fn box_opacity(self, box_opacity: f32) -> HoverFxTooltipConfig
pub fn opacity(self, box_opacity: f32) -> HoverFxTooltipConfig
pub fn with_show_delay_ms(self, show_delay_ms: u16) -> HoverFxTooltipConfig
pub fn show_delay_ms(self, show_delay_ms: u16) -> HoverFxTooltipConfig
pub fn with_hide_delay_ms(self, hide_delay_ms: u16) -> HoverFxTooltipConfig
pub fn hide_delay_ms(self, hide_delay_ms: u16) -> HoverFxTooltipConfig
pub fn with_duration_ms(self, duration_ms: u16) -> HoverFxTooltipConfig
pub fn dur_ms(self, duration_ms: u16) -> HoverFxTooltipConfig
pub fn with_speed_ms(self, speed_ms: u16) -> HoverFxTooltipConfig
pub fn speed_ms(self, speed_ms: u16) -> HoverFxTooltipConfig
pub fn with_stagger_ms(self, stagger_ms: u16) -> HoverFxTooltipConfig
pub fn stagger_ms(self, stagger_ms: u16) -> HoverFxTooltipConfig
pub fn with_textfx_effect( self, textfx_effect: impl AsRef<str>, ) -> HoverFxTooltipConfig
pub fn scramble(self) -> HoverFxTooltipConfig
pub fn typewriter(self) -> HoverFxTooltipConfig
pub fn wave(self) -> HoverFxTooltipConfig
pub fn glitch(self) -> HoverFxTooltipConfig
pub fn with_split(self, split: impl Into<String>) -> HoverFxTooltipConfig
pub fn split_chars(self) -> HoverFxTooltipConfig
pub fn split_words(self) -> HoverFxTooltipConfig
pub fn to_json(&self) -> Result<String, Error>
pub fn to_textfx_config_json( &self, id: impl AsRef<str>, fallback_text: impl AsRef<str>, ) -> Result<String, Error>
Trait Implementations§
Source§impl Clone for HoverFxTooltipConfig
impl Clone for HoverFxTooltipConfig
Source§fn clone(&self) -> HoverFxTooltipConfig
fn clone(&self) -> HoverFxTooltipConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HoverFxTooltipConfig
impl Debug for HoverFxTooltipConfig
Source§impl Default for HoverFxTooltipConfig
impl Default for HoverFxTooltipConfig
Source§fn default() -> HoverFxTooltipConfig
fn default() -> HoverFxTooltipConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HoverFxTooltipConfig
impl<'de> Deserialize<'de> for HoverFxTooltipConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<HoverFxTooltipConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<HoverFxTooltipConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HoverFxTooltipConfig
impl PartialEq for HoverFxTooltipConfig
Source§fn eq(&self, other: &HoverFxTooltipConfig) -> bool
fn eq(&self, other: &HoverFxTooltipConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for HoverFxTooltipConfig
impl Serialize for HoverFxTooltipConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for HoverFxTooltipConfig
Auto Trait Implementations§
impl Freeze for HoverFxTooltipConfig
impl RefUnwindSafe for HoverFxTooltipConfig
impl Send for HoverFxTooltipConfig
impl Sync for HoverFxTooltipConfig
impl Unpin for HoverFxTooltipConfig
impl UnsafeUnpin for HoverFxTooltipConfig
impl UnwindSafe for HoverFxTooltipConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DependencyElement for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.