IconLib REALbasic Plugin

Icon Class

Icon is a class to obtain and and draw File Icons, icns Icons from files and MacOS System defined icons.

Note
Not everything in this class is supported on Windows system. Refer each functions documentation to see if its supported on Windows systems.

Object
   Icon

class Icon

Constructors

IconA constructor to get the desktop file icon of a folder item.
IconA constructor to get the desktop file icon of a folder item or a icon loaded from a .icns file.
IconA constructor to get the desktop file icon of a folder item or a icon loaded from a .icns file with a custom data fetch mask.
IconA constructor to get a icon that represents a specific file type from a given MacType and optionally MacCreator.
IconA constructor to get a system defined icon from a given System-Icon constant.

Properties

SelectedSet this property to true if the icon should be drawn in selected state.

Methods

DrawLargeUse this method to draw a large icon (32x32). The icon will be drawn in selected state if the Selected property of the class is set.
DrawLargeMaskUse this method to draw a large icon's mask (32x32).
DrawSmallUse this method to draw a small icon (16x16). The icon will be drawn in selected state if the Selected property of the class is set.
DrawSmallMaskUse this method to draw a small icon's mask (16x16).
GetHugeUse this function to get the raw data of a huge file icon on MacOS systems.
GetHugeMaskUse this function to get the raw data mask of a huge file icon on MacOS systems.
GetLargeUse this function to get the raw data of a large file icon on MacOS systems.
GetLargeMaskUse this function to get the raw data mask of a large file icon on MacOS systems.
GetSmallUse this function to get the raw data of a small file icon on MacOS systems.
GetSmallMaskUse this function to get the raw data mask of a small file icon on MacOS systems.
GetThumbnailUse this function to get the raw data of a thumbnail file icon on MacOS systems.
GetThumbnailMaskUse this function to get the raw data mask of a thumbnail file icon on MacOS systems.
PlotTo plot a file Icon to the current port, use the PlotFileIcon method. (This method is not for Win32)

Supported Platforms:

  • PPC - MacOS 9
  • Carbon - MacOS 9 and MacOS X (PEF)
  • MacOS X PPC - (Mach-O)
  • MacOS X Universal Binary (Mach-O)
  • MacOS X Cocoa Universal Binary (Mach-O)
  • Win32 - Windows