class icon

superclass(es) object
subclass(es) -
description The icon class can be used for loading icon resources.
see also canvas - frame

tasks

The icon class has different methods for loading icons, the load/2 method is used for loading icons from the executable file and other methods for loading system icons like for instance loadAsterisk/0. After an icon resource was loaded the same icon instance can still be used for loading other icons.
An icon can be displayed by the method drawIcon/2 of the canvas class, or it can be assigned to a frame window with the method putIcon/1.

methods

load(Name, Output)

func Load an icon from the executable file.
pre The Name variable must contain the name of the icon.
post If the icon was successfully loaded then Output was assigned true, else it was assigned false.

standard(Output)

func Determine if the current loaded icon is a system icon or from the executable file.
pre TRUE.
post If the icon is a system icon then Output was assigned true, else it was assigned false.

dimensions(point(X, Y))

func Get the dimensions of the icon in pixels.
pre TRUE.
post The width and height of the icon were assigned to the variables X and Y.

loadApplication

func Load the system icon for applications.
pre TRUE.
post The system application icon was loaded.

loadAsterisk

func Load the system asterisk icon.
pre TRUE.
post The system asterisk icon was loaded.

loadExclamation

func Load the system exclamation icon.
pre TRUE.
post The system exclamation icon was loaded.

loadHand

func Load the system hand icon.
pre TRUE.
post The system hand icon was loaded.

loadQuestion

func Load the system question icon.
pre TRUE.
post The system question icon was loaded.