io.qt.widgets.QStyleOptionHeaderV2 Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* Used to describe the parameters for drawing a header
* Java wrapper for Qt class QStyleOptionHeaderV2
*/
public class QStyleOptionHeaderV2 extends io.qt.widgets.QStyleOptionHeader
implements java.lang.Cloneable
{
/**
* See QStyleOptionHeaderV2:: QStyleOptionHeaderV2()
*/
public QStyleOptionHeaderV2(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QStyleOptionHeaderV2 instance);
/**
* See QStyleOptionHeaderV2:: QStyleOptionHeaderV2(QStyleOptionHeaderV2)
*/
public QStyleOptionHeaderV2(io.qt.widgets.@NonNull QStyleOptionHeaderV2 other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QStyleOptionHeaderV2 instance, io.qt.widgets.QStyleOptionHeaderV2 other);
/**
* See QStyleOptionHeaderV2:: operator=(QStyleOptionHeaderV2)
*/
@QtUninvokable
public final void assign(io.qt.widgets.@NonNull QStyleOptionHeaderV2 arg__1){
assign_native_cref_QStyleOptionHeaderV2(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void assign_native_cref_QStyleOptionHeaderV2(long __this__nativeId, long arg__1);
/**
* Whether the section is the location at which a dragged section will be inserted
* See QStyleOptionHeaderV2:: isSectionDragTarget
*/
@QtUninvokable
public final void setIsSectionDragTarget(boolean isSectionDragTarget){
setIsSectionDragTarget_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), isSectionDragTarget);
}
@QtUninvokable
private native void setIsSectionDragTarget_native_bool(long __this__nativeId, boolean isSectionDragTarget);
/**
* Whether the section is the location at which a dragged section will be inserted
* See QStyleOptionHeaderV2:: isSectionDragTarget
*/
@QtUninvokable
public final boolean isSectionDragTarget(){
return isSectionDragTarget_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isSectionDragTarget_native(long __this__nativeId);
/**
* Where ellipsis should be added for text that is too long to fit into an item
* See QStyleOptionHeaderV2:: textElideMode
*/
@QtUninvokable
public final void setTextElideMode(io.qt.core.Qt.@NonNull TextElideMode textElideMode){
setTextElideMode_native_cref_Qt_TextElideMode(QtJambi_LibraryUtilities.internal.nativeId(this), textElideMode.value());
}
@QtUninvokable
private native void setTextElideMode_native_cref_Qt_TextElideMode(long __this__nativeId, int textElideMode);
/**
* Where ellipsis should be added for text that is too long to fit into an item
* See QStyleOptionHeaderV2:: textElideMode
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull TextElideMode textElideMode(){
return io.qt.core.Qt.TextElideMode.resolve(textElideMode_native(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int textElideMode_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QStyleOptionHeaderV2(QPrivateConstructor p) { super(p); }
/**
* Creates and returns a copy of this object.
See QStyleOptionHeaderV2:: QStyleOptionHeaderV2(QStyleOptionHeaderV2)
*/
@QtUninvokable
@Override
public QStyleOptionHeaderV2 clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QStyleOptionHeaderV2 clone_native(long __this_nativeId);
/**
* @deprecated Use {@link #assign(io.qt.widgets.QStyleOptionHeaderV2)} instead.
*/
@Deprecated
@QtUninvokable
public final void set(io.qt.widgets.@NonNull QStyleOptionHeaderV2 arg__1) {
assign(arg__1);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isSectionDragTarget()} instead.
*/
@QtUninvokable
public final boolean getIsSectionDragTarget() {
return isSectionDragTarget();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #textElideMode()} instead.
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull TextElideMode getTextElideMode() {
return textElideMode();
}
}