Inheritance diagram for CP_OSIcon:
Public Member Functions | |
CP_OSIcon (OSType inCreator, OSType inIconType, SInt16 inVRefNum=kOnSystemDisk) | |
CP_OSIcon (OSType inCreator, OSType inType, const CP_String &inName) | |
IconRef | RegisterIcon (OSType inCreator, OSType inType, const CP_String &inName) |
Constructor / Destructor | |
CP_OSIcon () | |
Constructor. | |
CP_OSIcon (CP_E_IconStyle inIconType, SInt32 inIconID) | |
CP_OSIcon (const CP_OSIcon &inOSIcon) | |
virtual | ~CP_OSIcon () throw () |
Destructor. | |
Drawing | |
void | Draw (CP_Canvas &inDestCanvas, const CP_Rect &inBounds) |
Getters | |
SInt16 | Width () |
SInt16 | Height () |
CP_E_IconStyle | GetType () |
OSColorIcon | GetColorIcon () |
OSIconRef | GetIconRef () |
OSIconSuite | GetIconSuite () |
Operators | |
CP_OSIcon & | operator= (const CP_OSIcon &inOSIcon) |
Setters | |
void | SetColorIcon (OSColorIcon inOSColorIcon) |
void | SetIconRef (OSIconRef inIconRef) |
void | SetIconSuite (OSIconSuite inIconSuite) |
Protected Attributes | |
CP_E_IconStyle | fIconType |
OSIconRef | fIconRef |
OSIconSuite | fIconSuite |
OSColorIcon | fColorIcon |
|
Constructor.
|
|
Constructor.
|
|
|
|
Destructor.
|
|
Constructor.
|
|
Constructor.
|
|
Draw the icon into the passed in canvas object, and optionally scaling to fit the passed in bounds, if supported by the underlying OS.
|
|
Returns the width of the icon.
|
|
Returns the height of the icon.
|
|
Returns the OS type of the icon we are handling. This can be one of the following values:
|
|
Returns the OSColorIcon if this icon represents that type of icon, otherwise NULL is returned.
|
|
Returns the OSIconRef if this icon represents that type of icon, otherwise NULL is returned.
|
|
Returns the OSIconSuite if this icon represents that type of icon, otherwise NULL is returned.
|
|
|
|
|
|
|
|
|
|
|
|
Add a reference to our object, returning the new reference count.
|
|
Remove a reference to our object, returning the new reference count. If the count is 0, then this object is also deleted, and 0 is returned.
|
|
Add the object to the topmost auto-release pool. This will ensure that the object is eventually released.
|
|
Returns the current ref count.
|
|
|
|
|
|
|
|
|