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

io.qt.gui.QIconEngine Maven / Gradle / Ivy

The newest version!
package io.qt.gui;


/**
 * 

Abstract base class for QIcon renderers

*

Java wrapper for Qt class QIconEngine

*/ public abstract class QIconEngine extends io.qt.QtObject { static { QtJambi_LibraryUtilities.initialize(); } @io.qt.NativeAccess private static final class ConcreteWrapper extends QIconEngine { @io.qt.NativeAccess private ConcreteWrapper(QPrivateConstructor p) { super(p); } @Override @io.qt.QtUninvokable public io.qt.gui.QIconEngine clone(){ return clone_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.gui.QIconEngine clone_native_constfct(long __this__nativeId); @Override @io.qt.QtUninvokable public void paint(io.qt.gui.QPainter painter, io.qt.core.QRect rect, io.qt.gui.QIcon.Mode mode, io.qt.gui.QIcon.State state){ paint_native_QPainter_ptr_cref_QRect_QIcon_Mode_QIcon_State(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(painter), QtJambi_LibraryUtilities.internal.checkedNativeId(rect), mode.value(), state.value()); } @io.qt.QtUninvokable private native void paint_native_QPainter_ptr_cref_QRect_QIcon_Mode_QIcon_State(long __this__nativeId, long painter, long rect, int mode, int state); } /** *

Java wrapper for Qt enum QIconEngine::IconEngineHook

*/ public enum IconEngineHook implements io.qt.QtEnumerator { IsNullHook(3), ScaledPixmapHook(4); private IconEngineHook(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 IconEngineHook resolve(int value) { switch (value) { case 3: return IsNullHook; case 4: return ScaledPixmapHook; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt class QIconEngine::ScaledPixmapArgument

*/ public static class ScaledPixmapArgument extends io.qt.QtObject implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } public ScaledPixmapArgument(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(ScaledPixmapArgument instance); /** *

Requested mode of the pixmap

*

See QIconEngine::ScaledPixmapArgument::mode

*/ @io.qt.QtUninvokable public final void setMode(io.qt.gui.QIcon.Mode mode){ setMode_native_cref_QIcon_Mode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value()); } @io.qt.QtUninvokable private native void setMode_native_cref_QIcon_Mode(long __this__nativeId, int mode); /** *

Requested mode of the pixmap

*

See QIconEngine::ScaledPixmapArgument::mode

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

That is the best match for the given size, mode, state, and scale. This is an output parameter that is set after calling virtual_hook()

*

See QIconEngine::ScaledPixmapArgument::pixmap

*/ @io.qt.QtUninvokable public final void setPixmap(io.qt.gui.QPixmap pixmap){ setPixmap_native_cref_QPixmap(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pixmap)); } @io.qt.QtUninvokable private native void setPixmap_native_cref_QPixmap(long __this__nativeId, long pixmap); /** *

That is the best match for the given size, mode, state, and scale. This is an output parameter that is set after calling virtual_hook()

*

See QIconEngine::ScaledPixmapArgument::pixmap

*/ @io.qt.QtUninvokable public final io.qt.gui.QPixmap pixmap(){ return pixmap_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.gui.QPixmap pixmap_native(long __this__nativeId); /** *

Requested scale of the pixmap

*

See QIconEngine::ScaledPixmapArgument::scale

*/ @io.qt.QtUninvokable public final void setScale(double scale){ setScale_native_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), scale); } @io.qt.QtUninvokable private native void setScale_native_qtjambireal(long __this__nativeId, double scale); /** *

Requested scale of the pixmap

*

See QIconEngine::ScaledPixmapArgument::scale

*/ @io.qt.QtUninvokable public final double scale(){ return scale_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native double scale_native(long __this__nativeId); /** *

Requested size of the pixmap

*

See QIconEngine::ScaledPixmapArgument::size

*/ @io.qt.QtUninvokable public final void setSize(io.qt.core.QSize size){ setSize_native_cref_QSize(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(size)); } @io.qt.QtUninvokable private native void setSize_native_cref_QSize(long __this__nativeId, long size); /** *

Requested size of the pixmap

*

See QIconEngine::ScaledPixmapArgument::size

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

Requested state of the pixmap

*

See QIconEngine::ScaledPixmapArgument::state

*/ @io.qt.QtUninvokable public final void setState(io.qt.gui.QIcon.State state){ setState_native_cref_QIcon_State(QtJambi_LibraryUtilities.internal.nativeId(this), state.value()); } @io.qt.QtUninvokable private native void setState_native_cref_QIcon_State(long __this__nativeId, int state); /** *

Requested state of the pixmap

*

See QIconEngine::ScaledPixmapArgument::state

*/ @io.qt.QtUninvokable public final io.qt.gui.QIcon.State state(){ return io.qt.gui.QIcon.State.resolve(state_native(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int state_native(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected ScaledPixmapArgument(QPrivateConstructor p) { super(p); } @Override public ScaledPixmapArgument clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native ScaledPixmapArgument clone_native(long __this_nativeId); } /** *

See QIconEngine::QIconEngine()

*/ public QIconEngine(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QIconEngine instance); protected QIconEngine(io.qt.gui.QIconEngine other){ super((QPrivateConstructor)null); java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); initialize_native(this, other); } private native static void initialize_native(QIconEngine instance, io.qt.gui.QIconEngine other); /** *

See QIconEngine::actualSize(QSize,QIcon::Mode,QIcon::State)

*/ @io.qt.QtUninvokable public 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(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(long __this__nativeId, long size, int mode, int state); /** *

See QIconEngine::addFile(QString,QSize,QIcon::Mode,QIcon::State)

*/ @io.qt.QtUninvokable public 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); /** *

See QIconEngine::addPixmap(QPixmap,QIcon::Mode,QIcon::State)

*/ @io.qt.QtUninvokable public 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 java.util.List 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 java.util.List availableSizes() { return availableSizes(io.qt.gui.QIcon.Mode.Normal, io.qt.gui.QIcon.State.Off); } /** *

See QIconEngine::availableSizes(QIcon::Mode,QIcon::State)

*/ @io.qt.QtUninvokable public java.util.List availableSizes(io.qt.gui.QIcon.Mode mode, io.qt.gui.QIcon.State state){ return availableSizes_native_QIcon_Mode_QIcon_State(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value(), state.value()); } @io.qt.QtUninvokable private native java.util.List availableSizes_native_QIcon_Mode_QIcon_State(long __this__nativeId, int mode, int state); /** *

See QIconEngine::clone()const

*/ @io.qt.QtUninvokable public abstract io.qt.gui.QIconEngine clone(); @io.qt.QtUninvokable private native io.qt.gui.QIconEngine clone_native_constfct(long __this__nativeId); /** *

See QIconEngine::iconName()

*/ @io.qt.QtUninvokable public java.lang.String iconName(){ return iconName_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native java.lang.String iconName_native(long __this__nativeId); /** *

See QIconEngine::isNull()

*/ @io.qt.QtUninvokable public boolean isNull(){ return isNull_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isNull_native(long __this__nativeId); /** *

See QIconEngine::key()const

*/ @io.qt.QtUninvokable public java.lang.String key(){ return key_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native java.lang.String key_native_constfct(long __this__nativeId); /** *

See QIconEngine::paint(QPainter*,QRect,QIcon::Mode,QIcon::State)

*/ @io.qt.QtUninvokable public abstract void paint(io.qt.gui.QPainter painter, io.qt.core.QRect rect, io.qt.gui.QIcon.Mode mode, io.qt.gui.QIcon.State state); @io.qt.QtUninvokable private native void paint_native_QPainter_ptr_cref_QRect_QIcon_Mode_QIcon_State(long __this__nativeId, long painter, long rect, int mode, int state); /** *

See QIconEngine::pixmap(QSize,QIcon::Mode,QIcon::State)

*/ @io.qt.QtUninvokable public 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(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(long __this__nativeId, long size, int mode, int state); /** *

See QIconEngine::read(QDataStream&)

*/ @io.qt.QtUninvokable public boolean read(io.qt.core.QDataStream in){ java.util.Objects.requireNonNull(in, "Argument 'in': null not expected."); return read_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(in)); } @io.qt.QtUninvokable private native boolean read_native_ref_QDataStream(long __this__nativeId, long in); /** *

See QIconEngine::scaledPixmap(QSize,QIcon::Mode,QIcon::State,qreal)

*/ @io.qt.QtUninvokable public io.qt.gui.QPixmap scaledPixmap(io.qt.core.QSize size, io.qt.gui.QIcon.Mode mode, io.qt.gui.QIcon.State state, double scale){ return scaledPixmap_native_cref_QSize_QIcon_Mode_QIcon_State_qtjambireal(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(size), mode.value(), state.value(), scale); } @io.qt.QtUninvokable private native io.qt.gui.QPixmap scaledPixmap_native_cref_QSize_QIcon_Mode_QIcon_State_qtjambireal(long __this__nativeId, long size, int mode, int state, double scale); /** *

See QIconEngine::write(QDataStream&)const

*/ @io.qt.QtUninvokable public boolean write(io.qt.core.QDataStream out){ java.util.Objects.requireNonNull(out, "Argument 'out': null not expected."); return write_native_ref_QDataStream_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(out)); } @io.qt.QtUninvokable private native boolean write_native_ref_QDataStream_constfct(long __this__nativeId, long out); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QIconEngine(QPrivateConstructor p) { super(p); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy