All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.widgets.QStyleOptionFocusRect Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.widgets;

import io.qt.*;


/**
 * 

Used to describe the parameters for drawing a focus rectangle with QStyle

*

Java wrapper for Qt class QStyleOptionFocusRect

*/ public class QStyleOptionFocusRect extends io.qt.widgets.QStyleOption implements java.lang.Cloneable { /** *

See QStyleOptionFocusRect::QStyleOptionFocusRect()

*/ public QStyleOptionFocusRect(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QStyleOptionFocusRect instance); /** *

See QStyleOptionFocusRect::QStyleOptionFocusRect(QStyleOptionFocusRect)

*/ public QStyleOptionFocusRect(io.qt.widgets.@NonNull QStyleOptionFocusRect other){ super((QPrivateConstructor)null); initialize_native(this, other); } private native static void initialize_native(QStyleOptionFocusRect instance, io.qt.widgets.QStyleOptionFocusRect other); /** *

See QStyleOptionFocusRect::operator=(QStyleOptionFocusRect)

*/ @QtUninvokable public final void assign(io.qt.widgets.@NonNull QStyleOptionFocusRect arg__1){ assign_native_cref_QStyleOptionFocusRect(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void assign_native_cref_QStyleOptionFocusRect(long __this__nativeId, long arg__1); /** *

The background color on which the focus rectangle is being drawn

*

See QStyleOptionFocusRect::backgroundColor

*/ @QtUninvokable public final void setBackgroundColor(io.qt.gui.@NonNull QColor backgroundColor){ setBackgroundColor_native_cref_QColor(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(backgroundColor)); } @QtUninvokable private native void setBackgroundColor_native_cref_QColor(long __this__nativeId, long backgroundColor); /** *

The background color on which the focus rectangle is being drawn

*

See QStyleOptionFocusRect::backgroundColor

*/ @QtUninvokable public final io.qt.gui.@NonNull QColor backgroundColor(){ return backgroundColor_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QColor backgroundColor_native(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QStyleOptionFocusRect(QPrivateConstructor p) { super(p); } /** *

Creates and returns a copy of this object.

See QStyleOptionFocusRect::QStyleOptionFocusRect(QStyleOptionFocusRect)

*/ @QtUninvokable @Override public QStyleOptionFocusRect clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private static native QStyleOptionFocusRect clone_native(long __this_nativeId); /** * @deprecated Use {@link #assign(io.qt.widgets.QStyleOptionFocusRect)} instead. */ @Deprecated @QtUninvokable public final void set(io.qt.widgets.@NonNull QStyleOptionFocusRect arg__1) { assign(arg__1); } /** *

Overloaded function for {@link #setBackgroundColor(io.qt.gui.QColor)}.

*/ @QtUninvokable public final void setBackgroundColor(io.qt.core.Qt.@NonNull GlobalColor backgroundColor) { setBackgroundColor(new io.qt.gui.QColor(backgroundColor)); } /** *

Overloaded function for {@link #setBackgroundColor(io.qt.gui.QColor)}.

*/ @QtUninvokable public final void setBackgroundColor(io.qt.gui.@NonNull QRgba64 backgroundColor) { setBackgroundColor(new io.qt.gui.QColor(backgroundColor)); } /** *

Overloaded function for {@link #setBackgroundColor(io.qt.gui.QColor)}.

*/ @QtUninvokable public final void setBackgroundColor(java.lang.@NonNull String backgroundColor) { setBackgroundColor(new io.qt.gui.QColor(backgroundColor)); } /** * @hidden *

Kotlin property getter. In Java use {@link #backgroundColor()} instead.

*/ @QtUninvokable public final io.qt.gui.@NonNull QColor getBackgroundColor() { return backgroundColor(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy