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

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

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


/**
 * 

Maps device independent QColors to device dependent pixel values

*

Java wrapper for Qt class QColormap

*/ public class QColormap extends io.qt.QtObject implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** *

Java wrapper for Qt enum QColormap::Mode

*/ public enum Mode implements io.qt.QtEnumerator { Direct(0), Indexed(1), Gray(2); private Mode(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static Mode resolve(int value) { switch (value) { case 0: return Direct; case 1: return Indexed; case 2: return Gray; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

See QColormap::QColormap(QColormap)

*/ public QColormap(io.qt.widgets.QColormap colormap){ super((QPrivateConstructor)null); initialize_native(this, colormap); } private native static void initialize_native(QColormap instance, io.qt.widgets.QColormap colormap); /** *

See QColormap::colorAt(uint)const

*/ @io.qt.QtUninvokable public final io.qt.gui.QColor colorAt(int pixel){ return colorAt_native_uint_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), pixel); } @io.qt.QtUninvokable private native io.qt.gui.QColor colorAt_native_uint_constfct(long __this__nativeId, int pixel); /** *

See QColormap::colormap()const

*/ @io.qt.QtUninvokable public final io.qt.core.QList colormap(){ return colormap_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QList colormap_native_constfct(long __this__nativeId); /** *

See QColormap::depth()const

*/ @io.qt.QtUninvokable public final int depth(){ return depth_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int depth_native_constfct(long __this__nativeId); /** *

See QColormap::mode()const

*/ @io.qt.QtUninvokable public final io.qt.widgets.QColormap.Mode mode(){ return io.qt.widgets.QColormap.Mode.resolve(mode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int mode_native_constfct(long __this__nativeId); /** *

See QColormap::pixel(QColor)const

*/ @io.qt.QtUninvokable public final int pixel(io.qt.gui.QColor color){ return pixel_native_cref_QColor_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(color)); } @io.qt.QtUninvokable private native int pixel_native_cref_QColor_constfct(long __this__nativeId, long color); /** *

See QColormap::size()const

*/ @io.qt.QtUninvokable public final int size(){ return size_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int size_native_constfct(long __this__nativeId); /** *

Overloaded function for {@link #instance(int)} * with screen = -1.

*/ public static io.qt.widgets.QColormap instance() { return instance((int)-1); } /** *

See QColormap::instance(int)

*/ public native static io.qt.widgets.QColormap instance(int screen); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QColormap(QPrivateConstructor p) { super(p); } @Override public QColormap clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native QColormap clone_native(long __this_nativeId); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy