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>) -> Self
pub fn with_text(self, text: impl Into<String>) -> Self
pub fn with_i18n_key(self, key: impl AsRef<str>) -> Self
pub fn i18n_key(self, key: impl AsRef<str>) -> Self
pub fn key(self, key: impl AsRef<str>) -> Self
pub fn locale_key(self, key: impl AsRef<str>) -> Self
pub fn with_placement(self, placement: HoverFxTooltipPlacement) -> Self
pub fn top(self) -> Self
pub fn right(self) -> Self
pub fn bottom(self) -> Self
pub fn left(self) -> Self
pub fn cursor(self) -> Self
pub fn with_offset_px(self, offset_px: u16) -> Self
pub fn offset(self, offset_px: u16) -> Self
pub fn with_max_width_px(self, max_width_px: u16) -> Self
pub fn max_width(self, max_width_px: u16) -> Self
pub fn with_box_opacity(self, box_opacity: f32) -> Self
pub fn box_opacity(self, box_opacity: f32) -> Self
pub fn opacity(self, box_opacity: f32) -> Self
pub fn with_show_delay_ms(self, show_delay_ms: u16) -> Self
pub fn show_delay_ms(self, show_delay_ms: u16) -> Self
pub fn with_hide_delay_ms(self, hide_delay_ms: u16) -> Self
pub fn hide_delay_ms(self, hide_delay_ms: u16) -> Self
pub fn with_duration_ms(self, duration_ms: u16) -> Self
pub fn dur_ms(self, duration_ms: u16) -> Self
pub fn with_speed_ms(self, speed_ms: u16) -> Self
pub fn speed_ms(self, speed_ms: u16) -> Self
pub fn with_stagger_ms(self, stagger_ms: u16) -> Self
pub fn stagger_ms(self, stagger_ms: u16) -> Self
pub fn with_textfx_effect(self, textfx_effect: impl AsRef<str>) -> Self
pub fn scramble(self) -> Self
pub fn typewriter(self) -> Self
pub fn wave(self) -> Self
pub fn glitch(self) -> Self
pub fn with_split(self, split: impl Into<String>) -> Self
pub fn split_chars(self) -> Self
pub fn split_words(self) -> Self
pub fn to_json(&self) -> Result<String>
pub fn to_textfx_config_json( &self, id: impl AsRef<str>, fallback_text: impl AsRef<str>, ) -> Result<String>
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§impl<'de> Deserialize<'de> for HoverFxTooltipConfig
impl<'de> Deserialize<'de> for HoverFxTooltipConfig
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>,
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
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