Lines Matching defs:icon

500 BAppFileInfo::GetIcon(BBitmap* icon, icon_size which) const
502 return GetIconForType(NULL, icon, which);
514 BAppFileInfo::SetIcon(const BBitmap* icon, icon_size which, bool updateMimeDB)
516 return SetIconForType(NULL, icon, which, updateMimeDB);
521 BAppFileInfo::SetIcon(const BBitmap* icon, icon_size which)
523 return SetIconForType(NULL, icon, which, true);
642 BAppFileInfo::GetIconForType(const char* type, BBitmap* icon, icon_size size)
648 if (icon == NULL || icon->InitCheck() != B_OK)
651 // TODO: for consistency with attribute based icon reading, we
653 // is in that format. Right now, an existing B_CMAP8 icon resource
654 // would be ignored as soon as a vector icon is present. On the other
656 // since Tracker/Deskbar would surely show the vector icon.
658 // try vector icon first
678 bytesRead, icon);
683 // no vector icon if we got this far,
691 // set some icon size related variables
719 if (icon->ColorSpace() == B_CMAP8 && icon->Bounds() != bounds)
725 = icon->ColorSpace() != B_CMAP8 || icon->Bounds() != bounds;
738 error = _ReadData(attribute, -1, attrType, icon->Bits(), attrSize,
747 (uint32)size, (uint32)size, icon);
765 // get vector icon
790 BAppFileInfo::SetIconForType(const char* type, const BBitmap* icon,
795 // set some icon size related variables
836 if (error == B_OK && icon != NULL
837 && (icon->InitCheck() != B_OK || icon->Bounds() != bounds)) {
845 if (icon != NULL) {
846 bool otherColorSpace = (icon->ColorSpace() != B_CMAP8);
851 error = bitmap.ImportBits(icon);
858 icon->Bits(), attrSize, true);
860 } else // no icon given => remove
871 error = mimeType.SetIconForType(type, icon, which);
879 BAppFileInfo::SetIconForType(const char* type, const BBitmap* icon,
882 return SetIconForType(type, icon, which, true);
893 // set some icon related variables
913 else // no icon given => remove