Lines Matching defs:icon
105 // Retrieves an icon associated with a given device.
107 get_device_icon(const char* device, void* icon, int32 size)
109 if (device == NULL || icon == NULL
118 // attributes. Should those attributes override the icon returned by
120 device_icon iconData = {size, icon};
122 // legacy icon was not available, try vector icon
150 memcpy(icon, icon8->Bits(), icon8->BitsLength());
162 // Retrieves an icon associated with a given device.
164 get_device_icon(const char* device, BBitmap* icon, icon_size which)
167 if (device == NULL || icon == NULL)
175 status = BIconUtils::GetVectorIcon(data, size, icon);
180 // Vector icon was not available, try old one
188 BBitmap* bitmap = icon;
191 if (icon->ColorSpace() != B_CMAP8
207 // get the icon, convert temporary data into bitmap if necessary
209 if (status == B_OK && icon != bitmap)
210 status = BIconUtils::ConvertFromCMAP8(bitmap, icon);
212 if (icon != bitmap)
230 // Try to get the icon by name first
241 // Getting the named icon failed, try vector icon next
243 // NOTE: The actual icon size is unknown as of yet. After the first call
247 // valid icon data. In that case, a second call to B_GET_VECTOR_ICON
277 // TODO: also support getting the old icon?
284 get_named_icon(const char* name, BBitmap* icon, icon_size which)
287 if (name == NULL || icon == NULL)
298 if (icon->Bounds() != rect)
306 status = BIconUtils::GetVectorIcon(data, size, icon);