io.qt.widgets.QGraphicsBlurEffect Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.widgets;
import io.qt.*;
/**
* Blur effect
* Java wrapper for Qt class QGraphicsBlurEffect
*/
public class QGraphicsBlurEffect 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(QGraphicsBlurEffect.class);
/**
* Java wrapper for Qt enum QGraphicsBlurEffect::BlurHint
*
* @see BlurHints
*/
public enum BlurHint implements QtFlagEnumerator {
/**
* Representing QGraphicsBlurEffect:: PerformanceHint
*/
PerformanceHint(0),
/**
* Representing QGraphicsBlurEffect:: QualityHint
*/
QualityHint(1),
/**
* Representing QGraphicsBlurEffect:: AnimationHint
*/
AnimationHint(2);
static {
QtJambi_LibraryUtilities.initialize();
}
private BlurHint(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
public @NonNull BlurHints asFlags() {
return new BlurHints(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public @NonNull BlurHints combined(@NonNull BlurHint e) {
return asFlags().setFlag(e, true);
}
/**
* Excludes other enum entry from a flag of this entry.
* @param e enum entry
* @return new flag
*/
public @NonNull BlurHints cleared(@NonNull BlurHint e) {
return asFlags().setFlag(e, false);
}
/**
* Creates a new {@link BlurHints} from the entries.
* @param values entries
* @return new flag
*/
public static @NonNull BlurHints flags(@Nullable BlurHint @NonNull... values) {
return new BlurHints(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull BlurHint resolve(int value) {
switch (value) {
case 0: return PerformanceHint;
case 1: return QualityHint;
case 2: return AnimationHint;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* {@link QFlags} type for enum {@link BlurHint}
*/
public static final class BlurHints extends QFlags implements Comparable {
private static final long serialVersionUID = 0xafa4d2a0f7540ce1L;
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Creates a new BlurHints where the flags in args
are set.
* @param args enum entries
*/
public BlurHints(@Nullable BlurHint @NonNull... args){
super(args);
}
/**
* Creates a new BlurHints with given value
.
* @param value
*/
public BlurHints(int value) {
super(value);
}
/**
* Combines this flags with enum entry.
* @param e enum entry
* @return new BlurHints
*/
@Override
public final @NonNull BlurHints combined(@StrictNonNull BlurHint e){
return new BlurHints(value() | e.value());
}
/**
* Sets the flag e
* @param e enum entry
* @return this
*/
public final @NonNull BlurHints setFlag(@Nullable BlurHint e){
return setFlag(e, true);
}
/**
* Sets or clears the flag flag
* @param e enum entry
* @param on set (true) or clear (false)
* @return this
*/
public final @NonNull BlurHints setFlag(@Nullable BlurHint e, boolean on){
if (on) {
setValue(value() | e.value());
}else {
setValue(value() & ~e.value());
}
return this;
}
/**
* Returns an array of flag objects represented by this BlurHints.
* @return array of enum entries
*/
@Override
public final @NonNull BlurHint @NonNull[] flags(){
return super.flags(BlurHint.values());
}
/**
* {@inheritDoc}
*/
@Override
public final @NonNull BlurHints clone(){
return new BlurHints(value());
}
/**
* {@inheritDoc}
*/
@Override
public final int compareTo(@StrictNonNull BlurHints other){
return Integer.compare(value(), other.value());
}
}
/**
* See QGraphicsBlurEffect:: blurHintsChanged(QGraphicsBlurEffect::BlurHints)
*/
@QtPropertyNotify(name="blurHints")
public final @NonNull Signal1 blurHintsChanged = new Signal1<>();
/**
* See QGraphicsBlurEffect:: blurRadiusChanged(qreal)
*/
@QtPropertyNotify(name="blurRadius")
public final @NonNull Signal1 blurRadiusChanged = new Signal1<>();
/**
* See QGraphicsBlurEffect:: QGraphicsBlurEffect(QObject*)
*/
public QGraphicsBlurEffect(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QGraphicsBlurEffect instance, io.qt.core.QObject parent);
/**
* See QGraphicsBlurEffect:: blurHints()const
*/
@QtPropertyReader(name="blurHints")
@QtUninvokable
public final io.qt.widgets.QGraphicsBlurEffect.@NonNull BlurHints blurHints(){
return new io.qt.widgets.QGraphicsBlurEffect.BlurHints(blurHints_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int blurHints_native_constfct(long __this__nativeId);
/**
* See QGraphicsBlurEffect:: blurRadius()const
*/
@QtPropertyReader(name="blurRadius")
@QtUninvokable
public final double blurRadius(){
return blurRadius_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native double blurRadius_native_constfct(long __this__nativeId);
/**
* See QGraphicsBlurEffect:: setBlurHints(QGraphicsBlurEffect::BlurHints)
*/
@QtPropertyWriter(name="blurHints")
public final void setBlurHints(io.qt.widgets.QGraphicsBlurEffect.@NonNull BlurHints hints){
setBlurHints_native_QGraphicsBlurEffect_BlurHints(QtJambi_LibraryUtilities.internal.nativeId(this), hints.value());
}
private native void setBlurHints_native_QGraphicsBlurEffect_BlurHints(long __this__nativeId, int hints);
/**
* See QGraphicsBlurEffect:: setBlurRadius(qreal)
*/
@QtPropertyWriter(name="blurRadius")
public final void setBlurRadius(double blurRadius){
setBlurRadius_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), blurRadius);
}
private native void setBlurRadius_native_qreal(long __this__nativeId, double blurRadius);
/**
* See QGraphicsEffect:: boundingRectFor(QRectF)const
*/
@QtUninvokable
@Override
public io.qt.core.@NonNull QRectF boundingRectFor(io.qt.core.@NonNull QRectF rect){
return boundingRectFor_native_cref_QRectF_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect));
}
@QtUninvokable
private native io.qt.core.QRectF boundingRectFor_native_cref_QRectF_constfct(long __this__nativeId, long rect);
/**
* 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 QGraphicsBlurEffect(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QGraphicsBlurEffect(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QGraphicsBlurEffect instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QGraphicsBlurEffect(io.qt.core.QObject)}
* with parent = null
.
*/
public QGraphicsBlurEffect() {
this((io.qt.core.QObject)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #blurHints()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.widgets.QGraphicsBlurEffect.@NonNull BlurHints getBlurHints() {
return blurHints();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #blurRadius()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final double getBlurRadius() {
return blurRadius();
}
/**
* Overloaded function for {@link #setBlurHints(io.qt.widgets.QGraphicsBlurEffect.BlurHints)}.
*/
public final void setBlurHints(io.qt.widgets.QGraphicsBlurEffect.@NonNull BlurHint @NonNull... hints) {
setBlurHints(new io.qt.widgets.QGraphicsBlurEffect.BlurHints(hints));
}
}