wxIconBundle(3erl)
π¦ wxIconBundle(3erl) β Erlang Module Definition π¦
okay bestie, gather round β this is the manual page for wxIconBundle, and it's literally giving βicon closet with every size on deckβ π
β¨. Letβs get into it.
πΈ NAME πΈ
wxIconBundle β Functions for wxIconBundle class.
β¨ DESCRIPTION β¨
This class contains multiple copies of an icon in different sizes. It is typically used in wxDialog::SetIcons (not implemented in wx) and wxTopLevelWindow:setIcons/2.
Predefined objects (include wx.hrl): ?wxNullIconBundle
wxWidgets docs: wxIconBundle
π§ DATA TYPES π§
wxIconBundle() = wx:wx_object()
π₯ EXPORTS π₯
π new() -> wxIconBundle() π
Default ctor. Fresh bundle energy, no cap β¨.
π new(Ic) -> wxIconBundle() π
The original page gives this one zero description β just the signature sitting there being mysterious π.
π new(File) -> wxIconBundle() π
Types:
File = unicode:chardata()
Initializes the bundle with the icon(s) found in the file. File-based icon haul, slay ποΈβ¨.
π new(File, Type) -> wxIconBundle() π
Types:
File = unicode:chardata()
Type = wx:wx_enum()
No extra description on this one β just types, periodt π .
π destroy(This :: wxIconBundle()) -> ok π
Destructor. Yep, the destructor β clean up your faves π§Ή.
π addIcon(This, File) -> ok and addIcon(This, Icon) -> ok π
Types:
This = wxIconBundle()
Icon = wxIcon:wxIcon()
Adds the icon to the collection; if the collection already contains an icon with the same width and height, it is replaced by the new one.
π addIcon(This, File, Type) -> ok π
Types:
This = wxIconBundle()
File = unicode:chardata()
Type = wx:wx_enum()
Again, no prose description β just the type block, and honestly same π«Ά.
π getIcon(This) -> wxIcon:wxIcon() π
Types:
This = wxIconBundle()
No description in the original β just the signature doing its thing.
π getIcon(This, Size) -> wxIcon:wxIcon() π
No description, no types block β just a bare signature living its truth π«Ά.
π getIcon(This, Size :: [Option]) -> wxIcon:wxIcon() π
Types:
This = wxIconBundle()
Option = {size, integer()} | {flags, integer()}
The description is literally Same as. and then a lone . β thatβs the entire note, bestie, cryptic icon behavior π.
π getIcon(This, Size, Options :: [Option]) -> wxIcon:wxIcon() π
Types:
This = wxIconBundle()
Size = {W :: integer(), H :: integer()}
Option = {flags, integer()}
Returns the icon with the given size.
If size is ?wxDefaultSize, it is interpreted as the standard system icon size, i.e. the size returned by wxSystemSettings:getMetric/2 for wxSYS_ICON_X and wxSYS_ICON_Y.
If the bundle contains an icon with exactly the requested size, itβs always returned. Otherwise, the behaviour depends on the flags. If only wxIconBundle::FALLBACK_NONE (not implemented in wx) is given, the function returns an invalid icon. If wxIconBundle::FALLBACK_SYSTEM (not implemented in wx) is given, it tries to find the icon of standard system size, regardless of the size passed as parameter. Otherwise, or if the icon system size is not found neither, but wxIconBundle::FALLBACK_NEAREST_LARGER (not implemented in wx) flag is specified, the function returns the smallest icon of the size larger than the requested one or, if this fails too, just the icon closest to the specified size.
The flags parameter is available only since wxWidgets 2.9.4.
Thatβs the whole page, bestie π«Ά β brought to you by the wxWidgets team, version wx 2.2.2.1, and this little manual moment is wxIconBundle(3erl). Mwah π
π¦ where this page comes from
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms