6323N/A * Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * @return array of XIconsSize structures, caller must free this array after use. 0N/A // ICE_WM has a bug - it only displays icons of the size 0N/A // 16x16, while reporting 32x32 in its size list 0N/A // No icon sizes so we simply fall back to 16x16 0N/A /* Found an exact match */ 0N/A // Icon image too big 0N/A /* determine which way to scale */ 0N/A // Icon image too small 0N/A // Icon image fits within right size 0N/A * @return preffered icon size calculated from specific icon 0N/A * This function replaces iconPixmap handle with new image 0N/A * It does not replace window's hints, so it should be 0N/A * called only from setIconImage() 0N/A //create new buffered image of desired size 0N/A //in current window's color model 0N/A //We need to draw image on SystemColors.window 0N/A //for using as iconWindow's background 0N/A return;
//The iconPixmap is 0 now, we have done everything 0N/A return;
//Can't do nothing 0N/A //Transform image data 0N/A * This function replaces iconPixmap handle with new image 0N/A * It does not replace window's hints, so it should be 0N/A * called only from setIconImage() 0N/A return;
//The iconMask is 0 now, we have done everything 0N/A int sidx =
0;
//index of source element 0N/A int didx =
0;
//index of destination element 0N/A int dbit =
0;
//index of current bit 0N/A * Sets icon image by selecting one of the images from the list. 0N/A * The selected image is the one having the best matching size. 0N/A // "=" below allows to select the best matching icon 0N/A //if image is null, reset to default image 0N/A //create icon window and set XWMHints 0N/A // Provide both pixmap and window, WM or Taskbar will use the one they find more appropriate