io.qt.gui.QIconEngine Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.gui;
import io.qt.*;
/**
* Abstract base class for QIcon renderers
* Java wrapper for Qt class QIconEngine
*/
public abstract class QIconEngine extends QtObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
@NativeAccess
private static final class ConcreteWrapper extends QIconEngine {
@NativeAccess
private ConcreteWrapper(QPrivateConstructor p) { super(p); }
@Override
@QtUninvokable
public io.qt.gui.@Nullable QIconEngine clone(){
return clone_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QIconEngine clone_native_constfct(long __this__nativeId);
@Override
@QtUninvokable
public void paint(io.qt.gui.@Nullable QPainter painter, io.qt.core.@NonNull QRect rect, io.qt.gui.QIcon.@NonNull Mode mode, io.qt.gui.QIcon.@NonNull 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());
}
@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 QtEnumerator {
/**
* Representing QIconEngine:: IsNullHook
*/
IsNullHook(3),
/**
* Representing QIconEngine:: ScaledPixmapHook
*/
ScaledPixmapHook(4);
static {
QtJambi_LibraryUtilities.initialize();
}
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 @NonNull IconEngineHook resolve(int value) {
switch (value) {
case 3: return IsNullHook;
case 4: return ScaledPixmapHook;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt class QIconEngine::ScaledPixmapArgument
*/
public static class ScaledPixmapArgument extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QIconEngine::ScaledPixmapArgument:: ScaledPixmapArgument()
*/
public ScaledPixmapArgument(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(ScaledPixmapArgument instance);
/**
* See QIconEngine::ScaledPixmapArgument:: ScaledPixmapArgument(QIconEngine::ScaledPixmapArgument)
*/
public ScaledPixmapArgument(io.qt.gui.QIconEngine.@NonNull ScaledPixmapArgument other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(ScaledPixmapArgument instance, io.qt.gui.QIconEngine.ScaledPixmapArgument other);
/**
* See QIconEngine::ScaledPixmapArgument:: ScaledPixmapArgument{QSize, QIcon::Mode, QIcon::State, qreal, QPixmap}
*/
public ScaledPixmapArgument(io.qt.core.@NonNull QSize size, io.qt.gui.QIcon.@NonNull Mode mode, io.qt.gui.QIcon.@NonNull State state, double scale, io.qt.gui.@NonNull QPixmap pixmap){
super((QPrivateConstructor)null);
initialize_native(this, size, mode, state, scale, pixmap);
}
private native static void initialize_native(ScaledPixmapArgument instance, io.qt.core.QSize size, io.qt.gui.QIcon.Mode mode, io.qt.gui.QIcon.State state, double scale, io.qt.gui.QPixmap pixmap);
/**
* Requested mode of the pixmap
* See QIconEngine::ScaledPixmapArgument:: mode
*/
@QtUninvokable
public final void setMode(io.qt.gui.QIcon.@NonNull Mode mode){
setMode_native_cref_QIcon_Mode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@QtUninvokable
private native void setMode_native_cref_QIcon_Mode(long __this__nativeId, int mode);
/**
* Requested mode of the pixmap
* See QIconEngine::ScaledPixmapArgument:: mode
*/
@QtUninvokable
public final io.qt.gui.QIcon.@NonNull Mode mode(){
return io.qt.gui.QIcon.Mode.resolve(mode_native(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@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
*/
@QtUninvokable
public final void setPixmap(io.qt.gui.@NonNull QPixmap pixmap){
setPixmap_native_cref_QPixmap(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pixmap));
}
@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
*/
@QtUninvokable
public final io.qt.gui.@NonNull QPixmap pixmap(){
return pixmap_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QPixmap pixmap_native(long __this__nativeId);
/**
* Requested scale of the pixmap
* See QIconEngine::ScaledPixmapArgument:: scale
*/
@QtUninvokable
public final void setScale(double scale){
setScale_native_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), scale);
}
@QtUninvokable
private native void setScale_native_qreal(long __this__nativeId, double scale);
/**
* Requested scale of the pixmap
* See QIconEngine::ScaledPixmapArgument:: scale
*/
@QtUninvokable
public final double scale(){
return scale_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native double scale_native(long __this__nativeId);
/**
* Requested size of the pixmap
* See QIconEngine::ScaledPixmapArgument:: size
*/
@QtUninvokable
public final void setSize(io.qt.core.@NonNull QSize size){
setSize_native_cref_QSize(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(size));
}
@QtUninvokable
private native void setSize_native_cref_QSize(long __this__nativeId, long size);
/**
* Requested size of the pixmap
* See QIconEngine::ScaledPixmapArgument:: size
*/
@QtUninvokable
public final io.qt.core.@NonNull QSize size(){
return size_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QSize size_native(long __this__nativeId);
/**
* Requested state of the pixmap
* See QIconEngine::ScaledPixmapArgument:: state
*/
@QtUninvokable
public final void setState(io.qt.gui.QIcon.@NonNull State state){
setState_native_cref_QIcon_State(QtJambi_LibraryUtilities.internal.nativeId(this), state.value());
}
@QtUninvokable
private native void setState_native_cref_QIcon_State(long __this__nativeId, int state);
/**
* Requested state of the pixmap
* See QIconEngine::ScaledPixmapArgument:: state
*/
@QtUninvokable
public final io.qt.gui.QIcon.@NonNull State state(){
return io.qt.gui.QIcon.State.resolve(state_native(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int state_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected ScaledPixmapArgument(QPrivateConstructor p) { super(p); }
/**
* Creates and returns a copy of this object.
See QIconEngine::ScaledPixmapArgument:: ScaledPixmapArgument(QIconEngine::ScaledPixmapArgument)
*/
@QtUninvokable
@Override
public ScaledPixmapArgument clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native ScaledPixmapArgument clone_native(long __this_nativeId);
/**
* @hidden
* Kotlin property getter. In Java use {@link #mode()} instead.
*/
@QtUninvokable
public final io.qt.gui.QIcon.@NonNull Mode getMode() {
return mode();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #pixmap()} instead.
*/
@QtUninvokable
public final io.qt.gui.@NonNull QPixmap getPixmap() {
return pixmap();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #scale()} instead.
*/
@QtUninvokable
public final double getScale() {
return scale();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #size()} instead.
*/
@QtUninvokable
public final io.qt.core.@NonNull QSize getSize() {
return size();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #state()} instead.
*/
@QtUninvokable
public final io.qt.gui.QIcon.@NonNull State getState() {
return state();
}
}
/**
* See QIconEngine:: QIconEngine()
*/
public QIconEngine(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QIconEngine instance);
/**
* See QIconEngine:: QIconEngine(QIconEngine)
*/
protected QIconEngine(io.qt.gui.@StrictNonNull 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)
*/
@QtUninvokable
public io.qt.core.@NonNull QSize actualSize(io.qt.core.@NonNull QSize size, io.qt.gui.QIcon.@NonNull Mode mode, io.qt.gui.QIcon.@NonNull 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());
}
@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)
*/
@QtUninvokable
public void addFile(java.lang.@NonNull String fileName, io.qt.core.@NonNull QSize size, io.qt.gui.QIcon.@NonNull Mode mode, io.qt.gui.QIcon.@NonNull 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());
}
@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)
*/
@QtUninvokable
public void addPixmap(io.qt.gui.@NonNull QPixmap pixmap, io.qt.gui.QIcon.@NonNull Mode mode, io.qt.gui.QIcon.@NonNull State state){
addPixmap_native_cref_QPixmap_QIcon_Mode_QIcon_State(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pixmap), mode.value(), state.value());
}
@QtUninvokable
private native void addPixmap_native_cref_QPixmap_QIcon_Mode_QIcon_State(long __this__nativeId, long pixmap, int mode, int state);
/**
* See QIconEngine:: availableSizes(QIcon::Mode, QIcon::State)
*/
@QtUninvokable
public java.util.@NonNull List availableSizes(io.qt.gui.QIcon.@NonNull Mode mode, io.qt.gui.QIcon.@NonNull State state){
return availableSizes_native_QIcon_Mode_QIcon_State(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value(), state.value());
}
@QtUninvokable
private native java.util.List availableSizes_native_QIcon_Mode_QIcon_State(long __this__nativeId, int mode, int state);
/**
*
*/
@QtUninvokable
public abstract io.qt.gui.@Nullable QIconEngine clone();
@QtUninvokable
private native io.qt.gui.QIconEngine clone_native_constfct(long __this__nativeId);
/**
*
*/
@QtUninvokable
public java.lang.@NonNull String iconName(){
return iconName_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String iconName_native(long __this__nativeId);
/**
*
*/
@QtUninvokable
public boolean isNull(){
return isNull_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isNull_native(long __this__nativeId);
/**
*
*/
@QtUninvokable
public java.lang.@NonNull String key(){
return key_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String key_native_constfct(long __this__nativeId);
/**
* See QIconEngine:: paint(QPainter*, QRect, QIcon::Mode, QIcon::State)
*/
@QtUninvokable
public abstract void paint(io.qt.gui.@Nullable QPainter painter, io.qt.core.@NonNull QRect rect, io.qt.gui.QIcon.@NonNull Mode mode, io.qt.gui.QIcon.@NonNull State state);
@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)
*/
@QtUninvokable
public io.qt.gui.@NonNull QPixmap pixmap(io.qt.core.@NonNull QSize size, io.qt.gui.QIcon.@NonNull Mode mode, io.qt.gui.QIcon.@NonNull 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());
}
@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&)
*/
@QtUninvokable
public boolean read(io.qt.core.@StrictNonNull 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));
}
@QtUninvokable
private native boolean read_native_ref_QDataStream(long __this__nativeId, long in);
/**
* See QIconEngine:: scaledPixmap(QSize, QIcon::Mode, QIcon::State, qreal)
*/
@QtUninvokable
public io.qt.gui.@NonNull QPixmap scaledPixmap(io.qt.core.@NonNull QSize size, io.qt.gui.QIcon.@NonNull Mode mode, io.qt.gui.QIcon.@NonNull State state, double scale){
return scaledPixmap_native_cref_QSize_QIcon_Mode_QIcon_State_qreal(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(size), mode.value(), state.value(), scale);
}
@QtUninvokable
private native io.qt.gui.QPixmap scaledPixmap_native_cref_QSize_QIcon_Mode_QIcon_State_qreal(long __this__nativeId, long size, int mode, int state, double scale);
/**
* See QIconEngine:: write(QDataStream&)const
*/
@QtUninvokable
public boolean write(io.qt.core.@StrictNonNull 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));
}
@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
.
* @hidden
*/
@NativeAccess
protected QIconEngine(QPrivateConstructor p) { super(p); }
/**
* Overloaded function for {@link #availableSizes(io.qt.gui.QIcon.Mode, io.qt.gui.QIcon.State)}
* with state = io.qt.gui.QIcon.State.Off
.
*/
@QtUninvokable
public final java.util.@NonNull List availableSizes(io.qt.gui.QIcon.@NonNull 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
*
*/
@QtUninvokable
public final java.util.@NonNull List availableSizes() {
return availableSizes(io.qt.gui.QIcon.Mode.Normal, io.qt.gui.QIcon.State.Off);
}
}