wxTaskBarIcon(3)
π wxTaskBarIcon(3) π
okay bestie, welcome to the Erlang Module Definition for wxTaskBarIcon β yes, the whole manual page, and yes, it's giving "tiny icon in your system tray that runs the whole vibe" β¨
πΈ NAME πΈ
wxTaskBarIcon β this class represents a taskbar icon. that's it, that's the girl π
β¨ DESCRIPTION β¨
So a taskbar icon is, like, an icon that shows up in the 'system tray' and reacts to mouse clicks, and it can optionally have a tooltip hovering above it to help hand out info. main character energy, lowkey π
πͺ X Window System Note πͺ
Under X Window System, the window manager must support either the "System Tray Protocol" (check it at http://freedesktop.org/wiki/Specifications/systemtray-spec) from freedesktop.org β and WMs used by modern desktop environments like GNOME >= 2, KDE >= 3 and XFCE >= 4 all do, periodt β or the older methods used in GNOME 1.2 and KDE 1 and 2.
If it doesn't support that? π then the icon will just appear as a toplevel window on the user's desktop. and because not all window managers have a system tray, there's literally no guarantee that wxTaskBarIcon will work correctly under X Window System, so apps should use it only as an optional component of their user interface. The user should be required to explicitly enable the taskbar icon on Unix β it shouldn't be on by default. no cap, fr fr π
This class is derived, and can use functions, from:
wxEvtHandler
wxWidgets docs: wxTaskBarIcon
π Events π
Event types emitted from this class:
taskbar_movetaskbar_left_downtaskbar_left_uptaskbar_right_downtaskbar_right_uptaskbar_left_dclicktaskbar_right_dclick
π DATA TYPES π
wxTaskBarIcon() :: wx:wx_object().
π¦ FUNCTIONS π¦
destroy(This :: wxTaskBarIcon()) -> ok.β destroys the object πpopupMenu(This, Menu) -> boolean()withwhen This :: wxTaskBarIcon(), Menu :: wxMenu:wxMenu().β pops up a menu at the current mouse position π±οΈ
The events can be handled by a class derived from wxTaskBarIcon.
Note: It is recommended to overrideCreatePopupMenu()(not implemented in wx) callback instead of calling this method from an event handler, because some ports (e.g. wxCocoa) may not implementpopupMenu/2and mouse click events at all. π like, some ports just said "not today".
removeIcon(This) -> boolean() when This :: wxTaskBarIcon().β removes the icon previously set withsetIcon/3π§setIcon(This, Icon, [Option]) -> boolean()with:
when
This :: wxTaskBarIcon(),
Icon :: wxIcon:wxIcon(),
Option :: {tooltip, unicode:chardata()}.
Sets the icon, and optional tooltip text. slay π β¨
okay that's the whole thing bestie, you ate that π«Ά shoutout to Ericsson AB for this one, it's from wx 2.6 β and yeah, that's wxTaskBarIcon(3) β go make an icon, it's iconic. ππΈπ
π¦ where this page comes from
- ubuntu stonking: erlang-doc 1:29.0.6+dfsg-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms