[ Previous | Next | Contents | Glossary | Home | Search ]
Motif 2.1 User's Guide



Sizing Icons

Each icon image has maximum and minimum default sizes as well as maximum and minimum allowable sizes. The following two resources control icon image size:

  1. The iconImageMaximum resource limits the maximum size of an icon image. The largest value allowed is 128128 pixels. The default value is 5050 pixels.

  2. The iconImageMinimum resource limits the minimum size of an icon image. The smallest value allowed is 1616 pixels and is also the default value.

    When calculating limits for image size, remember that the width of an icon is the image width plus the icon frame plus the space between icons. The height of an icon is the image height plus the icon frame plus the space between icons. The amount of icon decoration and the size of font used in the icon label also affects the height of the icon.

    The window manager sizes an icon depending on the size of the image in relation to the specified maximum and minimum sizes (see Table 5-12).

    Table 20. Icon Size Affects Treatment of an Icon

    If an icon image is... The window manager...
    Smaller than the minimum size Acts as if no image were specified
    Within maximum and minimum limits Centers the image within the maximum area
    Larger than the maximum size Clips the right side and bottom of the image to fit the maximum size

  3. [ Previous | Next | Contents | Glossary | Home | Search ]