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

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

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

import io.qt.*;


/**
 * 

Application-wide cache for pixmaps

*

Java wrapper for Qt class QPixmapCache

*/ public class QPixmapCache extends QtObject { static { QtJambi_LibraryUtilities.initialize(); } /** *

QPixmapCache::Key class can be used for efficient access to the QPixmapCache

*

Java wrapper for Qt class QPixmapCache::Key

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

See QPixmapCache::Key::Key()

*/ public Key(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(Key instance); /** *

See QPixmapCache::Key::Key(QPixmapCache::Key)

*/ public Key(io.qt.gui.QPixmapCache.@NonNull Key other){ super((QPrivateConstructor)null); initialize_native(this, other); } private native static void initialize_native(Key instance, io.qt.gui.QPixmapCache.Key other); /** *

See QPixmapCache::Key::isValid()const

*/ @QtUninvokable public final boolean isValid(){ return isValid_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isValid_native_constfct(long __this__nativeId); /** *

See QPixmapCache::Key::operator=(QPixmapCache::Key)

*/ @QtUninvokable public final void assign(io.qt.gui.QPixmapCache.@NonNull Key other){ assign_native_cref_QPixmapCache_Key(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native void assign_native_cref_QPixmapCache_Key(long __this__nativeId, long other); /** *

See QPixmapCache::Key::operator==(QPixmapCache::Key)const

*/ @QtUninvokable public final boolean equals(io.qt.gui.QPixmapCache.@NonNull Key key){ return equals_native_cref_QPixmapCache_Key_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(key)); } @QtUninvokable private native boolean equals_native_cref_QPixmapCache_Key_constfct(long __this__nativeId, long key); /** *

See QPixmapCache::Key::swap(QPixmapCache::Key&)

*/ @QtUninvokable public final void swap(io.qt.gui.QPixmapCache.@StrictNonNull Key other){ java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); swap_native_ref_QPixmapCache_Key(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native void swap_native_ref_QPixmapCache_Key(long __this__nativeId, long other); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected Key(QPrivateConstructor p) { super(p); } /** *

See QPixmapCache::Key::operator==(QPixmapCache::Key)const

*/ @Override @QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.gui.QPixmapCache.Key) { return equals((io.qt.gui.QPixmapCache.Key) other); } return false; } /** * Returns the objects's hash code computed by qHash(QPixmapCache::Key). */ @QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native static int hashCode_native(long __this_nativeId); /** *

Creates and returns a copy of this object.

See QPixmapCache::Key::Key(QPixmapCache::Key)

*/ @QtUninvokable @Override public Key clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private static native Key clone_native(long __this_nativeId); } /** *

See QPixmapCache::QPixmapCache()

*/ public QPixmapCache(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QPixmapCache instance); /** *

See QPixmapCache::cacheLimit()

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

See QPixmapCache::clear()

*/ public native static void clear(); /** *

See QPixmapCache::find(QPixmapCache::Key,QPixmap*)

*/ public static boolean find(io.qt.gui.QPixmapCache.@NonNull Key key, io.qt.gui.@Nullable QPixmap pixmap){ return find_native_cref_QPixmapCache_Key_QPixmap_ptr(QtJambi_LibraryUtilities.internal.checkedNativeId(key), QtJambi_LibraryUtilities.internal.checkedNativeId(pixmap)); } private native static boolean find_native_cref_QPixmapCache_Key_QPixmap_ptr(long key, long pixmap); /** *

See QPixmapCache::find(QString,QPixmap*)

*/ public static boolean find(java.lang.@NonNull String key, io.qt.gui.@Nullable QPixmap pixmap){ return find_native_cref_QString_QPixmap_ptr(key, QtJambi_LibraryUtilities.internal.checkedNativeId(pixmap)); } private native static boolean find_native_cref_QString_QPixmap_ptr(java.lang.String key, long pixmap); /** *

See QPixmapCache::insert(QPixmap)

*/ public static io.qt.gui.QPixmapCache.@NonNull Key insert(io.qt.gui.@NonNull QPixmap pixmap){ return insert_native_cref_QPixmap(QtJambi_LibraryUtilities.internal.checkedNativeId(pixmap)); } private native static io.qt.gui.QPixmapCache.Key insert_native_cref_QPixmap(long pixmap); /** *

See QPixmapCache::insert(QString,QPixmap)

*/ public static boolean insert(java.lang.@NonNull String key, io.qt.gui.@NonNull QPixmap pixmap){ return insert_native_cref_QString_cref_QPixmap(key, QtJambi_LibraryUtilities.internal.checkedNativeId(pixmap)); } private native static boolean insert_native_cref_QString_cref_QPixmap(java.lang.String key, long pixmap); /** *

See QPixmapCache::remove(QPixmapCache::Key)

*/ public static void remove(io.qt.gui.QPixmapCache.@NonNull Key key){ remove_native_cref_QPixmapCache_Key(QtJambi_LibraryUtilities.internal.checkedNativeId(key)); } private native static void remove_native_cref_QPixmapCache_Key(long key); /** *

See QPixmapCache::remove(QString)

*/ public native static void remove(java.lang.@NonNull String key); /** *

See QPixmapCache::replace(QPixmapCache::Key,QPixmap)

*/ public static boolean replace(io.qt.gui.QPixmapCache.@NonNull Key key, io.qt.gui.@NonNull QPixmap pixmap){ return replace_native_cref_QPixmapCache_Key_cref_QPixmap(QtJambi_LibraryUtilities.internal.checkedNativeId(key), QtJambi_LibraryUtilities.internal.checkedNativeId(pixmap)); } private native static boolean replace_native_cref_QPixmapCache_Key_cref_QPixmap(long key, long pixmap); /** *

See QPixmapCache::setCacheLimit(int)

*/ public native static void setCacheLimit(int arg__1); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QPixmapCache(QPrivateConstructor p) { super(p); } /** * @see #find(Key,QPixmap) */ public static io.qt.gui.@Nullable QPixmap find(io.qt.gui.QPixmapCache.@NonNull Key key){ QPixmap pm = new QPixmap(); if(find(key, pm)) return pm; else return null; } /** * @see #find(String,QPixmap) */ public static io.qt.gui.@Nullable QPixmap find(java.lang.@NonNull String key){ QPixmap pm = new QPixmap(); if(find(key, pm)) return pm; else return null; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy