io.qt.gui.QBrush Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
import io.qt.*;
/**
* Defines the fill pattern of shapes drawn by QPainter
* Java wrapper for Qt class QBrush
*/
public class QBrush extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QBrush:: QBrush()
*/
public QBrush(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QBrush instance);
/**
*
*/
public QBrush(io.qt.gui.@NonNull QBrush brush){
super((QPrivateConstructor)null);
initialize_native(this, brush);
}
private native static void initialize_native(QBrush instance, io.qt.gui.QBrush brush);
/**
* See QBrush:: QBrush(QColor, QPixmap)
*/
public QBrush(io.qt.gui.@NonNull QColor color, io.qt.gui.@NonNull QPixmap pixmap){
super((QPrivateConstructor)null);
initialize_native(this, color, pixmap);
}
private native static void initialize_native(QBrush instance, io.qt.gui.QColor color, io.qt.gui.QPixmap pixmap);
/**
* See QBrush:: QBrush(QColor, Qt::BrushStyle)
*/
public QBrush(io.qt.gui.@NonNull QColor color, io.qt.core.Qt.@NonNull BrushStyle bs){
super((QPrivateConstructor)null);
initialize_native(this, color, bs);
}
private native static void initialize_native(QBrush instance, io.qt.gui.QColor color, io.qt.core.Qt.BrushStyle bs);
/**
*
*/
public QBrush(io.qt.gui.@NonNull QGradient gradient){
super((QPrivateConstructor)null);
initialize_native(this, gradient);
}
private native static void initialize_native(QBrush instance, io.qt.gui.QGradient gradient);
/**
*
*/
public QBrush(io.qt.gui.@NonNull QImage image){
super((QPrivateConstructor)null);
initialize_native(this, image);
}
private native static void initialize_native(QBrush instance, io.qt.gui.QImage image);
/**
*
*/
public QBrush(io.qt.gui.@NonNull QPixmap pixmap){
super((QPrivateConstructor)null);
initialize_native(this, pixmap);
}
private native static void initialize_native(QBrush instance, io.qt.gui.QPixmap pixmap);
/**
* See QBrush:: QBrush(Qt::BrushStyle)
*/
public QBrush(io.qt.core.Qt.@NonNull BrushStyle bs){
super((QPrivateConstructor)null);
initialize_native(this, bs);
}
private native static void initialize_native(QBrush instance, io.qt.core.Qt.BrushStyle bs);
/**
* See QBrush:: QBrush(Qt::GlobalColor, QPixmap)
*/
public QBrush(io.qt.core.Qt.@NonNull GlobalColor color, io.qt.gui.@NonNull QPixmap pixmap){
super((QPrivateConstructor)null);
initialize_native(this, color, pixmap);
}
private native static void initialize_native(QBrush instance, io.qt.core.Qt.GlobalColor color, io.qt.gui.QPixmap pixmap);
/**
* See QBrush:: QBrush(Qt::GlobalColor, Qt::BrushStyle)
*/
public QBrush(io.qt.core.Qt.@NonNull GlobalColor color, io.qt.core.Qt.@NonNull BrushStyle bs){
super((QPrivateConstructor)null);
initialize_native(this, color, bs);
}
private native static void initialize_native(QBrush instance, io.qt.core.Qt.GlobalColor color, io.qt.core.Qt.BrushStyle bs);
/**
*
*/
@QtUninvokable
public final io.qt.gui.@NonNull QColor color(){
return color_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QColor color_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final io.qt.gui.@Nullable QGradient gradient(){
return gradient_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QGradient gradient_native_constfct(long __this__nativeId);
/**
* See QBrush:: isDetached()const
*/
@QtUninvokable
public final boolean isDetached(){
return isDetached_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isDetached_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final boolean isOpaque(){
return isOpaque_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isOpaque_native_constfct(long __this__nativeId);
/**
* See operator<<(QDataStream&, QBrush)
*/
@QtUninvokable
public void writeTo(io.qt.core.@StrictNonNull QDataStream arg__1){
java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected.");
writeTo_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void writeTo_native_ref_QDataStream(long __this__nativeId, long arg__1);
/**
*
*/
@QtUninvokable
public final void assign(io.qt.gui.@NonNull QBrush brush){
assign_native_cref_QBrush(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(brush));
}
@QtUninvokable
private native void assign_native_cref_QBrush(long __this__nativeId, long brush);
/**
* See QBrush:: operator==(QBrush)const
*/
@QtUninvokable
public final boolean equals(io.qt.gui.@NonNull QBrush b){
return equals_native_cref_QBrush_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(b));
}
@QtUninvokable
private native boolean equals_native_cref_QBrush_constfct(long __this__nativeId, long b);
/**
* See operator>>(QDataStream&, QBrush&)
*/
@QtUninvokable
public void readFrom(io.qt.core.@StrictNonNull QDataStream arg__1){
java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected.");
readFrom_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void readFrom_native_ref_QDataStream(long __this__nativeId, long arg__1);
/**
*
*/
@QtUninvokable
public final void setColor(io.qt.gui.@NonNull QColor color){
setColor_native_cref_QColor(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(color));
}
@QtUninvokable
private native void setColor_native_cref_QColor(long __this__nativeId, long color);
/**
* See QBrush:: setColor(Qt::GlobalColor)
*/
@QtUninvokable
public final void setColor(io.qt.core.Qt.@NonNull GlobalColor color){
setColor_native_Qt_GlobalColor(QtJambi_LibraryUtilities.internal.nativeId(this), color.value());
}
@QtUninvokable
private native void setColor_native_Qt_GlobalColor(long __this__nativeId, int color);
/**
* See QBrush:: setStyle(Qt::BrushStyle)
*/
@QtUninvokable
public final void setStyle(io.qt.core.Qt.@NonNull BrushStyle arg__1){
setStyle_native_Qt_BrushStyle(QtJambi_LibraryUtilities.internal.nativeId(this), arg__1.value());
}
@QtUninvokable
private native void setStyle_native_Qt_BrushStyle(long __this__nativeId, int arg__1);
/**
* See QBrush:: setTexture(QPixmap)
*/
@QtUninvokable
public final void setTexture(io.qt.gui.@NonNull QPixmap pixmap){
setTexture_native_cref_QPixmap(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pixmap));
}
@QtUninvokable
private native void setTexture_native_cref_QPixmap(long __this__nativeId, long pixmap);
/**
* See QBrush:: setTextureImage(QImage)
*/
@QtUninvokable
public final void setTextureImage(io.qt.gui.@NonNull QImage image){
setTextureImage_native_cref_QImage(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(image));
}
@QtUninvokable
private native void setTextureImage_native_cref_QImage(long __this__nativeId, long image);
/**
* See QBrush:: setTransform(QTransform)
*/
@QtUninvokable
public final void setTransform(io.qt.gui.@NonNull QTransform arg__1){
setTransform_native_cref_QTransform(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native void setTransform_native_cref_QTransform(long __this__nativeId, long arg__1);
/**
*
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull BrushStyle style(){
return io.qt.core.Qt.BrushStyle.resolve(style_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int style_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final void swap(io.qt.gui.@StrictNonNull QBrush other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
swap_native_ref_QBrush(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void swap_native_ref_QBrush(long __this__nativeId, long other);
/**
*
*/
@QtUninvokable
public final io.qt.gui.@NonNull QPixmap texture(){
return texture_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QPixmap texture_native_constfct(long __this__nativeId);
/**
* See QBrush:: textureImage()const
*/
@QtUninvokable
public final io.qt.gui.@NonNull QImage textureImage(){
return textureImage_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QImage textureImage_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public final io.qt.gui.@NonNull QTransform transform(){
return transform_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QTransform transform_native_constfct(long __this__nativeId);
/**
* See qHasPixmapTexture(QBrush)
*/
public static boolean qHasPixmapTexture(io.qt.gui.@NonNull QBrush brush){
return qHasPixmapTexture_native_cref_QBrush(QtJambi_LibraryUtilities.internal.checkedNativeId(brush));
}
private native static boolean qHasPixmapTexture_native_cref_QBrush(long brush);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QBrush(QPrivateConstructor p) { super(p); }
/**
* See QBrush:: operator==(QBrush)const
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other==null || other instanceof io.qt.gui.QBrush) {
return equals((io.qt.gui.QBrush) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QBrush)
.
*/
@QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native static int hashCode_native(long __this_nativeId);
/**
* See operator<<(QDebug, QBrush)
*/
@QtUninvokable
@Override
public @NonNull String toString() {
return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private static native String toString_native(long __this_nativeId);
/**
* Creates and returns a copy of this object.
*/
@QtUninvokable
@Override
public QBrush clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QBrush clone_native(long __this_nativeId);
/**
* Overloaded constructor for {@link #QBrush(io.qt.gui.QColor, io.qt.gui.QPixmap)}.
*/
public QBrush(io.qt.gui.@NonNull QRgba64 color, io.qt.gui.@NonNull QPixmap pixmap) {
this(new io.qt.gui.QColor(color), pixmap);
}
/**
* Overloaded constructor for {@link #QBrush(io.qt.gui.QColor, io.qt.core.Qt.BrushStyle)}
* with bs = io.qt.core.Qt.BrushStyle.SolidPattern
.
*/
public QBrush(io.qt.gui.@NonNull QColor color) {
this(color, io.qt.core.Qt.BrushStyle.SolidPattern);
}
/**
* Overloaded constructor for {@link #QBrush(io.qt.gui.QRgba64, io.qt.core.Qt.BrushStyle)}
* with bs = io.qt.core.Qt.BrushStyle.SolidPattern
.
*/
public QBrush(io.qt.gui.@NonNull QRgba64 color) {
this(color, io.qt.core.Qt.BrushStyle.SolidPattern);
}
/**
* Overloaded constructor for {@link #QBrush(io.qt.gui.QColor, io.qt.core.Qt.BrushStyle)}.
*/
public QBrush(io.qt.gui.@NonNull QRgba64 color, io.qt.core.Qt.@NonNull BrushStyle bs) {
this(new io.qt.gui.QColor(color), bs);
}
/**
* Overloaded constructor for {@link #QBrush(io.qt.core.Qt.GlobalColor, io.qt.core.Qt.BrushStyle)}
* with bs = io.qt.core.Qt.BrushStyle.SolidPattern
.
*/
public QBrush(io.qt.core.Qt.@NonNull GlobalColor color) {
this(color, io.qt.core.Qt.BrushStyle.SolidPattern);
}
/**
* Overloaded function for {@link #assign(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void assign(io.qt.core.Qt.@NonNull BrushStyle brush) {
assign(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #assign(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void assign(io.qt.gui.@NonNull QColor brush) {
assign(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #assign(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void assign(io.qt.core.Qt.@NonNull GlobalColor brush) {
assign(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #assign(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void assign(io.qt.gui.@NonNull QPixmap brush) {
assign(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #assign(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void assign(io.qt.gui.@NonNull QImage brush) {
assign(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #assign(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final void assign(io.qt.gui.@NonNull QGradient brush) {
assign(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #equals(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final boolean equals(io.qt.core.Qt.@NonNull BrushStyle b) {
return equals(new io.qt.gui.QBrush(b));
}
/**
* Overloaded function for {@link #equals(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final boolean equals(io.qt.gui.@NonNull QColor b) {
return equals(new io.qt.gui.QBrush(b));
}
/**
* Overloaded function for {@link #equals(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final boolean equals(io.qt.core.Qt.@NonNull GlobalColor b) {
return equals(new io.qt.gui.QBrush(b));
}
/**
* Overloaded function for {@link #equals(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final boolean equals(io.qt.gui.@NonNull QPixmap b) {
return equals(new io.qt.gui.QBrush(b));
}
/**
* Overloaded function for {@link #equals(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final boolean equals(io.qt.gui.@NonNull QImage b) {
return equals(new io.qt.gui.QBrush(b));
}
/**
* Overloaded function for {@link #equals(io.qt.gui.QBrush)}.
*/
@QtUninvokable
public final boolean equals(io.qt.gui.@NonNull QGradient b) {
return equals(new io.qt.gui.QBrush(b));
}
/**
* Overloaded function for {@link #setColor(io.qt.gui.QColor)}.
*/
@QtUninvokable
public final void setColor(io.qt.gui.@NonNull QRgba64 color) {
setColor(new io.qt.gui.QColor(color));
}
/**
* Overloaded function for {@link #setColor(io.qt.gui.QColor)}.
*/
@QtUninvokable
public final void setColor(java.lang.@NonNull String color) {
setColor(new io.qt.gui.QColor(color));
}
/**
* Overloaded function for {@link #qHasPixmapTexture(io.qt.gui.QBrush)}.
*/
public static boolean qHasPixmapTexture(io.qt.core.Qt.@NonNull BrushStyle brush) {
return qHasPixmapTexture(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #qHasPixmapTexture(io.qt.gui.QBrush)}.
*/
public static boolean qHasPixmapTexture(io.qt.gui.@NonNull QColor brush) {
return qHasPixmapTexture(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #qHasPixmapTexture(io.qt.gui.QBrush)}.
*/
public static boolean qHasPixmapTexture(io.qt.core.Qt.@NonNull GlobalColor brush) {
return qHasPixmapTexture(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #qHasPixmapTexture(io.qt.gui.QBrush)}.
*/
public static boolean qHasPixmapTexture(io.qt.gui.@NonNull QPixmap brush) {
return qHasPixmapTexture(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #qHasPixmapTexture(io.qt.gui.QBrush)}.
*/
public static boolean qHasPixmapTexture(io.qt.gui.@NonNull QImage brush) {
return qHasPixmapTexture(new io.qt.gui.QBrush(brush));
}
/**
* Overloaded function for {@link #qHasPixmapTexture(io.qt.gui.QBrush)}.
*/
public static boolean qHasPixmapTexture(io.qt.gui.@NonNull QGradient brush) {
return qHasPixmapTexture(new io.qt.gui.QBrush(brush));
}
}