io.qt.widgets.QGraphicsOpacityEffect Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* Opacity effect
* Java wrapper for Qt class QGraphicsOpacityEffect
*/
public class QGraphicsOpacityEffect extends io.qt.widgets.QGraphicsEffect
{
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QGraphicsOpacityEffect.class);
/**
* See QGraphicsOpacityEffect:: opacityChanged(qreal)
*/
@QtPropertyNotify(name="opacity")
public final @NonNull Signal1 opacityChanged = new Signal1<>();
/**
* See QGraphicsOpacityEffect:: opacityMaskChanged(QBrush)
*/
@QtPropertyNotify(name="opacityMask")
public final @NonNull Signal1 opacityMaskChanged = new Signal1<>();
/**
* See QGraphicsOpacityEffect:: QGraphicsOpacityEffect(QObject*)
*/
public QGraphicsOpacityEffect(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QGraphicsOpacityEffect instance, io.qt.core.QObject parent);
/**
* See QGraphicsOpacityEffect:: opacity()const
*/
@QtPropertyReader(name="opacity")
@QtUninvokable
public final double opacity(){
return opacity_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native double opacity_native_constfct(long __this__nativeId);
/**
* See QGraphicsOpacityEffect:: opacityMask()const
*/
@QtPropertyReader(name="opacityMask")
@QtUninvokable
public final io.qt.gui.@NonNull QBrush opacityMask(){
return opacityMask_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QBrush opacityMask_native_constfct(long __this__nativeId);
/**
* See QGraphicsOpacityEffect:: setOpacity(qreal)
*/
@QtPropertyWriter(name="opacity")
public final void setOpacity(double opacity){
setOpacity_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), opacity);
}
private native void setOpacity_native_qreal(long __this__nativeId, double opacity);
/**
* See QGraphicsOpacityEffect:: setOpacityMask(QBrush)
*/
@QtPropertyWriter(name="opacityMask")
public final void setOpacityMask(io.qt.gui.@NonNull QBrush mask){
setOpacityMask_native_cref_QBrush(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(mask));
}
private native void setOpacityMask_native_cref_QBrush(long __this__nativeId, long mask);
/**
* See QGraphicsEffect:: draw(QPainter*)
*/
@QtUninvokable
@Override
protected void draw(io.qt.gui.@Nullable QPainter painter){
draw_native_QPainter_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(painter));
}
@QtUninvokable
private native void draw_native_QPainter_ptr(long __this__nativeId, long painter);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QGraphicsOpacityEffect(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QGraphicsOpacityEffect(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QGraphicsOpacityEffect instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QGraphicsOpacityEffect(io.qt.core.QObject)}
* with parent = null
.
*/
public QGraphicsOpacityEffect() {
this((io.qt.core.QObject)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #opacity()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final double getOpacity() {
return opacity();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #opacityMask()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.gui.@NonNull QBrush getOpacityMask() {
return opacityMask();
}
/**
* Overloaded function for {@link #setOpacityMask(io.qt.gui.QBrush)}.
*/
public final void setOpacityMask(io.qt.core.Qt.@NonNull BrushStyle mask) {
setOpacityMask(new io.qt.gui.QBrush(mask));
}
/**
* Overloaded function for {@link #setOpacityMask(io.qt.gui.QBrush)}.
*/
public final void setOpacityMask(io.qt.gui.@NonNull QColor mask) {
setOpacityMask(new io.qt.gui.QBrush(mask));
}
/**
* Overloaded function for {@link #setOpacityMask(io.qt.gui.QBrush)}.
*/
public final void setOpacityMask(io.qt.core.Qt.@NonNull GlobalColor mask) {
setOpacityMask(new io.qt.gui.QBrush(mask));
}
/**
* Overloaded function for {@link #setOpacityMask(io.qt.gui.QBrush)}.
*/
public final void setOpacityMask(io.qt.gui.@NonNull QPixmap mask) {
setOpacityMask(new io.qt.gui.QBrush(mask));
}
/**
* Overloaded function for {@link #setOpacityMask(io.qt.gui.QBrush)}.
*/
public final void setOpacityMask(io.qt.gui.@NonNull QImage mask) {
setOpacityMask(new io.qt.gui.QBrush(mask));
}
/**
* Overloaded function for {@link #setOpacityMask(io.qt.gui.QBrush)}.
*/
public final void setOpacityMask(io.qt.gui.@NonNull QGradient mask) {
setOpacityMask(new io.qt.gui.QBrush(mask));
}
}