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

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

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

import io.qt.*;


/**
 * 

Dialog widget for specifying colors

*

Java wrapper for Qt class QColorDialog

*/ public class QColorDialog extends io.qt.widgets.QDialog { /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QColorDialog.class); /** *

Java wrapper for Qt enum QColorDialog::ColorDialogOption

* * @see ColorDialogOptions */ public enum ColorDialogOption implements QtFlagEnumerator { /** *

Representing QColorDialog::ShowAlphaChannel

*/ ShowAlphaChannel(1), /** *

Representing QColorDialog::NoButtons

*/ NoButtons(2), /** *

Representing QColorDialog::DontUseNativeDialog

*/ DontUseNativeDialog(4); static { QtJambi_LibraryUtilities.initialize(); } private ColorDialogOption(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Create a QFlags of the enum entry. * @return QFlags */ public @NonNull ColorDialogOptions asFlags() { return new ColorDialogOptions(value); } /** * Combines this entry with other enum entry. * @param e enum entry * @return new flag */ public @NonNull ColorDialogOptions combined(@NonNull ColorDialogOption 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 ColorDialogOptions cleared(@NonNull ColorDialogOption e) { return asFlags().setFlag(e, false); } /** * Creates a new {@link ColorDialogOptions} from the entries. * @param values entries * @return new flag */ public static @NonNull ColorDialogOptions flags(@Nullable ColorDialogOption @NonNull... values) { return new ColorDialogOptions(values); } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull ColorDialogOption resolve(int value) { switch (value) { case 1: return ShowAlphaChannel; case 2: return NoButtons; case 4: return DontUseNativeDialog; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** * {@link QFlags} type for enum {@link ColorDialogOption} */ public static final class ColorDialogOptions extends QFlags implements Comparable { private static final long serialVersionUID = 0xacbf6e133d89b4c2L; static { QtJambi_LibraryUtilities.initialize(); } /** * Creates a new ColorDialogOptions where the flags in args are set. * @param args enum entries */ public ColorDialogOptions(@Nullable ColorDialogOption @NonNull... args){ super(args); } /** * Creates a new ColorDialogOptions with given value. * @param value */ public ColorDialogOptions(int value) { super(value); } /** * Combines this flags with enum entry. * @param e enum entry * @return new ColorDialogOptions */ @Override public final @NonNull ColorDialogOptions combined(@StrictNonNull ColorDialogOption e){ return new ColorDialogOptions(value() | e.value()); } /** * Sets the flag e * @param e enum entry * @return this */ public final @NonNull ColorDialogOptions setFlag(@Nullable ColorDialogOption 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 ColorDialogOptions setFlag(@Nullable ColorDialogOption 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 ColorDialogOptions. * @return array of enum entries */ @Override public final @NonNull ColorDialogOption @NonNull[] flags(){ return super.flags(ColorDialogOption.values()); } /** * {@inheritDoc} */ @Override public final @NonNull ColorDialogOptions clone(){ return new ColorDialogOptions(value()); } /** * {@inheritDoc} */ @Override public final int compareTo(@StrictNonNull ColorDialogOptions other){ return Integer.compare(value(), other.value()); } } /** *

See QColorDialog::colorSelected(QColor)

*/ public final @NonNull Signal1 colorSelected = new Signal1<>(); /** *

See QColorDialog::currentColorChanged(QColor)

*/ @QtPropertyNotify(name="currentColor") public final @NonNull Signal1 currentColorChanged = new Signal1<>(); /** *

See QColorDialog::QColorDialog(QColor,QWidget*)

*/ public QColorDialog(io.qt.gui.@NonNull QColor initial, io.qt.widgets.@Nullable QWidget parent){ super((QPrivateConstructor)null); initialize_native(this, initial, parent); } private native static void initialize_native(QColorDialog instance, io.qt.gui.QColor initial, io.qt.widgets.QWidget parent); /** *

See QColorDialog::QColorDialog(QWidget*)

*/ public QColorDialog(io.qt.widgets.@Nullable QWidget parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QColorDialog instance, io.qt.widgets.QWidget parent); /** *

See QColorDialog::currentColor()const

*/ @QtPropertyReader(name="currentColor") @QtUninvokable public final io.qt.gui.@NonNull QColor currentColor(){ return currentColor_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QColor currentColor_native_constfct(long __this__nativeId); /** *

See QColorDialog::open(QObject*,const char*)

*/ @QtUninvokable public final void open(io.qt.core.@Nullable QObject receiver, java.lang.@Nullable String member){ if(!member.startsWith("1") || !member.startsWith("2")) member = '1'+member; open_native_QObject_ptr_const_char_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(receiver), member); } @QtUninvokable private native void open_native_QObject_ptr_const_char_ptr(long __this__nativeId, long receiver, java.lang.String member); /** *

See QColorDialog::options()const

*/ @QtPropertyReader(name="options") @QtUninvokable public final io.qt.widgets.QColorDialog.@NonNull ColorDialogOptions options(){ return new io.qt.widgets.QColorDialog.ColorDialogOptions(options_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int options_native_constfct(long __this__nativeId); /** *

See QColorDialog::selectedColor()const

*/ @QtUninvokable public final io.qt.gui.@NonNull QColor selectedColor(){ return selectedColor_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QColor selectedColor_native_constfct(long __this__nativeId); /** *

See QColorDialog::setCurrentColor(QColor)

*/ @QtPropertyWriter(name="currentColor") @QtUninvokable public final void setCurrentColor(io.qt.gui.@NonNull QColor color){ setCurrentColor_native_cref_QColor(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(color)); } @QtUninvokable private native void setCurrentColor_native_cref_QColor(long __this__nativeId, long color); /** *

See QColorDialog::setOption(QColorDialog::ColorDialogOption,bool)

*/ @QtUninvokable public final void setOption(io.qt.widgets.QColorDialog.@NonNull ColorDialogOption option, boolean on){ setOption_native_QColorDialog_ColorDialogOption_bool(QtJambi_LibraryUtilities.internal.nativeId(this), option.value(), on); } @QtUninvokable private native void setOption_native_QColorDialog_ColorDialogOption_bool(long __this__nativeId, int option, boolean on); /** *

See QColorDialog::setOptions(QColorDialog::ColorDialogOptions)

*/ @QtPropertyWriter(name="options") @QtUninvokable public final void setOptions(io.qt.widgets.QColorDialog.@NonNull ColorDialogOptions options){ setOptions_native_QColorDialog_ColorDialogOptions(QtJambi_LibraryUtilities.internal.nativeId(this), options.value()); } @QtUninvokable private native void setOptions_native_QColorDialog_ColorDialogOptions(long __this__nativeId, int options); /** *

See QColorDialog::testOption(QColorDialog::ColorDialogOption)const

*/ @QtUninvokable public final boolean testOption(io.qt.widgets.QColorDialog.@NonNull ColorDialogOption option){ return testOption_native_QColorDialog_ColorDialogOption_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), option.value()); } @QtUninvokable private native boolean testOption_native_QColorDialog_ColorDialogOption_constfct(long __this__nativeId, int option); /** *

See QWidget::changeEvent(QEvent*)

*/ @QtUninvokable @Override protected void changeEvent(io.qt.core.@Nullable QEvent event){ changeEvent_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event)); } @QtUninvokable private native void changeEvent_native_QEvent_ptr(long __this__nativeId, long event); /** *

See QDialog::done(int)

*/ @QtUninvokable @Override public void done(int result){ done_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), result); } @QtUninvokable private native void done_native_int(long __this__nativeId, int result); /** *

See QWidget::setVisible(bool)

*/ @QtUninvokable @Override public void setVisible(boolean visible){ setVisible_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), visible); } @QtUninvokable private native void setVisible_native_bool(long __this__nativeId, boolean visible); /** *

See QColorDialog::customColor(int)

*/ public native static io.qt.gui.@NonNull QColor customColor(int index); /** *

See QColorDialog::customCount()

*/ public native static int customCount(); /** *

See QColorDialog::getColor(QColor,QWidget*,QString,QColorDialog::ColorDialogOptions)

*/ public static io.qt.gui.@NonNull QColor getColor(io.qt.gui.@NonNull QColor initial, io.qt.widgets.@Nullable QWidget parent, java.lang.@NonNull String title, io.qt.widgets.QColorDialog.@NonNull ColorDialogOptions options){ return getColor_native_cref_QColor_QWidget_ptr_cref_QString_QColorDialog_ColorDialogOptions(QtJambi_LibraryUtilities.internal.checkedNativeId(initial), QtJambi_LibraryUtilities.internal.checkedNativeId(parent), title, options.value()); } private native static io.qt.gui.QColor getColor_native_cref_QColor_QWidget_ptr_cref_QString_QColorDialog_ColorDialogOptions(long initial, long parent, java.lang.String title, int options); /** *

See QColorDialog::setCustomColor(int,QColor)

*/ public static void setCustomColor(int index, io.qt.gui.@NonNull QColor color){ setCustomColor_native_int_QColor(index, QtJambi_LibraryUtilities.internal.checkedNativeId(color)); } private native static void setCustomColor_native_int_QColor(int index, long color); /** *

See QColorDialog::setStandardColor(int,QColor)

*/ public static void setStandardColor(int index, io.qt.gui.@NonNull QColor color){ setStandardColor_native_int_QColor(index, QtJambi_LibraryUtilities.internal.checkedNativeId(color)); } private native static void setStandardColor_native_int_QColor(int index, long color); /** *

See QColorDialog::standardColor(int)

*/ public native static io.qt.gui.@NonNull QColor standardColor(int index); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QColorDialog(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QColorDialog(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QColorDialog instance, QDeclarativeConstructor constructor); /** *

See QColorDialog::open(QObject *, const char *)

*/ @QtUninvokable public final void open(io.qt.core.QMetaObject.@StrictNonNull Slot1 selectedSlot) { io.qt.core.QMetaMethod metaMethod = io.qt.core.QMetaMethod.fromMethod(java.util.Objects.requireNonNull(selectedSlot)); if(metaMethod==null || !metaMethod.isValid()) { throw new IllegalArgumentException("Unable to detect slot for given handle."); } if(metaMethod.parameterCount()!=1) { throw new IllegalArgumentException("Connected method does not take a single argument: "+metaMethod.cppMethodSignature()); } if(metaMethod.parameterType(0)!=io.qt.core.QMetaType.Type.QColor.value()) { throw new IllegalArgumentException("Method does not take a single QColor argument: "+metaMethod.cppMethodSignature()); } io.qt.core.QObject object = QtJambi_LibraryUtilities.internal.lambdaContext(selectedSlot); if(object==null) { throw new IllegalArgumentException("Unable to determine QObject from given slot handle."); } open(object, metaMethod); } /** *

See QColorDialog::open(QObject *, const char *)

*/ @QtUninvokable public final void open(io.qt.core.QMetaObject.@StrictNonNull Connectable1 selectedSignal) { io.qt.core.QMetaMethod metaMethod = io.qt.core.QMetaMethod.fromSignal(selectedSignal); if(metaMethod==null || !metaMethod.isValid()) { throw new IllegalArgumentException("Unable to detect signal for given handle."); } if(metaMethod.parameterCount()!=1) { throw new IllegalArgumentException("Connected method does not take a single argument: "+metaMethod.cppMethodSignature()); } if(metaMethod.parameterType(0)!=io.qt.core.QMetaType.Type.QColor.value()) { throw new IllegalArgumentException("Method does not take a single QColor argument: "+metaMethod.cppMethodSignature()); } if(!(selectedSignal.containingObject() instanceof io.qt.core.QObject)) { throw new IllegalArgumentException("Unable to determine QObject from given signal handle."); } open((io.qt.core.QObject)selectedSignal.containingObject(), metaMethod); } private native void open(io.qt.core.QObject obj, io.qt.core.QMetaMethod metaMethod); /** *

Overloaded constructor for {@link #QColorDialog(io.qt.gui.QColor, io.qt.widgets.QWidget)} * with parent = null.

*/ public QColorDialog(io.qt.gui.@NonNull QColor initial) { this(initial, (io.qt.widgets.QWidget)null); } /** *

Overloaded constructor for {@link #QColorDialog(io.qt.core.Qt.GlobalColor, io.qt.widgets.QWidget)} * with parent = null.

*/ public QColorDialog(io.qt.core.Qt.@NonNull GlobalColor initial) { this(initial, (io.qt.widgets.QWidget)null); } /** *

Overloaded constructor for {@link #QColorDialog(io.qt.gui.QColor, io.qt.widgets.QWidget)}.

*/ public QColorDialog(io.qt.core.Qt.@NonNull GlobalColor initial, io.qt.widgets.@Nullable QWidget parent) { this(new io.qt.gui.QColor(initial), parent); } /** *

Overloaded constructor for {@link #QColorDialog(io.qt.gui.QRgba64, io.qt.widgets.QWidget)} * with parent = null.

*/ public QColorDialog(io.qt.gui.@NonNull QRgba64 initial) { this(initial, (io.qt.widgets.QWidget)null); } /** *

Overloaded constructor for {@link #QColorDialog(io.qt.gui.QColor, io.qt.widgets.QWidget)}.

*/ public QColorDialog(io.qt.gui.@NonNull QRgba64 initial, io.qt.widgets.@Nullable QWidget parent) { this(new io.qt.gui.QColor(initial), parent); } /** *

Overloaded constructor for {@link #QColorDialog(java.lang.String, io.qt.widgets.QWidget)} * with parent = null.

*/ public QColorDialog(java.lang.@NonNull String initial) { this(initial, (io.qt.widgets.QWidget)null); } /** *

Overloaded constructor for {@link #QColorDialog(io.qt.gui.QColor, io.qt.widgets.QWidget)}.

*/ public QColorDialog(java.lang.@NonNull String initial, io.qt.widgets.@Nullable QWidget parent) { this(new io.qt.gui.QColor(initial), parent); } /** *

Overloaded constructor for {@link #QColorDialog(io.qt.widgets.QWidget)} * with parent = null.

*/ public QColorDialog() { this((io.qt.widgets.QWidget)null); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.gui.@NonNull QColor getCurrentColor() { return currentColor(); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.widgets.QColorDialog.@NonNull ColorDialogOptions getOptions() { return options(); } /** *

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

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

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

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

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

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

Overloaded function for {@link #setOption(io.qt.widgets.QColorDialog.ColorDialogOption, boolean)} * with on = true.

*/ @QtUninvokable public final void setOption(io.qt.widgets.QColorDialog.@NonNull ColorDialogOption option) { setOption(option, (boolean)true); } /** *

Overloaded function for {@link #setOptions(io.qt.widgets.QColorDialog.ColorDialogOptions)}.

*/ @QtUninvokable public final void setOptions(io.qt.widgets.QColorDialog.@NonNull ColorDialogOption @NonNull... options) { setOptions(new io.qt.widgets.QColorDialog.ColorDialogOptions(options)); } /** *

Overloaded function for {@link #getColor(io.qt.gui.QColor, io.qt.widgets.QWidget, java.lang.String, io.qt.widgets.QColorDialog.ColorDialogOptions)} * with options = new io.qt.widgets.QColorDialog.ColorDialogOptions(0).

*/ public static io.qt.gui.@NonNull QColor getColor(io.qt.gui.@NonNull QColor initial, io.qt.widgets.@Nullable QWidget parent, java.lang.@NonNull String title) { return getColor(initial, parent, title, new io.qt.widgets.QColorDialog.ColorDialogOptions(0)); } /** *

Overloaded function for {@link #getColor(io.qt.gui.QColor, io.qt.widgets.QWidget, java.lang.String, io.qt.widgets.QColorDialog.ColorDialogOptions)}

*

with:

    *
  • title = (String)null
  • *
  • options = new io.qt.widgets.QColorDialog.ColorDialogOptions(0)
  • *
*/ public static io.qt.gui.@NonNull QColor getColor(io.qt.gui.@NonNull QColor initial, io.qt.widgets.@Nullable QWidget parent) { return getColor(initial, parent, (String)null, new io.qt.widgets.QColorDialog.ColorDialogOptions(0)); } /** *

Overloaded function for {@link #getColor(io.qt.gui.QColor, io.qt.widgets.QWidget, java.lang.String, io.qt.widgets.QColorDialog.ColorDialogOptions)}

*

with:

    *
  • parent = null
  • *
  • title = (String)null
  • *
  • options = new io.qt.widgets.QColorDialog.ColorDialogOptions(0)
  • *
*/ public static io.qt.gui.@NonNull QColor getColor(io.qt.gui.@NonNull QColor initial) { return getColor(initial, (io.qt.widgets.QWidget)null, (String)null, new io.qt.widgets.QColorDialog.ColorDialogOptions(0)); } /** *

Overloaded function for {@link #getColor(io.qt.gui.QColor, io.qt.widgets.QWidget, java.lang.String, io.qt.widgets.QColorDialog.ColorDialogOptions)}

*

with:

    *
  • initial = new io.qt.gui.QColor(io.qt.core.Qt.GlobalColor.white)
  • *
  • parent = null
  • *
  • title = (String)null
  • *
  • options = new io.qt.widgets.QColorDialog.ColorDialogOptions(0)
  • *
*/ public static io.qt.gui.@NonNull QColor getColor() { return getColor(new io.qt.gui.QColor(io.qt.core.Qt.GlobalColor.white), (io.qt.widgets.QWidget)null, (String)null, new io.qt.widgets.QColorDialog.ColorDialogOptions(0)); } /** *

Overloaded function for {@link #getColor(io.qt.core.Qt.GlobalColor, io.qt.widgets.QWidget, java.lang.String, io.qt.widgets.QColorDialog.ColorDialogOptions)} * with options = new io.qt.widgets.QColorDialog.ColorDialogOptions(0).

*/ public static io.qt.gui.@NonNull QColor getColor(io.qt.core.Qt.@NonNull GlobalColor initial, io.qt.widgets.@Nullable QWidget parent, java.lang.@NonNull String title) { return getColor(initial, parent, title, new io.qt.widgets.QColorDialog.ColorDialogOptions(0)); } /** *

Overloaded function for {@link #getColor(io.qt.core.Qt.GlobalColor, io.qt.widgets.QWidget, java.lang.String, io.qt.widgets.QColorDialog.ColorDialogOptions)}

*

with:

    *
  • title = (String)null
  • *
  • options = new io.qt.widgets.QColorDialog.ColorDialogOptions(0)
  • *
*/ public static io.qt.gui.@NonNull QColor getColor(io.qt.core.Qt.@NonNull GlobalColor initial, io.qt.widgets.@Nullable QWidget parent) { return getColor(initial, parent, (String)null, new io.qt.widgets.QColorDialog.ColorDialogOptions(0)); } /** *

Overloaded function for {@link #getColor(io.qt.core.Qt.GlobalColor, io.qt.widgets.QWidget, java.lang.String, io.qt.widgets.QColorDialog.ColorDialogOptions)}

*

with:

    *
  • parent = null
  • *
  • title = (String)null
  • *
  • options = new io.qt.widgets.QColorDialog.ColorDialogOptions(0)
  • *
*/ public static io.qt.gui.@NonNull QColor getColor(io.qt.core.Qt.@NonNull GlobalColor initial) { return getColor(initial, (io.qt.widgets.QWidget)null, (String)null, new io.qt.widgets.QColorDialog.ColorDialogOptions(0)); } /** *

Overloaded function for {@link #getColor(io.qt.gui.QColor, io.qt.widgets.QWidget, java.lang.String, io.qt.widgets.QColorDialog.ColorDialogOptions)}.

*/ public static io.qt.gui.@NonNull QColor getColor(io.qt.core.Qt.@NonNull GlobalColor initial, io.qt.widgets.@Nullable QWidget parent, java.lang.@NonNull String title, io.qt.widgets.QColorDialog.@NonNull ColorDialogOptions options) { return getColor(new io.qt.gui.QColor(initial), parent, title, options); } /** *

Overloaded function for {@link #getColor(io.qt.gui.QRgba64, io.qt.widgets.QWidget, java.lang.String, io.qt.widgets.QColorDialog.ColorDialogOptions)} * with options = new io.qt.widgets.QColorDialog.ColorDialogOptions(0).

*/ public static io.qt.gui.@NonNull QColor getColor(io.qt.gui.@NonNull QRgba64 initial, io.qt.widgets.@Nullable QWidget parent, java.lang.@NonNull String title) { return getColor(initial, parent, title, new io.qt.widgets.QColorDialog.ColorDialogOptions(0)); } /** *

Overloaded function for {@link #getColor(io.qt.gui.QRgba64, io.qt.widgets.QWidget, java.lang.String, io.qt.widgets.QColorDialog.ColorDialogOptions)}

*

with:

    *
  • title = (String)null
  • *
  • options = new io.qt.widgets.QColorDialog.ColorDialogOptions(0)
  • *
*/ public static io.qt.gui.@NonNull QColor getColor(io.qt.gui.@NonNull QRgba64 initial, io.qt.widgets.@Nullable QWidget parent) { return getColor(initial, parent, (String)null, new io.qt.widgets.QColorDialog.ColorDialogOptions(0)); } /** *

Overloaded function for {@link #getColor(io.qt.gui.QRgba64, io.qt.widgets.QWidget, java.lang.String, io.qt.widgets.QColorDialog.ColorDialogOptions)}

*

with:

    *
  • parent = null
  • *
  • title = (String)null
  • *
  • options = new io.qt.widgets.QColorDialog.ColorDialogOptions(0)
  • *
*/ public static io.qt.gui.@NonNull QColor getColor(io.qt.gui.@NonNull QRgba64 initial) { return getColor(initial, (io.qt.widgets.QWidget)null, (String)null, new io.qt.widgets.QColorDialog.ColorDialogOptions(0)); } /** *

Overloaded function for {@link #getColor(io.qt.gui.QColor, io.qt.widgets.QWidget, java.lang.String, io.qt.widgets.QColorDialog.ColorDialogOptions)}.

*/ public static io.qt.gui.@NonNull QColor getColor(io.qt.gui.@NonNull QRgba64 initial, io.qt.widgets.@Nullable QWidget parent, java.lang.@NonNull String title, io.qt.widgets.QColorDialog.@NonNull ColorDialogOptions options) { return getColor(new io.qt.gui.QColor(initial), parent, title, options); } /** *

Overloaded function for {@link #getColor(java.lang.String, io.qt.widgets.QWidget, java.lang.String, io.qt.widgets.QColorDialog.ColorDialogOptions)} * with options = new io.qt.widgets.QColorDialog.ColorDialogOptions(0).

*/ public static io.qt.gui.@NonNull QColor getColor(java.lang.@NonNull String initial, io.qt.widgets.@Nullable QWidget parent, java.lang.@NonNull String title) { return getColor(initial, parent, title, new io.qt.widgets.QColorDialog.ColorDialogOptions(0)); } /** *

Overloaded function for {@link #getColor(java.lang.String, io.qt.widgets.QWidget, java.lang.String, io.qt.widgets.QColorDialog.ColorDialogOptions)}

*

with:

    *
  • title = (String)null
  • *
  • options = new io.qt.widgets.QColorDialog.ColorDialogOptions(0)
  • *
*/ public static io.qt.gui.@NonNull QColor getColor(java.lang.@NonNull String initial, io.qt.widgets.@Nullable QWidget parent) { return getColor(initial, parent, (String)null, new io.qt.widgets.QColorDialog.ColorDialogOptions(0)); } /** *

Overloaded function for {@link #getColor(java.lang.String, io.qt.widgets.QWidget, java.lang.String, io.qt.widgets.QColorDialog.ColorDialogOptions)}

*

with:

    *
  • parent = null
  • *
  • title = (String)null
  • *
  • options = new io.qt.widgets.QColorDialog.ColorDialogOptions(0)
  • *
*/ public static io.qt.gui.@NonNull QColor getColor(java.lang.@NonNull String initial) { return getColor(initial, (io.qt.widgets.QWidget)null, (String)null, new io.qt.widgets.QColorDialog.ColorDialogOptions(0)); } /** *

Overloaded function for {@link #getColor(io.qt.gui.QColor, io.qt.widgets.QWidget, java.lang.String, io.qt.widgets.QColorDialog.ColorDialogOptions)}.

*/ public static io.qt.gui.@NonNull QColor getColor(java.lang.@NonNull String initial, io.qt.widgets.@Nullable QWidget parent, java.lang.@NonNull String title, io.qt.widgets.QColorDialog.@NonNull ColorDialogOptions options) { return getColor(new io.qt.gui.QColor(initial), parent, title, options); } /** *

Overloaded function for {@link #getColor(io.qt.gui.QColor, io.qt.widgets.QWidget, java.lang.String, io.qt.widgets.QColorDialog.ColorDialogOptions)}.

*/ public static io.qt.gui.@NonNull QColor getColor(io.qt.gui.@NonNull QColor initial, io.qt.widgets.@Nullable QWidget parent, java.lang.@NonNull String title, io.qt.widgets.QColorDialog.@NonNull ColorDialogOption @NonNull... options) { return getColor(initial, parent, title, new io.qt.widgets.QColorDialog.ColorDialogOptions(options)); } /** *

Overloaded function for {@link #getColor(io.qt.gui.QColor, io.qt.widgets.QWidget, java.lang.String, io.qt.widgets.QColorDialog.ColorDialogOptions)}.

*/ public static io.qt.gui.@NonNull QColor getColor(io.qt.core.Qt.@NonNull GlobalColor initial, io.qt.widgets.@Nullable QWidget parent, java.lang.@NonNull String title, io.qt.widgets.QColorDialog.@NonNull ColorDialogOption @NonNull... options) { return getColor(new io.qt.gui.QColor(initial), parent, title, new io.qt.widgets.QColorDialog.ColorDialogOptions(options)); } /** *

Overloaded function for {@link #getColor(io.qt.gui.QColor, io.qt.widgets.QWidget, java.lang.String, io.qt.widgets.QColorDialog.ColorDialogOptions)}.

*/ public static io.qt.gui.@NonNull QColor getColor(io.qt.gui.@NonNull QRgba64 initial, io.qt.widgets.@Nullable QWidget parent, java.lang.@NonNull String title, io.qt.widgets.QColorDialog.@NonNull ColorDialogOption @NonNull... options) { return getColor(new io.qt.gui.QColor(initial), parent, title, new io.qt.widgets.QColorDialog.ColorDialogOptions(options)); } /** *

Overloaded function for {@link #getColor(io.qt.gui.QColor, io.qt.widgets.QWidget, java.lang.String, io.qt.widgets.QColorDialog.ColorDialogOptions)}.

*/ public static io.qt.gui.@NonNull QColor getColor(java.lang.@NonNull String initial, io.qt.widgets.@Nullable QWidget parent, java.lang.@NonNull String title, io.qt.widgets.QColorDialog.@NonNull ColorDialogOption @NonNull... options) { return getColor(new io.qt.gui.QColor(initial), parent, title, new io.qt.widgets.QColorDialog.ColorDialogOptions(options)); } /** *

Overloaded function for {@link #setCustomColor(int, io.qt.gui.QColor)}.

*/ public static void setCustomColor(int index, io.qt.core.Qt.@NonNull GlobalColor color) { setCustomColor(index, new io.qt.gui.QColor(color)); } /** *

Overloaded function for {@link #setCustomColor(int, io.qt.gui.QColor)}.

*/ public static void setCustomColor(int index, io.qt.gui.@NonNull QRgba64 color) { setCustomColor(index, new io.qt.gui.QColor(color)); } /** *

Overloaded function for {@link #setCustomColor(int, io.qt.gui.QColor)}.

*/ public static void setCustomColor(int index, java.lang.@NonNull String color) { setCustomColor(index, new io.qt.gui.QColor(color)); } /** *

Overloaded function for {@link #setStandardColor(int, io.qt.gui.QColor)}.

*/ public static void setStandardColor(int index, io.qt.core.Qt.@NonNull GlobalColor color) { setStandardColor(index, new io.qt.gui.QColor(color)); } /** *

Overloaded function for {@link #setStandardColor(int, io.qt.gui.QColor)}.

*/ public static void setStandardColor(int index, io.qt.gui.@NonNull QRgba64 color) { setStandardColor(index, new io.qt.gui.QColor(color)); } /** *

Overloaded function for {@link #setStandardColor(int, io.qt.gui.QColor)}.

*/ public static void setStandardColor(int index, java.lang.@NonNull String color) { setStandardColor(index, new io.qt.gui.QColor(color)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy