This class contains multiple copies of an icon in different sizes, see also Dialog#set_icons and TopLevelWindow#set_icons.
No base class
IconBundle.new(String file, Integer type)
Initializes the bundle with the icon(s) found in the file.
IconBundle.new(Icon icon)
Initializes the bundle with a single icon.
IconBundle.new(IconBundle ic)
Copy constructor.
add_icon(String file, Integer type)
Adds all the icons contained in the file to the bundle; if the collection already contains icons with the same width and height, they are replaced by the new ones.
add_icon(Icon icon)
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.
Note that ”<<” is an alias for “add_icon”.
Icon get_icon(Size size)
Returns the icon with the given size; if no such icon exists, returns the icon with size SYS_ICON_X/SYS_ICON_Y; if no such icon exists, returns the first icon in the bundle. If size = Size( -1, -1 ), returns the icon with size SYS_ICON_X/SYS_ICON_Y.
Icon get_icon(Integer size = -1)
Same as GetIcon( Size( size, size ) ).
[This page automatically generated from the Textile source at Thu May 01 00:50:39 +0100 2008]