Carbon


Icon Alignment Constants

Header: Icons.h

enum {
    kAlignNone = 0,
    kAlignVerticalCenter = 1,
    kAlignTop = 2,
    kAlignBottom = 3,
    kAlignHorizontalCenter = 4,
    kAlignAbsoluteCenter = 5,
    kAlignCenterTop = 6,
    kAlignCenterBottom = 7,
    kAlignLeft = 8,
    kAlignCenterLeft = 9,
    kAlignTopLeft = 10,
    kAlignBottomLeft = 11,
    kAlignRight = 12,
    kAlignCenterRight = 13,
    kAlignTopRight = 14,
    kAlignBottomRight = 15
};

Constant descriptions

kAlignNone

Use this value if you do not wish to specify a particular alignment.

kAlignVerticalCenter

Use this value to center the icon vertically within the rectangle.

kAlignTop

Use this value to top align the icon within the rectangle.

kAlignBottom

Use this value to bottom align the icon within the rectangle.

kAlignHorizontalCenter

Use this value to center the icon horizontally within the rectangle.

kAlignAbsoluteCenter

Use this value to center the icon horizontally and vertically within the rectangle.

kAlignCenterTop

Use this value to top align the icon and center it horizontally within the rectangle.

kAlignCenterBottom

Use this value to bottom align the icon and center it horizontally within the rectangle.

kAlignLeft

Use this value to left align the icon within the rectangle.

kAlignCenterLeft

Use this value to left align the icon and center it vertically within the rectangle.

kAlignTopLeft

Use this value to left and top align the icon within the rectangle.

kAlignBottomLeft

Use this value to left and bottom align the icon within the rectangle.

kAlignRight

Use this value to right align the icon within the rectangle.

kAlignCenterRight

Use this value to right align the icon and center it vertically within the rectangle.

kAlignTopRight

Use this value to right and top align the icon within the rectangle.

kAlignBottomRight

Use this value to right and bottom align the icon within the rectangle.

The IconAlignmentType enumeration defines constants that allow you to specify how to align an icon within its rectangle.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)