
io.qt.widgets.QStyleOptionRubberBand Maven / Gradle / Ivy
package io.qt.widgets;
/**
* Used to describe the parameters needed for drawing a rubber band
* Java wrapper for Qt class QStyleOptionRubberBand
*/
public class QStyleOptionRubberBand extends io.qt.widgets.QStyleOption
implements java.lang.Cloneable
{
/**
* See QStyleOptionRubberBand::QStyleOptionRubberBand()
*/
public QStyleOptionRubberBand(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QStyleOptionRubberBand instance);
/**
* See QStyleOptionRubberBand::QStyleOptionRubberBand(QStyleOptionRubberBand)
*/
public QStyleOptionRubberBand(io.qt.widgets.QStyleOptionRubberBand other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QStyleOptionRubberBand instance, io.qt.widgets.QStyleOptionRubberBand other);
@io.qt.QtUninvokable
public final void set(io.qt.widgets.QStyleOptionRubberBand arg__1){
set_native_cref_QStyleOptionRubberBand(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@io.qt.QtUninvokable
private native void set_native_cref_QStyleOptionRubberBand(long __this__nativeId, long arg__1);
/**
* Whether the rubber band is required to be drawn in an opaque style
* See QStyleOptionRubberBand::opaque
*/
@io.qt.QtUninvokable
public final void setOpaque(boolean opaque){
setOpaque_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), opaque);
}
@io.qt.QtUninvokable
private native void setOpaque_native_bool(long __this__nativeId, boolean opaque);
/**
* Whether the rubber band is required to be drawn in an opaque style
* See QStyleOptionRubberBand::opaque
*/
@io.qt.QtUninvokable
public final boolean opaque(){
return opaque_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean opaque_native(long __this__nativeId);
/**
* The shape of the rubber band
* See QStyleOptionRubberBand::shape
*/
@io.qt.QtUninvokable
public final void setShape(io.qt.widgets.QRubberBand.Shape shape){
setShape_native_cref_QRubberBand_Shape(QtJambi_LibraryUtilities.internal.nativeId(this), shape.value());
}
@io.qt.QtUninvokable
private native void setShape_native_cref_QRubberBand_Shape(long __this__nativeId, int shape);
/**
* The shape of the rubber band
* See QStyleOptionRubberBand::shape
*/
@io.qt.QtUninvokable
public final io.qt.widgets.QRubberBand.Shape shape(){
return io.qt.widgets.QRubberBand.Shape.resolve(shape_native(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int shape_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QStyleOptionRubberBand(QPrivateConstructor p) { super(p); }
@Override
public QStyleOptionRubberBand clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native QStyleOptionRubberBand clone_native(long __this_nativeId);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy