/** * Invokes platform specific functionality to allocate a new color. * * <p><b>IMPORTANT:</b> This method is <em>not</em> part of the public API for <code>Color</code>. * It is marked public only so that it can be shared within the packages provided by SWT. It is * not available on all platforms, and should never be called from application code. * * @param device the device on which to allocate the color * @param handle the handle for the color * @param alpha the int for the alpha content in the color * @return a new color object containing the specified device and handle * @noreference This method is not intended to be referenced by clients. */ public static Color win32_new(Device device, int handle, int alpha) { Color color = new Color(device); color.handle = handle; color.alpha = alpha; return color; }
public static Color motif_new(Device device, XColor xColor) { Color color = new Color(device); color.handle = xColor; return color; }