summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/org/trinitydesktop/koala/KPixmapProvider.java
blob: 16adb59ee96930875137a6c17ad68b8fde298b0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//Auto-generated by kalyptus. DO NOT EDIT.
package org.trinitydesktop.koala;

import org.trinitydesktop.qt.Qt;
import org.trinitydesktop.qt.QtSupport;
import org.trinitydesktop.qt.TQPixmap;

/**

 A tiny abstract class with just one method:
 pixmapFor()
 It will be called whenever an icon is searched for <code>text.</code>
 Used e.g. by KHistoryCombo
		@author Carsten Pfeiffer <pfeiffer@kde.org>

		@short an abstract interface for looking up icons.

*/
public class KPixmapProvider implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;
	protected KPixmapProvider(Class dummy){}

	/**
		 You may subclass this and return a pixmap of size <code>size</code> for <code>text.</code>
			@param text the text that is associated with the pixmap
			@param size the size of the icon in pixels, 0 for defaylt size.
		             See TDEIcon.StdSize.
				@return the pixmap for the arguments, or null if there is none

		@short    You may subclass this and return a pixmap of size <code>size</code> for <code>text.</code>
	*/
	public native TQPixmap pixmapFor(String text, int size);
	public native TQPixmap pixmapFor(String text);
}