1 /******************************************************************************* 2 * Copyright (c) 2000, 2003 IBM Corporation and others. 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * IBM Corporation - initial API and implementation 10 * Port to the D programming language: 11 * Frank Benoit <benoit@tionex.de> 12 *******************************************************************************/ 13 module org.eclipse.swt.graphics.ImageLoaderListener; 14 15 import java.lang.all; 16 17 18 public import org.eclipse.swt.graphics.ImageLoaderEvent; 19 public import org.eclipse.swt.internal.SWTEventListener; 20 21 /** 22 * Classes which implement this interface provide methods 23 * that deal with the incremental loading of image data. 24 * <p> 25 * After creating an instance of a class that implements 26 * this interface it can be added to an image loader using the 27 * <code>addImageLoaderListener</code> method and removed using 28 * the <code>removeImageLoaderListener</code> method. When 29 * image data is either partially or completely loaded, this 30 * method will be invoked. 31 * </p> 32 * 33 * @see ImageLoader 34 * @see ImageLoaderEvent 35 */ 36 37 public interface ImageLoaderListener : SWTEventListener { 38 39 /** 40 * Sent when image data is either partially or completely loaded. 41 * <p> 42 * The timing of when this method is called varies depending on 43 * the format of the image being loaded. 44 * </p> 45 * 46 * @param e an event containing information about the image loading operation 47 */ 48 public void imageDataLoaded(ImageLoaderEvent e); 49 50 }