Lines Matching defs:icon
59 * Scale an X icon ZPixmap into a Windoze icon bitmap
92 /* Get icon data */
103 /* Out-of-bounds, fill icon with zero */
116 /* Out of X icon bounds, leave space blank */
158 /* Out of X icon bounds, leave space blank */
198 /* Out of X icon bounds, leave space blank */
236 NetWMToWinIconAlpha(uint32_t * icon)
238 int width = icon[0];
239 int height = icon[1];
240 uint32_t *pixels = &icon[2];
274 /* The icon is created with a DIB + empty DDB mask (an MS example does the same) */
280 winDebug("NetWMToWinIconAlpha - %d x %d = %p\n", icon[0], icon[1], result);
285 NetWMToWinIconThreshold(uint32_t * icon)
287 int width = icon[0];
288 int height = icon[1];
289 uint32_t *pixels = &icon[2];
330 winDebug("NetWMToWinIconThreshold - %d x %d = %p\n", icon[0], icon[1],
336 NetWMToWinIcon(int bpp, uint32_t * icon)
349 /* Windows versions later than XP have icon alpha channel support, 2000 does not */
359 ErrorF("OS has icon alpha channel support: %s\n",
364 return NetWMToWinIconAlpha(icon);
366 return NetWMToWinIconThreshold(icon);
370 * Attempt to create a custom icon from the WM_HINTS bitmaps
388 uint32_t *icon, *icon_data = NULL;
421 for (icon = icon_data; icon < &icon_data[size] && *icon;
422 icon = &icon[icon[0] * icon[1] + 2]) {
423 winDebug("winXIconToHICON: %u x %u NetIcon\n", icon[0], icon[1]);
427 if ((INT_MAX/icon[0]) < icon[1]) {
428 winDebug("winXIconToHICON: _NET_WM_ICON icon data size overflow\n");
433 if (&icon[icon[0] * icon[1] + 2] > &icon_data[size]) {
439 if (icon[0] == iconSize && icon[1] == iconSize) {
442 hIcon = NetWMToWinIcon(bpp, icon);
445 /* Otherwise, find the biggest icon and let Windows scale the size */
446 else if (biggest_size < icon[0]) {
447 biggest_icon = icon;
448 biggest_size = icon[0];
491 winDebug("winXIconToHICON: id 0x%x icon Ximage 0x%p\n",
532 /* Now we need to set all bits of the icon which are not masked */
555 /* Merge Win32 mask and bitmap into icon */
580 * Change the Windows window icon
590 /* Start with the icon from preferences, if any */
596 /* If we still need an icon, try and get the icon from WM_HINTS */
607 /* Set the large icon */
609 /* Delete the old icon if its not the default */
612 /* Same for the small icon */
624 /* Load default X icon in case it's not ready yet */
652 /* Use default X icon */
666 /* Delete the icon if its not one of the application defaults or an override */