io.qt.gui.QIcon Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
/**
* Scalable icons in different modes and states
* Java wrapper for Qt class QIcon
*/
public class QIcon extends io.qt.QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QIcon::Mode
*/
public enum Mode implements io.qt.QtEnumerator {
Normal(0),
Disabled(1),
Active(2),
Selected(3);
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 Normal;
case 1: return Disabled;
case 2: return Active;
case 3: return Selected;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QIcon::State
*/
public enum State implements io.qt.QtEnumerator {
On(0),
Off(1);
private State(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 State resolve(int value) {
switch (value) {
case 0: return On;
case 1: return Off;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QIcon::QIcon()
*/
public QIcon(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QIcon instance);
/**
* See QIcon::QIcon(QIconEngine*)
*/
public QIcon(io.qt.gui.QIconEngine engine){
super((QPrivateConstructor)null);
initialize_native(this, engine);
}
private native static void initialize_native(QIcon instance, io.qt.gui.QIconEngine engine);
/**
*
*/
public QIcon(io.qt.gui.QIcon other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QIcon instance, io.qt.gui.QIcon other);
/**
*
*/
public QIcon(io.qt.gui.QPixmap pixmap){
super((QPrivateConstructor)null);
initialize_native(this, pixmap);
}
private native static void initialize_native(QIcon instance, io.qt.gui.QPixmap pixmap);
/**
*
*/
public QIcon(java.lang.String fileName){
super((QPrivateConstructor)null);
initialize_native(this, fileName);
}
private native static void initialize_native(QIcon instance, java.lang.String fileName);
/**
* Overloaded function for {@link #actualSize(io.qt.gui.QWindow, io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)}
* with state = io.qt.gui.QIcon.State.Off
.
*
* @deprecated Use actualSize(size) instead
*/
@Deprecated
@io.qt.QtUninvokable
public final io.qt.core.QSize actualSize(io.qt.gui.QWindow window, io.qt.core.QSize size, io.qt.gui.QIcon.Mode mode) {
return actualSize(window, size, mode, io.qt.gui.QIcon.State.Off);
}
/**
* Overloaded function for {@link #actualSize(io.qt.gui.QWindow, io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)}
* with:
* mode = io.qt.gui.QIcon.Mode.Normal
* state = io.qt.gui.QIcon.State.Off
*
*
* @deprecated Use actualSize(size) instead
*/
@Deprecated
@io.qt.QtUninvokable
public final io.qt.core.QSize actualSize(io.qt.gui.QWindow window, io.qt.core.QSize size) {
return actualSize(window, size, io.qt.gui.QIcon.Mode.Normal, io.qt.gui.QIcon.State.Off);
}
/**
* @deprecated Use actualSize(size) instead
*/
@Deprecated
@io.qt.QtUninvokable
public final io.qt.core.QSize actualSize(io.qt.gui.QWindow window, io.qt.core.QSize size, io.qt.gui.QIcon.Mode mode, io.qt.gui.QIcon.State state){
return actualSize_native_QWindow_ptr_cref_QSize_QIcon_Mode_QIcon_State_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(window), QtJambi_LibraryUtilities.internal.checkedNativeId(size), mode.value(), state.value());
}
@Deprecated
@io.qt.QtUninvokable
private native io.qt.core.QSize actualSize_native_QWindow_ptr_cref_QSize_QIcon_Mode_QIcon_State_constfct(long __this__nativeId, long window, long size, int mode, int state);
/**
* Overloaded function for {@link #actualSize(io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)}
* with state = io.qt.gui.QIcon.State.Off
.
*/
@io.qt.QtUninvokable
public final io.qt.core.QSize actualSize(io.qt.core.QSize size, io.qt.gui.QIcon.Mode mode) {
return actualSize(size, mode, io.qt.gui.QIcon.State.Off);
}
/**
* Overloaded function for {@link #actualSize(io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)}
* with:
* mode = io.qt.gui.QIcon.Mode.Normal
* state = io.qt.gui.QIcon.State.Off
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QSize actualSize(io.qt.core.QSize size) {
return actualSize(size, io.qt.gui.QIcon.Mode.Normal, io.qt.gui.QIcon.State.Off);
}
/**
* See QIcon::actualSize(QSize,QIcon::Mode,QIcon::State)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QSize actualSize(io.qt.core.QSize size, io.qt.gui.QIcon.Mode mode, io.qt.gui.QIcon.State state){
return actualSize_native_cref_QSize_QIcon_Mode_QIcon_State_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(size), mode.value(), state.value());
}
@io.qt.QtUninvokable
private native io.qt.core.QSize actualSize_native_cref_QSize_QIcon_Mode_QIcon_State_constfct(long __this__nativeId, long size, int mode, int state);
/**
* Overloaded function for {@link #addFile(java.lang.String, io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)}
* with state = io.qt.gui.QIcon.State.Off
.
*/
@io.qt.QtUninvokable
public final void addFile(java.lang.String fileName, io.qt.core.QSize size, io.qt.gui.QIcon.Mode mode) {
addFile(fileName, size, mode, io.qt.gui.QIcon.State.Off);
}
/**
* Overloaded function for {@link #addFile(java.lang.String, io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)}
* with:
* mode = io.qt.gui.QIcon.Mode.Normal
* state = io.qt.gui.QIcon.State.Off
*
*/
@io.qt.QtUninvokable
public final void addFile(java.lang.String fileName, io.qt.core.QSize size) {
addFile(fileName, size, io.qt.gui.QIcon.Mode.Normal, io.qt.gui.QIcon.State.Off);
}
/**
* Overloaded function for {@link #addFile(java.lang.String, io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)}
* with:
* size = new io.qt.core.QSize()
* mode = io.qt.gui.QIcon.Mode.Normal
* state = io.qt.gui.QIcon.State.Off
*
*/
@io.qt.QtUninvokable
public final void addFile(java.lang.String fileName) {
addFile(fileName, new io.qt.core.QSize(), io.qt.gui.QIcon.Mode.Normal, io.qt.gui.QIcon.State.Off);
}
/**
* See QIcon::addFile(QString,QSize,QIcon::Mode,QIcon::State)
*/
@io.qt.QtUninvokable
public final void addFile(java.lang.String fileName, io.qt.core.QSize size, io.qt.gui.QIcon.Mode mode, io.qt.gui.QIcon.State state){
addFile_native_cref_QString_cref_QSize_QIcon_Mode_QIcon_State(QtJambi_LibraryUtilities.internal.nativeId(this), fileName, QtJambi_LibraryUtilities.internal.checkedNativeId(size), mode.value(), state.value());
}
@io.qt.QtUninvokable
private native void addFile_native_cref_QString_cref_QSize_QIcon_Mode_QIcon_State(long __this__nativeId, java.lang.String fileName, long size, int mode, int state);
/**
* Overloaded function for {@link #addPixmap(io.qt.gui.QPixmap, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)}
* with state = io.qt.gui.QIcon.State.Off
.
*/
@io.qt.QtUninvokable
public final void addPixmap(io.qt.gui.QPixmap pixmap, io.qt.gui.QIcon.Mode mode) {
addPixmap(pixmap, mode, io.qt.gui.QIcon.State.Off);
}
/**
* Overloaded function for {@link #addPixmap(io.qt.gui.QPixmap, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)}
* with:
* mode = io.qt.gui.QIcon.Mode.Normal
* state = io.qt.gui.QIcon.State.Off
*
*/
@io.qt.QtUninvokable
public final void addPixmap(io.qt.gui.QPixmap pixmap) {
addPixmap(pixmap, io.qt.gui.QIcon.Mode.Normal, io.qt.gui.QIcon.State.Off);
}
/**
* See QIcon::addPixmap(QPixmap,QIcon::Mode,QIcon::State)
*/
@io.qt.QtUninvokable
public final void addPixmap(io.qt.gui.QPixmap pixmap, io.qt.gui.QIcon.Mode mode, io.qt.gui.QIcon.State state){
addPixmap_native_cref_QPixmap_QIcon_Mode_QIcon_State(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pixmap), mode.value(), state.value());
}
@io.qt.QtUninvokable
private native void addPixmap_native_cref_QPixmap_QIcon_Mode_QIcon_State(long __this__nativeId, long pixmap, int mode, int state);
/**
* Overloaded function for {@link #availableSizes(io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)}
* with state = io.qt.gui.QIcon.State.Off
.
*/
@io.qt.QtUninvokable
public final io.qt.core.QList availableSizes(io.qt.gui.QIcon.Mode mode) {
return availableSizes(mode, io.qt.gui.QIcon.State.Off);
}
/**
* Overloaded function for {@link #availableSizes(io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)}
* with:
* mode = io.qt.gui.QIcon.Mode.Normal
* state = io.qt.gui.QIcon.State.Off
*
*/
@io.qt.QtUninvokable
public final io.qt.core.QList availableSizes() {
return availableSizes(io.qt.gui.QIcon.Mode.Normal, io.qt.gui.QIcon.State.Off);
}
/**
* See QIcon::availableSizes(QIcon::Mode,QIcon::State)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QList availableSizes(io.qt.gui.QIcon.Mode mode, io.qt.gui.QIcon.State state){
return availableSizes_native_QIcon_Mode_QIcon_State_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value(), state.value());
}
@io.qt.QtUninvokable
private native io.qt.core.QList availableSizes_native_QIcon_Mode_QIcon_State_constfct(long __this__nativeId, int mode, int state);
/**
*
*/
@io.qt.QtUninvokable
public final long cacheKey(){
return cacheKey_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native long cacheKey_native_constfct(long __this__nativeId);
@io.qt.QtUninvokable
public final void detach(){
detach_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void detach_native(long __this__nativeId);
@io.qt.QtUninvokable
public final boolean isDetached(){
return isDetached_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isDetached_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final boolean isMask(){
return isMask_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isMask_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final boolean isNull(){
return isNull_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isNull_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final java.lang.String name(){
return name_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native java.lang.String name_native_constfct(long __this__nativeId);
@io.qt.QtUninvokable
public void writeTo(io.qt.core.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));
}
@io.qt.QtUninvokable
private native void writeTo_native_ref_QDataStream(long __this__nativeId, long arg__1);
@io.qt.QtUninvokable
public void readFrom(io.qt.core.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));
}
@io.qt.QtUninvokable
private native void readFrom_native_ref_QDataStream(long __this__nativeId, long arg__1);
/**
* Overloaded function for {@link #paint(io.qt.gui.QPainter, io.qt.core.QRect, io.qt.core.Qt.Alignment, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)}
* with state = io.qt.gui.QIcon.State.Off
.
*/
@io.qt.QtUninvokable
public final void paint(io.qt.gui.QPainter painter, io.qt.core.QRect rect, io.qt.core.Qt.Alignment alignment, io.qt.gui.QIcon.Mode mode) {
paint(painter, rect, alignment, mode, io.qt.gui.QIcon.State.Off);
}
/**
* Overloaded function for {@link #paint(io.qt.gui.QPainter, io.qt.core.QRect, io.qt.core.Qt.Alignment, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)}
* with:
* mode = io.qt.gui.QIcon.Mode.Normal
* state = io.qt.gui.QIcon.State.Off
*
*/
@io.qt.QtUninvokable
public final void paint(io.qt.gui.QPainter painter, io.qt.core.QRect rect, io.qt.core.Qt.Alignment alignment) {
paint(painter, rect, alignment, io.qt.gui.QIcon.Mode.Normal, io.qt.gui.QIcon.State.Off);
}
/**
* Overloaded function for {@link #paint(io.qt.gui.QPainter, io.qt.core.QRect, io.qt.core.Qt.Alignment, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)}
* with:
* alignment = new io.qt.core.Qt.Alignment(132)
* mode = io.qt.gui.QIcon.Mode.Normal
* state = io.qt.gui.QIcon.State.Off
*
*/
@io.qt.QtUninvokable
public final void paint(io.qt.gui.QPainter painter, io.qt.core.QRect rect) {
paint(painter, rect, new io.qt.core.Qt.Alignment(132), io.qt.gui.QIcon.Mode.Normal, io.qt.gui.QIcon.State.Off);
}
/**
* See QIcon::paint(QPainter*,QRect,Qt::Alignment,QIcon::Mode,QIcon::State)const
*/
@io.qt.QtUninvokable
public final void paint(io.qt.gui.QPainter painter, io.qt.core.QRect rect, io.qt.core.Qt.Alignment alignment, io.qt.gui.QIcon.Mode mode, io.qt.gui.QIcon.State state){
paint_native_QPainter_ptr_cref_QRect_QFlags_Qt_AlignmentFlag__QIcon_Mode_QIcon_State_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(painter), QtJambi_LibraryUtilities.internal.checkedNativeId(rect), alignment.value(), mode.value(), state.value());
}
@io.qt.QtUninvokable
private native void paint_native_QPainter_ptr_cref_QRect_QFlags_Qt_AlignmentFlag__QIcon_Mode_QIcon_State_constfct(long __this__nativeId, long painter, long rect, int alignment, int mode, int state);
/**
* Overloaded function for {@link #paint(io.qt.gui.QPainter, int, int, int, int, io.qt.core.Qt.Alignment, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)}
* with state = io.qt.gui.QIcon.State.Off
.
*/
@io.qt.QtUninvokable
public final void paint(io.qt.gui.QPainter painter, int x, int y, int w, int h, io.qt.core.Qt.Alignment alignment, io.qt.gui.QIcon.Mode mode) {
paint(painter, x, y, w, h, alignment, mode, io.qt.gui.QIcon.State.Off);
}
/**
* Overloaded function for {@link #paint(io.qt.gui.QPainter, int, int, int, int, io.qt.core.Qt.Alignment, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)}
* with:
* mode = io.qt.gui.QIcon.Mode.Normal
* state = io.qt.gui.QIcon.State.Off
*
*/
@io.qt.QtUninvokable
public final void paint(io.qt.gui.QPainter painter, int x, int y, int w, int h, io.qt.core.Qt.Alignment alignment) {
paint(painter, x, y, w, h, alignment, io.qt.gui.QIcon.Mode.Normal, io.qt.gui.QIcon.State.Off);
}
/**
* Overloaded function for {@link #paint(io.qt.gui.QPainter, int, int, int, int, io.qt.core.Qt.Alignment, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)}
* with:
* alignment = new io.qt.core.Qt.Alignment(132)
* mode = io.qt.gui.QIcon.Mode.Normal
* state = io.qt.gui.QIcon.State.Off
*
*/
@io.qt.QtUninvokable
public final void paint(io.qt.gui.QPainter painter, int x, int y, int w, int h) {
paint(painter, x, y, w, h, new io.qt.core.Qt.Alignment(132), io.qt.gui.QIcon.Mode.Normal, io.qt.gui.QIcon.State.Off);
}
/**
* See QIcon::paint(QPainter*,int,int,int,int,Qt::Alignment,QIcon::Mode,QIcon::State)const
*/
@io.qt.QtUninvokable
public final void paint(io.qt.gui.QPainter painter, int x, int y, int w, int h, io.qt.core.Qt.Alignment alignment, io.qt.gui.QIcon.Mode mode, io.qt.gui.QIcon.State state){
paint_native_QPainter_ptr_int_int_int_int_QFlags_Qt_AlignmentFlag__QIcon_Mode_QIcon_State_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(painter), x, y, w, h, alignment.value(), mode.value(), state.value());
}
@io.qt.QtUninvokable
private native void paint_native_QPainter_ptr_int_int_int_int_QFlags_Qt_AlignmentFlag__QIcon_Mode_QIcon_State_constfct(long __this__nativeId, long painter, int x, int y, int w, int h, int alignment, int mode, int state);
/**
* Overloaded function for {@link #pixmap(io.qt.gui.QWindow, io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)}
* with state = io.qt.gui.QIcon.State.Off
.
*
* @deprecated Use pixmap(size, devicePixelRatio) instead
*/
@Deprecated
@io.qt.QtUninvokable
public final io.qt.gui.QPixmap pixmap(io.qt.gui.QWindow window, io.qt.core.QSize size, io.qt.gui.QIcon.Mode mode) {
return pixmap(window, size, mode, io.qt.gui.QIcon.State.Off);
}
/**
* Overloaded function for {@link #pixmap(io.qt.gui.QWindow, io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)}
* with:
* mode = io.qt.gui.QIcon.Mode.Normal
* state = io.qt.gui.QIcon.State.Off
*
*
* @deprecated Use pixmap(size, devicePixelRatio) instead
*/
@Deprecated
@io.qt.QtUninvokable
public final io.qt.gui.QPixmap pixmap(io.qt.gui.QWindow window, io.qt.core.QSize size) {
return pixmap(window, size, io.qt.gui.QIcon.Mode.Normal, io.qt.gui.QIcon.State.Off);
}
/**
* @deprecated Use pixmap(size, devicePixelRatio) instead
*/
@Deprecated
@io.qt.QtUninvokable
public final io.qt.gui.QPixmap pixmap(io.qt.gui.QWindow window, io.qt.core.QSize size, io.qt.gui.QIcon.Mode mode, io.qt.gui.QIcon.State state){
return pixmap_native_QWindow_ptr_cref_QSize_QIcon_Mode_QIcon_State_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(window), QtJambi_LibraryUtilities.internal.checkedNativeId(size), mode.value(), state.value());
}
@Deprecated
@io.qt.QtUninvokable
private native io.qt.gui.QPixmap pixmap_native_QWindow_ptr_cref_QSize_QIcon_Mode_QIcon_State_constfct(long __this__nativeId, long window, long size, int mode, int state);
/**
* Overloaded function for {@link #pixmap(io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)}
* with state = io.qt.gui.QIcon.State.Off
.
*/
@io.qt.QtUninvokable
public final io.qt.gui.QPixmap pixmap(io.qt.core.QSize size, io.qt.gui.QIcon.Mode mode) {
return pixmap(size, mode, io.qt.gui.QIcon.State.Off);
}
/**
* Overloaded function for {@link #pixmap(io.qt.core.QSize, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)}
* with:
* mode = io.qt.gui.QIcon.Mode.Normal
* state = io.qt.gui.QIcon.State.Off
*
*/
@io.qt.QtUninvokable
public final io.qt.gui.QPixmap pixmap(io.qt.core.QSize size) {
return pixmap(size, io.qt.gui.QIcon.Mode.Normal, io.qt.gui.QIcon.State.Off);
}
/**
* See QIcon::pixmap(QSize,QIcon::Mode,QIcon::State)const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QPixmap pixmap(io.qt.core.QSize size, io.qt.gui.QIcon.Mode mode, io.qt.gui.QIcon.State state){
return pixmap_native_cref_QSize_QIcon_Mode_QIcon_State_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(size), mode.value(), state.value());
}
@io.qt.QtUninvokable
private native io.qt.gui.QPixmap pixmap_native_cref_QSize_QIcon_Mode_QIcon_State_constfct(long __this__nativeId, long size, int mode, int state);
/**
* Overloaded function for {@link #pixmap(io.qt.core.QSize, double, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)}
* with state = io.qt.gui.QIcon.State.Off
.
*/
@io.qt.QtUninvokable
public final io.qt.gui.QPixmap pixmap(io.qt.core.QSize size, double devicePixelRatio, io.qt.gui.QIcon.Mode mode) {
return pixmap(size, devicePixelRatio, mode, io.qt.gui.QIcon.State.Off);
}
/**
* Overloaded function for {@link #pixmap(io.qt.core.QSize, double, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)}
* with:
* mode = io.qt.gui.QIcon.Mode.Normal
* state = io.qt.gui.QIcon.State.Off
*
*/
@io.qt.QtUninvokable
public final io.qt.gui.QPixmap pixmap(io.qt.core.QSize size, double devicePixelRatio) {
return pixmap(size, devicePixelRatio, io.qt.gui.QIcon.Mode.Normal, io.qt.gui.QIcon.State.Off);
}
/**
* See QIcon::pixmap(QSize,qreal,QIcon::Mode,QIcon::State)const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QPixmap pixmap(io.qt.core.QSize size, double devicePixelRatio, io.qt.gui.QIcon.Mode mode, io.qt.gui.QIcon.State state){
return pixmap_native_cref_QSize_qtjambireal_QIcon_Mode_QIcon_State_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(size), devicePixelRatio, mode.value(), state.value());
}
@io.qt.QtUninvokable
private native io.qt.gui.QPixmap pixmap_native_cref_QSize_qtjambireal_QIcon_Mode_QIcon_State_constfct(long __this__nativeId, long size, double devicePixelRatio, int mode, int state);
/**
* Overloaded function for {@link #pixmap(int, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)}
* with state = io.qt.gui.QIcon.State.Off
.
*/
@io.qt.QtUninvokable
public final io.qt.gui.QPixmap pixmap(int extent, io.qt.gui.QIcon.Mode mode) {
return pixmap(extent, mode, io.qt.gui.QIcon.State.Off);
}
/**
* Overloaded function for {@link #pixmap(int, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)}
* with:
* mode = io.qt.gui.QIcon.Mode.Normal
* state = io.qt.gui.QIcon.State.Off
*
*/
@io.qt.QtUninvokable
public final io.qt.gui.QPixmap pixmap(int extent) {
return pixmap(extent, io.qt.gui.QIcon.Mode.Normal, io.qt.gui.QIcon.State.Off);
}
/**
* See QIcon::pixmap(int,QIcon::Mode,QIcon::State)const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QPixmap pixmap(int extent, io.qt.gui.QIcon.Mode mode, io.qt.gui.QIcon.State state){
return pixmap_native_int_QIcon_Mode_QIcon_State_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), extent, mode.value(), state.value());
}
@io.qt.QtUninvokable
private native io.qt.gui.QPixmap pixmap_native_int_QIcon_Mode_QIcon_State_constfct(long __this__nativeId, int extent, int mode, int state);
/**
* Overloaded function for {@link #pixmap(int, int, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)}
* with state = io.qt.gui.QIcon.State.Off
.
*/
@io.qt.QtUninvokable
public final io.qt.gui.QPixmap pixmap(int w, int h, io.qt.gui.QIcon.Mode mode) {
return pixmap(w, h, mode, io.qt.gui.QIcon.State.Off);
}
/**
* Overloaded function for {@link #pixmap(int, int, io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)}
* with:
* mode = io.qt.gui.QIcon.Mode.Normal
* state = io.qt.gui.QIcon.State.Off
*
*/
@io.qt.QtUninvokable
public final io.qt.gui.QPixmap pixmap(int w, int h) {
return pixmap(w, h, io.qt.gui.QIcon.Mode.Normal, io.qt.gui.QIcon.State.Off);
}
/**
* See QIcon::pixmap(int,int,QIcon::Mode,QIcon::State)const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QPixmap pixmap(int w, int h, io.qt.gui.QIcon.Mode mode, io.qt.gui.QIcon.State state){
return pixmap_native_int_int_QIcon_Mode_QIcon_State_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), w, h, mode.value(), state.value());
}
@io.qt.QtUninvokable
private native io.qt.gui.QPixmap pixmap_native_int_int_QIcon_Mode_QIcon_State_constfct(long __this__nativeId, int w, int h, int mode, int state);
/**
*
*/
@io.qt.QtUninvokable
public final void setIsMask(boolean isMask){
setIsMask_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), isMask);
}
@io.qt.QtUninvokable
private native void setIsMask_native_bool(long __this__nativeId, boolean isMask);
/**
*
*/
@io.qt.QtUninvokable
public final void swap(io.qt.gui.QIcon other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
swap_native_ref_QIcon(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@io.qt.QtUninvokable
private native void swap_native_ref_QIcon(long __this__nativeId, long other);
/**
* See QIcon::fallbackSearchPaths()
*/
public native static io.qt.core.QStringList fallbackSearchPaths();
/**
* See QIcon::fallbackThemeName()
*/
public native static java.lang.String fallbackThemeName();
/**
*
*/
public native static io.qt.gui.QIcon fromTheme(java.lang.String name);
/**
* See QIcon::fromTheme(QString,QIcon)
*/
public static io.qt.gui.QIcon fromTheme(java.lang.String name, io.qt.gui.QIcon fallback){
return fromTheme_native_cref_QString_cref_QIcon(name, QtJambi_LibraryUtilities.internal.checkedNativeId(fallback));
}
private native static io.qt.gui.QIcon fromTheme_native_cref_QString_cref_QIcon(java.lang.String name, long fallback);
/**
* See QIcon::hasThemeIcon(QString)
*/
public native static boolean hasThemeIcon(java.lang.String name);
/**
* See QIcon::setFallbackSearchPaths(QStringList)
*/
public native static void setFallbackSearchPaths(java.util.Collection paths);
/**
* See QIcon::setFallbackThemeName(QString)
*/
public native static void setFallbackThemeName(java.lang.String name);
/**
* See QIcon::setThemeName(QString)
*/
public native static void setThemeName(java.lang.String path);
/**
* See QIcon::setThemeSearchPaths(QStringList)
*/
public native static void setThemeSearchPaths(java.util.Collection searchpath);
/**
*
*/
public native static java.lang.String themeName();
/**
*
*/
public native static io.qt.core.QStringList themeSearchPaths();
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QIcon(QPrivateConstructor p) { super(p); }
@Override
@io.qt.QtUninvokable
public String toString() {
return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private static native String toString_native(long __this_nativeId);
@Override
public QIcon clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native QIcon clone_native(long __this_nativeId);
}