io.qt.widgets.QListView Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* List or icon view onto a model
* Java wrapper for Qt class QListView
*/
public class QListView extends io.qt.widgets.QAbstractItemView
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QListView.class);
/**
* Java wrapper for Qt enum QListView::Flow
*/
public enum Flow implements QtEnumerator {
/**
* Representing QListView:: LeftToRight
*/
LeftToRight(0),
/**
* Representing QListView:: TopToBottom
*/
TopToBottom(1);
static {
QtJambi_LibraryUtilities.initialize();
}
private Flow(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull Flow resolve(int value) {
switch (value) {
case 0: return LeftToRight;
case 1: return TopToBottom;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QListView::LayoutMode
*/
public enum LayoutMode implements QtEnumerator {
/**
* Representing QListView:: SinglePass
*/
SinglePass(0),
/**
* Representing QListView:: Batched
*/
Batched(1);
static {
QtJambi_LibraryUtilities.initialize();
}
private LayoutMode(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull LayoutMode resolve(int value) {
switch (value) {
case 0: return SinglePass;
case 1: return Batched;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QListView::Movement
*/
public enum Movement implements QtEnumerator {
/**
* Representing QListView:: Static
*/
Static(0),
/**
* Representing QListView:: Free
*/
Free(1),
/**
* Representing QListView:: Snap
*/
Snap(2);
static {
QtJambi_LibraryUtilities.initialize();
}
private Movement(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull Movement resolve(int value) {
switch (value) {
case 0: return Static;
case 1: return Free;
case 2: return Snap;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QListView::ResizeMode
*/
public enum ResizeMode implements QtEnumerator {
/**
* Representing QListView:: Fixed
*/
Fixed(0),
/**
* Representing QListView:: Adjust
*/
Adjust(1);
static {
QtJambi_LibraryUtilities.initialize();
}
private ResizeMode(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull ResizeMode resolve(int value) {
switch (value) {
case 0: return Fixed;
case 1: return Adjust;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QListView::ViewMode
*/
public enum ViewMode implements QtEnumerator {
/**
* Representing QListView:: ListMode
*/
ListMode(0),
/**
* Representing QListView:: IconMode
*/
IconMode(1);
static {
QtJambi_LibraryUtilities.initialize();
}
private ViewMode(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull ViewMode resolve(int value) {
switch (value) {
case 0: return ListMode;
case 1: return IconMode;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QListView:: indexesMoved(QModelIndexList)
*/
public final @NonNull Signal1> indexesMoved = new Signal1<>();
/**
* See QListView:: QListView(QWidget*)
*/
public QListView(io.qt.widgets.@Nullable QWidget parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QListView instance, io.qt.widgets.QWidget parent);
/**
* See QListView:: batchSize()const
*/
@QtPropertyReader(name="batchSize")
@QtUninvokable
public final int batchSize(){
return batchSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int batchSize_native_constfct(long __this__nativeId);
/**
* See QListView:: clearPropertyFlags()
*/
@QtUninvokable
public final void clearPropertyFlags(){
clearPropertyFlags_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void clearPropertyFlags_native(long __this__nativeId);
/**
* See QListView:: contentsSize()const
*/
@QtUninvokable
protected final io.qt.core.@NonNull QSize contentsSize(){
return contentsSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QSize contentsSize_native_constfct(long __this__nativeId);
/**
*
*/
@QtPropertyReader(name="flow")
@QtUninvokable
public final io.qt.widgets.QListView.@NonNull Flow flow(){
return io.qt.widgets.QListView.Flow.resolve(flow_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int flow_native_constfct(long __this__nativeId);
/**
* See QListView:: gridSize()const
*/
@QtPropertyReader(name="gridSize")
@QtUninvokable
public final io.qt.core.@NonNull QSize gridSize(){
return gridSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QSize gridSize_native_constfct(long __this__nativeId);
/**
* See QListView:: isRowHidden(int)const
*/
@QtUninvokable
public final boolean isRowHidden(int row){
return isRowHidden_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), row);
}
@QtUninvokable
private native boolean isRowHidden_native_int_constfct(long __this__nativeId, int row);
/**
* See QListView:: isSelectionRectVisible()const
*/
@QtPropertyReader(name="selectionRectVisible")
@QtUninvokable
public final boolean isSelectionRectVisible(){
return isSelectionRectVisible_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isSelectionRectVisible_native_constfct(long __this__nativeId);
/**
* See QListView:: isWrapping()const
*/
@QtPropertyReader(name="isWrapping")
@QtUninvokable
public final boolean isWrapping(){
return isWrapping_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isWrapping_native_constfct(long __this__nativeId);
/**
* See QListView:: itemAlignment()const
*/
@QtPropertyReader(name="itemAlignment")
@QtUninvokable
public final io.qt.core.Qt.@NonNull Alignment itemAlignment(){
return new io.qt.core.Qt.Alignment(itemAlignment_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int itemAlignment_native_constfct(long __this__nativeId);
/**
* See QListView:: layoutMode()const
*/
@QtPropertyReader(name="layoutMode")
@QtUninvokable
public final io.qt.widgets.QListView.@NonNull LayoutMode layoutMode(){
return io.qt.widgets.QListView.LayoutMode.resolve(layoutMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int layoutMode_native_constfct(long __this__nativeId);
/**
* See QListView:: modelColumn()const
*/
@QtPropertyReader(name="modelColumn")
@QtUninvokable
public final int modelColumn(){
return modelColumn_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int modelColumn_native_constfct(long __this__nativeId);
/**
* See QListView:: movement()const
*/
@QtPropertyReader(name="movement")
@QtUninvokable
public final io.qt.widgets.QListView.@NonNull Movement movement(){
return io.qt.widgets.QListView.Movement.resolve(movement_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int movement_native_constfct(long __this__nativeId);
/**
* See QListView:: rectForIndex(QModelIndex)const
*/
@QtUninvokable
protected final io.qt.core.@NonNull QRect rectForIndex(io.qt.core.@NonNull QModelIndex index){
return rectForIndex_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native io.qt.core.QRect rectForIndex_native_cref_QModelIndex_constfct(long __this__nativeId, long index);
/**
* See QListView:: resizeContents(int, int)
*/
@QtUninvokable
protected final void resizeContents(int width, int height){
resizeContents_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), width, height);
}
@QtUninvokable
private native void resizeContents_native_int_int(long __this__nativeId, int width, int height);
/**
* See QListView:: resizeMode()const
*/
@QtPropertyReader(name="resizeMode")
@QtUninvokable
public final io.qt.widgets.QListView.@NonNull ResizeMode resizeMode(){
return io.qt.widgets.QListView.ResizeMode.resolve(resizeMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int resizeMode_native_constfct(long __this__nativeId);
/**
* See QListView:: setBatchSize(int)
*/
@QtPropertyWriter(name="batchSize")
@QtUninvokable
public final void setBatchSize(int batchSize){
setBatchSize_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), batchSize);
}
@QtUninvokable
private native void setBatchSize_native_int(long __this__nativeId, int batchSize);
/**
* See QListView:: setFlow(QListView::Flow)
*/
@QtPropertyWriter(name="flow")
@QtUninvokable
public final void setFlow(io.qt.widgets.QListView.@NonNull Flow flow){
setFlow_native_QListView_Flow(QtJambi_LibraryUtilities.internal.nativeId(this), flow.value());
}
@QtUninvokable
private native void setFlow_native_QListView_Flow(long __this__nativeId, int flow);
/**
* See QListView:: setGridSize(QSize)
*/
@QtPropertyWriter(name="gridSize")
@QtUninvokable
public final void setGridSize(io.qt.core.@NonNull QSize size){
setGridSize_native_cref_QSize(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(size));
}
@QtUninvokable
private native void setGridSize_native_cref_QSize(long __this__nativeId, long size);
/**
* See QListView:: setItemAlignment(Qt::Alignment)
*/
@QtPropertyWriter(name="itemAlignment")
@QtUninvokable
public final void setItemAlignment(io.qt.core.Qt.@NonNull Alignment alignment){
setItemAlignment_native_Qt_Alignment(QtJambi_LibraryUtilities.internal.nativeId(this), alignment.value());
}
@QtUninvokable
private native void setItemAlignment_native_Qt_Alignment(long __this__nativeId, int alignment);
/**
* See QListView:: setLayoutMode(QListView::LayoutMode)
*/
@QtPropertyWriter(name="layoutMode")
@QtUninvokable
public final void setLayoutMode(io.qt.widgets.QListView.@NonNull LayoutMode mode){
setLayoutMode_native_QListView_LayoutMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@QtUninvokable
private native void setLayoutMode_native_QListView_LayoutMode(long __this__nativeId, int mode);
/**
* See QListView:: setModelColumn(int)
*/
@QtPropertyWriter(name="modelColumn")
@QtUninvokable
public final void setModelColumn(int column){
setModelColumn_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), column);
}
@QtUninvokable
private native void setModelColumn_native_int(long __this__nativeId, int column);
/**
* See QListView:: setMovement(QListView::Movement)
*/
@QtPropertyWriter(name="movement")
@QtUninvokable
public final void setMovement(io.qt.widgets.QListView.@NonNull Movement movement){
setMovement_native_QListView_Movement(QtJambi_LibraryUtilities.internal.nativeId(this), movement.value());
}
@QtUninvokable
private native void setMovement_native_QListView_Movement(long __this__nativeId, int movement);
/**
* See QListView:: setPositionForIndex(QPoint, QModelIndex)
*/
@QtUninvokable
protected final void setPositionForIndex(io.qt.core.@NonNull QPoint position, io.qt.core.@NonNull QModelIndex index){
setPositionForIndex_native_cref_QPoint_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(position), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native void setPositionForIndex_native_cref_QPoint_cref_QModelIndex(long __this__nativeId, long position, long index);
/**
* See QListView:: setResizeMode(QListView::ResizeMode)
*/
@QtPropertyWriter(name="resizeMode")
@QtUninvokable
public final void setResizeMode(io.qt.widgets.QListView.@NonNull ResizeMode mode){
setResizeMode_native_QListView_ResizeMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@QtUninvokable
private native void setResizeMode_native_QListView_ResizeMode(long __this__nativeId, int mode);
/**
* See QListView:: setRowHidden(int, bool)
*/
@QtUninvokable
public final void setRowHidden(int row, boolean hide){
setRowHidden_native_int_bool(QtJambi_LibraryUtilities.internal.nativeId(this), row, hide);
}
@QtUninvokable
private native void setRowHidden_native_int_bool(long __this__nativeId, int row, boolean hide);
/**
* See QListView:: setSelectionRectVisible(bool)
*/
@QtPropertyWriter(name="selectionRectVisible")
@QtUninvokable
public final void setSelectionRectVisible(boolean show){
setSelectionRectVisible_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), show);
}
@QtUninvokable
private native void setSelectionRectVisible_native_bool(long __this__nativeId, boolean show);
/**
* See QListView:: setSpacing(int)
*/
@QtPropertyWriter(name="spacing")
@QtUninvokable
public final void setSpacing(int space){
setSpacing_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), space);
}
@QtUninvokable
private native void setSpacing_native_int(long __this__nativeId, int space);
/**
* See QListView:: setUniformItemSizes(bool)
*/
@QtPropertyWriter(name="uniformItemSizes")
@QtUninvokable
public final void setUniformItemSizes(boolean enable){
setUniformItemSizes_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enable);
}
@QtUninvokable
private native void setUniformItemSizes_native_bool(long __this__nativeId, boolean enable);
/**
* See QListView:: setViewMode(QListView::ViewMode)
*/
@QtPropertyWriter(name="viewMode")
@QtUninvokable
public final void setViewMode(io.qt.widgets.QListView.@NonNull ViewMode mode){
setViewMode_native_QListView_ViewMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@QtUninvokable
private native void setViewMode_native_QListView_ViewMode(long __this__nativeId, int mode);
/**
* See QListView:: setWordWrap(bool)
*/
@QtPropertyWriter(name="wordWrap")
@QtUninvokable
public final void setWordWrap(boolean on){
setWordWrap_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), on);
}
@QtUninvokable
private native void setWordWrap_native_bool(long __this__nativeId, boolean on);
/**
* See QListView:: setWrapping(bool)
*/
@QtPropertyWriter(name="isWrapping")
@QtUninvokable
public final void setWrapping(boolean enable){
setWrapping_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enable);
}
@QtUninvokable
private native void setWrapping_native_bool(long __this__nativeId, boolean enable);
/**
*
*/
@QtPropertyReader(name="spacing")
@QtUninvokable
public final int spacing(){
return spacing_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int spacing_native_constfct(long __this__nativeId);
/**
* See QListView:: uniformItemSizes()const
*/
@QtPropertyReader(name="uniformItemSizes")
@QtUninvokable
public final boolean uniformItemSizes(){
return uniformItemSizes_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean uniformItemSizes_native_constfct(long __this__nativeId);
/**
* See QListView:: viewMode()const
*/
@QtPropertyReader(name="viewMode")
@QtUninvokable
public final io.qt.widgets.QListView.@NonNull ViewMode viewMode(){
return io.qt.widgets.QListView.ViewMode.resolve(viewMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int viewMode_native_constfct(long __this__nativeId);
/**
* See QListView:: wordWrap()const
*/
@QtPropertyReader(name="wordWrap")
@QtUninvokable
public final boolean wordWrap(){
return wordWrap_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean wordWrap_native_constfct(long __this__nativeId);
/**
* See QAbstractItemView:: currentChanged(QModelIndex, QModelIndex)
*/
@QtUninvokable
@Override
protected void currentChanged(io.qt.core.@NonNull QModelIndex current, io.qt.core.@NonNull QModelIndex previous){
currentChanged_native_cref_QModelIndex_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(current), QtJambi_LibraryUtilities.internal.checkedNativeId(previous));
}
@QtUninvokable
private native void currentChanged_native_cref_QModelIndex_cref_QModelIndex(long __this__nativeId, long current, long previous);
/**
* See QAbstractItemView:: dataChanged(QModelIndex, QModelIndex, QList<int>)
*/
@QtUninvokable
@Override
protected void dataChanged(io.qt.core.@NonNull QModelIndex topLeft, io.qt.core.@NonNull QModelIndex bottomRight, java.util.@NonNull Collection roles){
dataChanged_native_cref_QModelIndex_cref_QModelIndex_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(topLeft), QtJambi_LibraryUtilities.internal.checkedNativeId(bottomRight), roles);
}
@QtUninvokable
private native void dataChanged_native_cref_QModelIndex_cref_QModelIndex_cref_QList(long __this__nativeId, long topLeft, long bottomRight, java.util.Collection roles);
/**
* See QAbstractItemView:: doItemsLayout()
*/
@QtUninvokable
@Override
public void doItemsLayout(){
doItemsLayout_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void doItemsLayout_native(long __this__nativeId);
/**
* See QWidget:: dragLeaveEvent(QDragLeaveEvent*)
*/
@QtUninvokable
@Override
protected void dragLeaveEvent(io.qt.gui.@Nullable QDragLeaveEvent e){
dragLeaveEvent_native_QDragLeaveEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@QtUninvokable
private native void dragLeaveEvent_native_QDragLeaveEvent_ptr(long __this__nativeId, long e);
/**
* See QWidget:: dragMoveEvent(QDragMoveEvent*)
*/
@QtUninvokable
@Override
protected void dragMoveEvent(io.qt.gui.@Nullable QDragMoveEvent e){
dragMoveEvent_native_QDragMoveEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@QtUninvokable
private native void dragMoveEvent_native_QDragMoveEvent_ptr(long __this__nativeId, long e);
/**
* See QWidget:: dropEvent(QDropEvent*)
*/
@QtUninvokable
@Override
protected void dropEvent(io.qt.gui.@Nullable QDropEvent e){
dropEvent_native_QDropEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@QtUninvokable
private native void dropEvent_native_QDropEvent_ptr(long __this__nativeId, long e);
/**
*
*/
@QtUninvokable
@Override
public boolean event(io.qt.core.@Nullable QEvent e){
return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@QtUninvokable
private native boolean event_native_QEvent_ptr(long __this__nativeId, long e);
/**
* See QAbstractItemView:: horizontalOffset()const
*/
@QtUninvokable
@Override
protected int horizontalOffset(){
return horizontalOffset_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int horizontalOffset_native_constfct(long __this__nativeId);
/**
* See QAbstractItemView:: indexAt(QPoint)const
*/
@QtUninvokable
@Override
public io.qt.core.@NonNull QModelIndex indexAt(io.qt.core.@NonNull QPoint p){
return indexAt_native_cref_QPoint_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p));
}
@QtUninvokable
private native io.qt.core.QModelIndex indexAt_native_cref_QPoint_constfct(long __this__nativeId, long p);
/**
* See QAbstractItemView:: initViewItemOption(QStyleOptionViewItem*)const
*/
@QtUninvokable
@Override
protected void initViewItemOption(io.qt.widgets.@Nullable QStyleOptionViewItem option){
initViewItemOption_native_QStyleOptionViewItem_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(option));
}
@QtUninvokable
private native void initViewItemOption_native_QStyleOptionViewItem_ptr_constfct(long __this__nativeId, long option);
/**
* See QAbstractItemView:: isIndexHidden(QModelIndex)const
*/
@QtUninvokable
@Override
protected boolean isIndexHidden(io.qt.core.@NonNull QModelIndex index){
return isIndexHidden_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native boolean isIndexHidden_native_cref_QModelIndex_constfct(long __this__nativeId, long index);
/**
* See QWidget:: mouseMoveEvent(QMouseEvent*)
*/
@QtUninvokable
@Override
protected void mouseMoveEvent(io.qt.gui.@Nullable QMouseEvent e){
mouseMoveEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@QtUninvokable
private native void mouseMoveEvent_native_QMouseEvent_ptr(long __this__nativeId, long e);
/**
* See QWidget:: mouseReleaseEvent(QMouseEvent*)
*/
@QtUninvokable
@Override
protected void mouseReleaseEvent(io.qt.gui.@Nullable QMouseEvent e){
mouseReleaseEvent_native_QMouseEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@QtUninvokable
private native void mouseReleaseEvent_native_QMouseEvent_ptr(long __this__nativeId, long e);
/**
* See QAbstractItemView:: moveCursor(QAbstractItemView::CursorAction, Qt::KeyboardModifiers)
*/
@QtUninvokable
@Override
protected io.qt.core.@NonNull QModelIndex moveCursor(io.qt.widgets.QAbstractItemView.@NonNull CursorAction cursorAction, io.qt.core.Qt.@NonNull KeyboardModifiers modifiers){
return moveCursor_native_QAbstractItemView_CursorAction_Qt_KeyboardModifiers(QtJambi_LibraryUtilities.internal.nativeId(this), cursorAction.value(), modifiers.value());
}
@QtUninvokable
private native io.qt.core.QModelIndex moveCursor_native_QAbstractItemView_CursorAction_Qt_KeyboardModifiers(long __this__nativeId, int cursorAction, int modifiers);
/**
* See QWidget:: paintEvent(QPaintEvent*)
*/
@QtUninvokable
@Override
protected void paintEvent(io.qt.gui.@Nullable QPaintEvent e){
paintEvent_native_QPaintEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@QtUninvokable
private native void paintEvent_native_QPaintEvent_ptr(long __this__nativeId, long e);
/**
* See QAbstractItemView:: reset()
*/
@QtUninvokable
@Override
public void reset(){
reset_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void reset_native(long __this__nativeId);
/**
* See QWidget:: resizeEvent(QResizeEvent*)
*/
@QtUninvokable
@Override
protected void resizeEvent(io.qt.gui.@Nullable QResizeEvent e){
resizeEvent_native_QResizeEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@QtUninvokable
private native void resizeEvent_native_QResizeEvent_ptr(long __this__nativeId, long e);
/**
* See QAbstractItemView:: rowsAboutToBeRemoved(QModelIndex, int, int)
*/
@QtUninvokable
@Override
protected void rowsAboutToBeRemoved(io.qt.core.@NonNull QModelIndex parent, int start, int end){
rowsAboutToBeRemoved_native_cref_QModelIndex_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(parent), start, end);
}
@QtUninvokable
private native void rowsAboutToBeRemoved_native_cref_QModelIndex_int_int(long __this__nativeId, long parent, int start, int end);
/**
* See QAbstractItemView:: rowsInserted(QModelIndex, int, int)
*/
@QtUninvokable
@Override
protected void rowsInserted(io.qt.core.@NonNull QModelIndex parent, int start, int end){
rowsInserted_native_cref_QModelIndex_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(parent), start, end);
}
@QtUninvokable
private native void rowsInserted_native_cref_QModelIndex_int_int(long __this__nativeId, long parent, int start, int end);
/**
* See QAbstractScrollArea:: scrollContentsBy(int, int)
*/
@QtUninvokable
@Override
protected void scrollContentsBy(int dx, int dy){
scrollContentsBy_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), dx, dy);
}
@QtUninvokable
private native void scrollContentsBy_native_int_int(long __this__nativeId, int dx, int dy);
/**
* See QAbstractItemView:: scrollTo(QModelIndex, QAbstractItemView::ScrollHint)
*/
@QtUninvokable
@Override
public void scrollTo(io.qt.core.@NonNull QModelIndex index, io.qt.widgets.QAbstractItemView.@NonNull ScrollHint hint){
scrollTo_native_cref_QModelIndex_QAbstractItemView_ScrollHint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index), hint.value());
}
@QtUninvokable
private native void scrollTo_native_cref_QModelIndex_QAbstractItemView_ScrollHint(long __this__nativeId, long index, int hint);
/**
* See QAbstractItemView:: selectedIndexes()const
*/
@QtUninvokable
@Override
protected java.util.@NonNull List selectedIndexes(){
return selectedIndexes_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.util.List selectedIndexes_native_constfct(long __this__nativeId);
/**
* See QAbstractItemView:: selectionChanged(QItemSelection, QItemSelection)
*/
@QtUninvokable
@Override
protected void selectionChanged(io.qt.core.@NonNull QItemSelection selected, io.qt.core.@NonNull QItemSelection deselected){
selectionChanged_native_cref_QItemSelection_cref_QItemSelection(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(selected), QtJambi_LibraryUtilities.internal.checkedNativeId(deselected));
}
@QtUninvokable
private native void selectionChanged_native_cref_QItemSelection_cref_QItemSelection(long __this__nativeId, long selected, long deselected);
/**
* See QAbstractItemView:: setRootIndex(QModelIndex)
*/
@QtUninvokable
@Override
public void setRootIndex(io.qt.core.@NonNull QModelIndex index){
setRootIndex_native_cref_QModelIndex(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native void setRootIndex_native_cref_QModelIndex(long __this__nativeId, long index);
/**
* See QAbstractItemView:: setSelection(QRect, QItemSelectionModel::SelectionFlags)
*/
@QtUninvokable
@Override
protected void setSelection(io.qt.core.@NonNull QRect rect, io.qt.core.QItemSelectionModel.@NonNull SelectionFlags command){
setSelection_native_cref_QRect_QItemSelectionModel_SelectionFlags(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect), command.value());
}
@QtUninvokable
private native void setSelection_native_cref_QRect_QItemSelectionModel_SelectionFlags(long __this__nativeId, long rect, int command);
/**
* See QAbstractItemView:: startDrag(Qt::DropActions)
*/
@QtUninvokable
@Override
protected void startDrag(io.qt.core.Qt.@NonNull DropActions supportedActions){
startDrag_native_Qt_DropActions(QtJambi_LibraryUtilities.internal.nativeId(this), supportedActions.value());
}
@QtUninvokable
private native void startDrag_native_Qt_DropActions(long __this__nativeId, int supportedActions);
/**
* See QObject:: timerEvent(QTimerEvent*)
*/
@QtUninvokable
@Override
protected void timerEvent(io.qt.core.@Nullable QTimerEvent e){
timerEvent_native_QTimerEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@QtUninvokable
private native void timerEvent_native_QTimerEvent_ptr(long __this__nativeId, long e);
/**
* See QAbstractItemView:: updateGeometries()
*/
@QtUninvokable
@Override
protected void updateGeometries(){
updateGeometries_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void updateGeometries_native(long __this__nativeId);
/**
* See QAbstractItemView:: verticalOffset()const
*/
@QtUninvokable
@Override
protected int verticalOffset(){
return verticalOffset_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int verticalOffset_native_constfct(long __this__nativeId);
/**
* See QAbstractScrollArea:: viewportSizeHint()const
*/
@QtUninvokable
@Override
protected io.qt.core.@NonNull QSize viewportSizeHint(){
return viewportSizeHint_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QSize viewportSizeHint_native_constfct(long __this__nativeId);
/**
* See QAbstractItemView:: visualRect(QModelIndex)const
*/
@QtUninvokable
@Override
public io.qt.core.@NonNull QRect visualRect(io.qt.core.@NonNull QModelIndex index){
return visualRect_native_cref_QModelIndex_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(index));
}
@QtUninvokable
private native io.qt.core.QRect visualRect_native_cref_QModelIndex_constfct(long __this__nativeId, long index);
/**
* See QAbstractItemView:: visualRegionForSelection(QItemSelection)const
*/
@QtUninvokable
@Override
protected io.qt.gui.@NonNull QRegion visualRegionForSelection(io.qt.core.@NonNull QItemSelection selection){
return visualRegionForSelection_native_cref_QItemSelection_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(selection));
}
@QtUninvokable
private native io.qt.gui.QRegion visualRegionForSelection_native_cref_QItemSelection_constfct(long __this__nativeId, long selection);
/**
* See QWidget:: wheelEvent(QWheelEvent*)
*/
@QtUninvokable
@Override
protected void wheelEvent(io.qt.gui.@Nullable QWheelEvent e){
wheelEvent_native_QWheelEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(e));
}
@QtUninvokable
private native void wheelEvent_native_QWheelEvent_ptr(long __this__nativeId, long e);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QListView(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QListView(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QListView instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QListView(io.qt.widgets.QWidget)}
* with parent = null
.
*/
public QListView() {
this((io.qt.widgets.QWidget)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #batchSize()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getBatchSize() {
return batchSize();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #flow()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.widgets.QListView.@NonNull Flow getFlow() {
return flow();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #gridSize()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QSize getGridSize() {
return gridSize();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isSelectionRectVisible()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getSelectionRectVisible() {
return isSelectionRectVisible();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #itemAlignment()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.Qt.@NonNull Alignment getItemAlignment() {
return itemAlignment();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #layoutMode()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.widgets.QListView.@NonNull LayoutMode getLayoutMode() {
return layoutMode();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #modelColumn()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getModelColumn() {
return modelColumn();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #movement()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.widgets.QListView.@NonNull Movement getMovement() {
return movement();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #resizeMode()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.widgets.QListView.@NonNull ResizeMode getResizeMode() {
return resizeMode();
}
/**
* Overloaded function for {@link #setItemAlignment(io.qt.core.Qt.Alignment)}.
*/
@QtUninvokable
public final void setItemAlignment(io.qt.core.Qt.@NonNull AlignmentFlag @NonNull... alignment) {
setItemAlignment(new io.qt.core.Qt.Alignment(alignment));
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #spacing()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final int getSpacing() {
return spacing();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #uniformItemSizes()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getUniformItemSizes() {
return uniformItemSizes();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #viewMode()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.widgets.QListView.@NonNull ViewMode getViewMode() {
return viewMode();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #wordWrap()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final boolean getWordWrap() {
return wordWrap();
}
}