io.qt.widgets.QItemDelegate Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* Display and editing facilities for data items from a model
* Java wrapper for Qt class QItemDelegate
*/
public class QItemDelegate extends io.qt.widgets.QAbstractItemDelegate
{
@QtPropertyMember(enabled=false)
private Object __rcItemEditorFactory = null;
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QItemDelegate.class);
/**
* See QItemDelegate:: QItemDelegate(QObject*)
*/
public QItemDelegate(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QItemDelegate instance, io.qt.core.QObject parent);
/**
* See QItemDelegate:: decoration(QStyleOptionViewItem, QVariant)const
*/
@QtUninvokable
protected final io.qt.gui.@NonNull QPixmap decoration(io.qt.widgets.@NonNull QStyleOptionViewItem option, java.lang.Object variant){
return decoration_native_cref_QStyleOptionViewItem_cref_QVariant_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(option), variant);
}
@QtUninvokable
private native io.qt.gui.QPixmap decoration_native_cref_QStyleOptionViewItem_cref_QVariant_constfct(long __this__nativeId, long option, java.lang.Object variant);
/**
* See QItemDelegate:: doCheck(QStyleOptionViewItem, QRect, QVariant)const
*/
@QtUninvokable
protected final io.qt.core.@NonNull QRect doCheck(io.qt.widgets.@NonNull QStyleOptionViewItem option, io.qt.core.@NonNull QRect bounding, java.lang.Object variant){
return doCheck_native_cref_QStyleOptionViewItem_cref_QRect_cref_QVariant_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(bounding), variant);
}
@QtUninvokable
private native io.qt.core.QRect doCheck_native_cref_QStyleOptionViewItem_cref_QRect_cref_QVariant_constfct(long __this__nativeId, long option, long bounding, java.lang.Object variant);
/**
* See QItemDelegate:: drawBackground(QPainter*, QStyleOptionViewItem, QModelIndex)const
*/
@QtUninvokable
protected final void drawBackground(io.qt.gui.@Nullable QPainter painter, io.qt.widgets.@NonNull QStyleOptionViewItem option, io.qt.core.@NonNull QModelIndex index){
drawBackground_native_QPainter_ptr_cref_QStyleOptionViewItem_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(painter), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native void drawBackground_native_QPainter_ptr_cref_QStyleOptionViewItem_cref_QModelIndex_constfct(long __this__nativeId, long painter, long option, long index);
/**
* See QItemDelegate:: hasClipping()const
*/
@QtPropertyReader(name="clipping")
@QtUninvokable
public final boolean hasClipping(){
return hasClipping_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean hasClipping_native_constfct(long __this__nativeId);
/**
* See QItemDelegate:: itemEditorFactory()const
*/
@QtUninvokable
public final io.qt.widgets.@Nullable QItemEditorFactory itemEditorFactory(){
return itemEditorFactory_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.widgets.QItemEditorFactory itemEditorFactory_native_constfct(long __this__nativeId);
/**
* See QItemDelegate:: rect(QStyleOptionViewItem, QModelIndex, int)const
*/
@QtUninvokable
protected final io.qt.core.@NonNull QRect rect(io.qt.widgets.@NonNull QStyleOptionViewItem option, io.qt.core.@NonNull QModelIndex index, int role){
return rect_native_cref_QStyleOptionViewItem_cref_QModelIndex_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(index), role);
}
@QtUninvokable
private native io.qt.core.QRect rect_native_cref_QStyleOptionViewItem_cref_QModelIndex_int_constfct(long __this__nativeId, long option, long index, int role);
/**
* See QItemDelegate:: setClipping(bool)
*/
@QtPropertyWriter(name="clipping")
@QtUninvokable
public final void setClipping(boolean clip){
setClipping_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), clip);
}
@QtUninvokable
private native void setClipping_native_bool(long __this__nativeId, boolean clip);
/**
* See QItemDelegate:: setItemEditorFactory(QItemEditorFactory*)
*/
@QtUninvokable
public final void setItemEditorFactory(io.qt.widgets.@Nullable QItemEditorFactory factory){
setItemEditorFactory_native_QItemEditorFactory_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(factory));
__rcItemEditorFactory = factory;
}
@QtUninvokable
private native void setItemEditorFactory_native_QItemEditorFactory_ptr(long __this__nativeId, long factory);
/**
* See QItemDelegate:: setOptions(QModelIndex, QStyleOptionViewItem)const
*/
@QtUninvokable
protected final io.qt.widgets.@NonNull QStyleOptionViewItem setOptions(io.qt.core.@NonNull QModelIndex index, io.qt.widgets.@NonNull QStyleOptionViewItem option){
return setOptions_native_cref_QModelIndex_cref_QStyleOptionViewItem_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index), QtJambi_LibraryUtilities.internal.checkedNativeId(option));
}
@QtUninvokable
private native io.qt.widgets.QStyleOptionViewItem setOptions_native_cref_QModelIndex_cref_QStyleOptionViewItem_constfct(long __this__nativeId, long index, long option);
/**
* See QItemDelegate:: textRectangle(QPainter*, QRect, QFont, QString)const
*/
@QtUninvokable
protected final io.qt.core.@NonNull QRect textRectangle(io.qt.gui.@Nullable QPainter painter, io.qt.core.@NonNull QRect rect, io.qt.gui.@NonNull QFont font, java.lang.@NonNull String text){
return textRectangle_native_QPainter_ptr_cref_QRect_cref_QFont_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(painter), QtJambi_LibraryUtilities.internal.checkedNativeId(rect), QtJambi_LibraryUtilities.internal.checkedNativeId(font), text);
}
@QtUninvokable
private native io.qt.core.QRect textRectangle_native_QPainter_ptr_cref_QRect_cref_QFont_cref_QString_constfct(long __this__nativeId, long painter, long rect, long font, java.lang.String text);
/**
* See QAbstractItemDelegate:: createEditor(QWidget*, QStyleOptionViewItem, QModelIndex)const
*/
@QtUninvokable
@Override
public io.qt.widgets.@Nullable QWidget createEditor(io.qt.widgets.@Nullable QWidget parent, io.qt.widgets.@NonNull QStyleOptionViewItem option, io.qt.core.@NonNull QModelIndex index){
return createEditor_native_QWidget_ptr_cref_QStyleOptionViewItem_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(parent), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native io.qt.widgets.QWidget createEditor_native_QWidget_ptr_cref_QStyleOptionViewItem_cref_QModelIndex_constfct(long __this__nativeId, long parent, long option, long index);
/**
* See QItemDelegate:: drawCheck(QPainter*, QStyleOptionViewItem, QRect, Qt::CheckState)const
*/
@QtUninvokable
protected void drawCheck(io.qt.gui.@Nullable QPainter painter, io.qt.widgets.@NonNull QStyleOptionViewItem option, io.qt.core.@NonNull QRect rect, io.qt.core.Qt.@NonNull CheckState state){
drawCheck_native_QPainter_ptr_cref_QStyleOptionViewItem_cref_QRect_Qt_CheckState_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(painter), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(rect), state.value());
}
@QtUninvokable
private native void drawCheck_native_QPainter_ptr_cref_QStyleOptionViewItem_cref_QRect_Qt_CheckState_constfct(long __this__nativeId, long painter, long option, long rect, int state);
/**
* See QItemDelegate:: drawDecoration(QPainter*, QStyleOptionViewItem, QRect, QPixmap)const
*/
@QtUninvokable
protected void drawDecoration(io.qt.gui.@Nullable QPainter painter, io.qt.widgets.@NonNull QStyleOptionViewItem option, io.qt.core.@NonNull QRect rect, io.qt.gui.@NonNull QPixmap pixmap){
drawDecoration_native_QPainter_ptr_cref_QStyleOptionViewItem_cref_QRect_cref_QPixmap_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(painter), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(rect), QtJambi_LibraryUtilities.internal.checkedNativeId(pixmap));
}
@QtUninvokable
private native void drawDecoration_native_QPainter_ptr_cref_QStyleOptionViewItem_cref_QRect_cref_QPixmap_constfct(long __this__nativeId, long painter, long option, long rect, long pixmap);
/**
* See QItemDelegate:: drawDisplay(QPainter*, QStyleOptionViewItem, QRect, QString)const
*/
@QtUninvokable
protected void drawDisplay(io.qt.gui.@Nullable QPainter painter, io.qt.widgets.@NonNull QStyleOptionViewItem option, io.qt.core.@NonNull QRect rect, java.lang.@NonNull String text){
drawDisplay_native_QPainter_ptr_cref_QStyleOptionViewItem_cref_QRect_cref_QString_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(painter), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(rect), text);
}
@QtUninvokable
private native void drawDisplay_native_QPainter_ptr_cref_QStyleOptionViewItem_cref_QRect_cref_QString_constfct(long __this__nativeId, long painter, long option, long rect, java.lang.String text);
/**
* See QItemDelegate:: drawFocus(QPainter*, QStyleOptionViewItem, QRect)const
*/
@QtUninvokable
protected void drawFocus(io.qt.gui.@Nullable QPainter painter, io.qt.widgets.@NonNull QStyleOptionViewItem option, io.qt.core.@NonNull QRect rect){
drawFocus_native_QPainter_ptr_cref_QStyleOptionViewItem_cref_QRect_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(painter), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(rect));
}
@QtUninvokable
private native void drawFocus_native_QPainter_ptr_cref_QStyleOptionViewItem_cref_QRect_constfct(long __this__nativeId, long painter, long option, long rect);
/**
* See QAbstractItemDelegate:: editorEvent(QEvent*, QAbstractItemModel*, QStyleOptionViewItem, QModelIndex)
*/
@QtUninvokable
@Override
public boolean editorEvent(io.qt.core.@Nullable QEvent event, io.qt.core.@Nullable QAbstractItemModel model, io.qt.widgets.@NonNull QStyleOptionViewItem option, io.qt.core.@NonNull QModelIndex index){
return editorEvent_native_QEvent_ptr_QAbstractItemModel_ptr_cref_QStyleOptionViewItem_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event), QtJambi_LibraryUtilities.internal.checkedNativeId(model), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native boolean editorEvent_native_QEvent_ptr_QAbstractItemModel_ptr_cref_QStyleOptionViewItem_cref_QModelIndex(long __this__nativeId, long event, long model, long option, long index);
/**
* See QObject:: eventFilter(QObject*, QEvent*)
*/
@QtUninvokable
@Override
public boolean eventFilter(io.qt.core.@Nullable QObject object, io.qt.core.@Nullable QEvent event){
return eventFilter_native_QObject_ptr_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(object), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@QtUninvokable
private native boolean eventFilter_native_QObject_ptr_QEvent_ptr(long __this__nativeId, long object, long event);
/**
* See QAbstractItemDelegate:: paint(QPainter*, QStyleOptionViewItem, QModelIndex)const
*/
@QtUninvokable
@Override
public void paint(io.qt.gui.@Nullable QPainter painter, io.qt.widgets.@NonNull QStyleOptionViewItem option, io.qt.core.@NonNull QModelIndex index){
paint_native_QPainter_ptr_cref_QStyleOptionViewItem_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(painter), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native void paint_native_QPainter_ptr_cref_QStyleOptionViewItem_cref_QModelIndex_constfct(long __this__nativeId, long painter, long option, long index);
/**
* See QAbstractItemDelegate:: setEditorData(QWidget*, QModelIndex)const
*/
@QtUninvokable
@Override
public void setEditorData(io.qt.widgets.@Nullable QWidget editor, io.qt.core.@NonNull QModelIndex index){
setEditorData_native_QWidget_ptr_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(editor), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native void setEditorData_native_QWidget_ptr_cref_QModelIndex_constfct(long __this__nativeId, long editor, long index);
/**
* See QAbstractItemDelegate:: setModelData(QWidget*, QAbstractItemModel*, QModelIndex)const
*/
@QtUninvokable
@Override
public void setModelData(io.qt.widgets.@Nullable QWidget editor, io.qt.core.@Nullable QAbstractItemModel model, io.qt.core.@NonNull QModelIndex index){
setModelData_native_QWidget_ptr_QAbstractItemModel_ptr_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(editor), QtJambi_LibraryUtilities.internal.checkedNativeId(model), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native void setModelData_native_QWidget_ptr_QAbstractItemModel_ptr_cref_QModelIndex_constfct(long __this__nativeId, long editor, long model, long index);
/**
* See QAbstractItemDelegate:: sizeHint(QStyleOptionViewItem, QModelIndex)const
*/
@QtUninvokable
@Override
public io.qt.core.@NonNull QSize sizeHint(io.qt.widgets.@NonNull QStyleOptionViewItem option, io.qt.core.@NonNull QModelIndex index){
return sizeHint_native_cref_QStyleOptionViewItem_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native io.qt.core.QSize sizeHint_native_cref_QStyleOptionViewItem_cref_QModelIndex_constfct(long __this__nativeId, long option, long index);
/**
* See QAbstractItemDelegate:: updateEditorGeometry(QWidget*, QStyleOptionViewItem, QModelIndex)const
*/
@QtUninvokable
@Override
public void updateEditorGeometry(io.qt.widgets.@Nullable QWidget editor, io.qt.widgets.@NonNull QStyleOptionViewItem option, io.qt.core.@NonNull QModelIndex index){
updateEditorGeometry_native_QWidget_ptr_cref_QStyleOptionViewItem_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(editor), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native void updateEditorGeometry_native_QWidget_ptr_cref_QStyleOptionViewItem_cref_QModelIndex_constfct(long __this__nativeId, long editor, long option, long index);
/**
* See QItemDelegate:: selectedPixmap(QPixmap, QPalette, bool)
*/
protected static io.qt.gui.@NonNull QPixmap selectedPixmap(io.qt.gui.@NonNull QPixmap pixmap, io.qt.gui.@NonNull QPalette palette, boolean enabled){
return selectedPixmap_native_cref_QPixmap_cref_QPalette_bool(QtJambi_LibraryUtilities.internal.checkedNativeId(pixmap), QtJambi_LibraryUtilities.internal.checkedNativeId(palette), enabled);
}
private native static io.qt.gui.QPixmap selectedPixmap_native_cref_QPixmap_cref_QPalette_bool(long pixmap, long palette, boolean enabled);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QItemDelegate(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QItemDelegate(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QItemDelegate instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QItemDelegate(io.qt.core.QObject)}
* with parent = null
.
*/
public QItemDelegate() {
this((io.qt.core.QObject)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #hasClipping()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getClipping() {
return hasClipping();
}
/**
* Overloaded function for {@link #textRectangle(io.qt.gui.QPainter, io.qt.core.QRect, io.qt.gui.QFont, java.lang.String)}.
*/
@QtUninvokable
protected final io.qt.core.@NonNull QRect textRectangle(io.qt.gui.@Nullable QPainter painter, io.qt.core.@NonNull QRect rect, java.lang.@NonNull String font, java.lang.@NonNull String text) {
return textRectangle(painter, rect, new io.qt.gui.QFont(font), text);
}
}