You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebindings/kdejava/koala/org/kde/koala/KURLPixmapProvider.java

49 lines
1.5 KiB

//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;
import org.kde.qt.Qt;
import org.kde.qt.QtSupport;
import org.kde.qt.QPixmap;
/**
Implementation of KPixmapProvider.
Uses KMimeType.pixmapForURL() to resolve icons.
Instatiate this class and supply it to the desired class, e.g.
<pre>
KHistoryCombo combo = new KHistoryCombo( this );
combo.setPixmapProvider( new KURLPixmapProvider );
[...]
</pre>
@author Carsten Pfeiffer <pfeiffer@kde.org>
@short Resolves pixmaps for URLs.
*/
public class KURLPixmapProvider extends KPixmapProvider {
protected KURLPixmapProvider(Class dummy){super((Class) null);}
/**
Returns a pixmap for <code>url</code> with size <code>size.</code>
Uses KMimeType.pixmapForURL().
@param url the URL to fetch a pixmap for
@param size the size of the pixmap in pixels, or 0 for default.
@return the resulting pixmap
@short Returns a pixmap for <code>url</code> with size <code>size.</code>
@see KIcon#StdSizes
*/
public native QPixmap pixmapFor(String url, int size);
public native QPixmap pixmapFor(String url);
public KURLPixmapProvider() {
super((Class) null);
newKURLPixmapProvider();
}
private native void newKURLPixmapProvider();
/** Deletes the wrapped C++ instance */
protected native void finalize() throws InternalError;
/** Delete the wrapped C++ instance ahead of finalize() */
public native void dispose();
/** Has the wrapped C++ instance been deleted? */
public native boolean isDisposed();
}