//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.koala;

import org.kde.qt.Qt;
import org.kde.qt.QMetaObject;
import org.kde.qt.QtSupport;
import org.kde.qt.QPixmap;
import org.kde.qt.QPaintEvent;
import org.kde.qt.QSize;
import org.kde.qt.QWidget;
import org.kde.qt.QWidget;

/**

 Title widget for use in KPopupMenu.
 You usually don't have to create this manually since
 KPopupMenu.insertTitle will do it for you, but it is allowed if
 you wish to customize it's look.
		@author Daniel M. Duley <mosfet@kde.org>
 
		@short KPopupMenu title widget.

*/
public class KPopupTitle extends QWidget  {
	protected KPopupTitle(Class dummy){super((Class) null);}
	public native QMetaObject metaObject();
	public native String className();
	/**	
		 Constructs a title widget with the user specified gradient, pixmap,
		 and colors.
		     		@short    Constructs a title widget with the user specified gradient, pixmap,  and colors.
	*/
	public KPopupTitle(QWidget parent, String name) {
		super((Class) null);
		newKPopupTitle(parent,name);
	}
	private native void newKPopupTitle(QWidget parent, String name);
	public KPopupTitle(QWidget parent) {
		super((Class) null);
		newKPopupTitle(parent);
	}
	private native void newKPopupTitle(QWidget parent);
	public KPopupTitle() {
		super((Class) null);
		newKPopupTitle();
	}
	private native void newKPopupTitle();
	/**	
		 Sets the title string and optional icon for the title widget.
			 You will want to call this before inserting into a menu.
		     		@short    Sets the title string and optional icon for the title widget.
	*/
	public native void setTitle(String text, QPixmap icon);
	public native void setTitle(String text);
	/**	
		 Returns the current title.
		     		@short    Returns the current title.
	*/
	public native String title();
	/**	
		 Returns the current icon.
		     		@short    Returns the current icon.
	*/
	public native QPixmap icon();
	public native QSize sizeHint();
	public native void setText(String text);
	public native void setIcon(QPixmap pix);
	protected native void calcSize();
	protected native void paintEvent(QPaintEvent ev);
	/** 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();
}
