wxToolTip(3)

πŸ“¦
version 29.0.6 Β· 3 versions
, in ubuntu stonking

wxToolTip πŸ’¬βœ¨

okay bestie, this is an Erlang module, and it's the lil guy that holds all the info about a tooltip that's attached to a window πŸ‘€ (peep wxWindow:setToolTip/2 if you wanna know how the window got one in the first place).


🌸 NAME 🌸

wxToolTip β€” this class holds information about a tooltip associated with a window (see wxWindow:setToolTip/2). no cap, that's literally the whole job πŸ’…


✨ DESCRIPTION ✨

so the way this works is there are four static methods that let you change tooltip behaviour globally, like for the entire app, not just one lil window:

  • enable/1
  • setDelay/1
  • wxToolTip::SetAutoPop() (not implemented in wx) 😭
  • wxToolTip::SetReshow() (not implemented in wx) 😭

two of them are giving "announced but never showed up" energy, we move on.

also, if you want the official wxWidgets lore: wxWidgets docs: wxToolTip πŸ¦‹


πŸŽ€ DATA TYPES πŸŽ€

  • wxToolTip() :: wx:wx_object().

like yeah it's a wx_object, it's an object, that's the vibe πŸ’œ


πŸ‘‘ FUNCTIONS πŸ‘‘

destroy(This :: wxToolTip()) -> ok.

Destroys the object. bye bestie, we hardly knew ye 🫢

enable(Flag) -> ok when Flag :: boolean().

Enable or disable tooltips globally 🌍✨ β€” one switch, whole app.

Note: May not be supported on all platforms (eg. wxCocoa). so like… don't come for me if it doesn't do anything there πŸ™ˆ

getTip(This) -> unicode:charlist() when This :: wxToolTip().

Get the tooltip text. just hands you the string, no drama πŸ“

getWindow(This) -> wxWindow:wxWindow() when This :: wxToolTip().

Get the associated window β€” the window this tooltip is literally attached to πŸ’«

new(Tip) -> wxToolTip() when Tip :: unicode:chardata().

Constructor πŸŽ‚ new tooltip, who dis

setDelay(Msecs) -> ok when Msecs :: integer().

Set the delay after which the tooltip appears ⏳ β€” basically "how long do I have to hover before you show up, bestie?"

Note: May not be supported on all platforms. fr fr, platform-dependent, don't @ me πŸ’€

setTip(This, Tip) -> ok when This :: wxToolTip(), Tip :: unicode:chardata().

Set the tooltip text πŸ“ β€” the glow-up but for words.


and that's the whole page, you ate it, iconic, periodt πŸ’…πŸŒˆβ­

Ericsson AB Β· wx 2.6 Β· wxToolTip(3) β€” mwah, ty for reading, ily, go hover over something πŸ¦‹πŸ’–

πŸ“¦ where this page comes from