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

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

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


/**
 * 

Convenience class for playing movies with QImageReader

*

Java wrapper for Qt class QMovie

*/ public class QMovie extends io.qt.core.QObject { static { QtJambi_LibraryUtilities.initialize(); } @io.qt.QtPropertyMember(enabled=false) private Object __rcDevice = null; /** * This variable stores the meta-object for the class. */ public static final io.qt.core.QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QMovie.class); /** *

Java wrapper for Qt enum QMovie::CacheMode

*/ public enum CacheMode implements io.qt.QtEnumerator { CacheNone(0), CacheAll(1); private CacheMode(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 CacheMode resolve(int value) { switch (value) { case 0: return CacheNone; case 1: return CacheAll; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Java wrapper for Qt enum QMovie::MovieState

*/ public enum MovieState implements io.qt.QtEnumerator { NotRunning(0), Paused(1), Running(2); private MovieState(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 MovieState resolve(int value) { switch (value) { case 0: return NotRunning; case 1: return Paused; case 2: return Running; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

See QMovie::error(QImageReader::ImageReaderError)

*/ public final Signal1 error = new Signal1<>(); /** *

See QMovie::finished()

*/ public final Signal0 finished = new Signal0(); /** *

See QMovie::frameChanged(int)

*/ public final Signal1<@io.qt.QtPrimitiveType Integer> frameChanged = new Signal1<>(); /** *

See QMovie::resized(QSize)

*/ public final Signal1 resized = new Signal1<>(); /** *

See QMovie::started()

*/ public final Signal0 started = new Signal0(); /** *

See QMovie::stateChanged(QMovie::MovieState)

*/ public final Signal1 stateChanged = new Signal1<>(); /** *

See QMovie::updated(QRect)

*/ public final Signal1 updated = new Signal1<>(); /** *

Overloaded constructor for {@link #QMovie(io.qt.core.QIODevice, io.qt.core.QByteArray, io.qt.core.QObject)} * with parent = null.

*/ public QMovie(io.qt.core.QIODevice device, io.qt.core.QByteArray format) { this(device, format, (io.qt.core.QObject)null); } /** *

Overloaded constructor for {@link #QMovie(io.qt.core.QIODevice, io.qt.core.QByteArray, io.qt.core.QObject)}

*

with:

    *
  • format = new io.qt.core.QByteArray()
  • *
  • parent = null
  • *
*/ public QMovie(io.qt.core.QIODevice device) { this(device, new io.qt.core.QByteArray(), (io.qt.core.QObject)null); } /** *

See QMovie::QMovie(QIODevice*,QByteArray,QObject*)

*/ public QMovie(io.qt.core.QIODevice device, io.qt.core.QByteArray format, io.qt.core.QObject parent){ super((QPrivateConstructor)null); initialize_native(this, device, format, parent); __rcDevice = device; } private native static void initialize_native(QMovie instance, io.qt.core.QIODevice device, io.qt.core.QByteArray format, io.qt.core.QObject parent); /** *

Overloaded constructor for {@link #QMovie(io.qt.core.QObject)} * with parent = null.

*/ public QMovie() { this((io.qt.core.QObject)null); } /** *

See QMovie::QMovie(QObject*)

*/ public QMovie(io.qt.core.QObject parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QMovie instance, io.qt.core.QObject parent); /** *

Overloaded constructor for {@link #QMovie(java.lang.String, io.qt.core.QByteArray, io.qt.core.QObject)} * with parent = null.

*/ public QMovie(java.lang.String fileName, io.qt.core.QByteArray format) { this(fileName, format, (io.qt.core.QObject)null); } /** *

Overloaded constructor for {@link #QMovie(java.lang.String, io.qt.core.QByteArray, io.qt.core.QObject)}

*

with:

    *
  • format = new io.qt.core.QByteArray()
  • *
  • parent = null
  • *
*/ public QMovie(java.lang.String fileName) { this(fileName, new io.qt.core.QByteArray(), (io.qt.core.QObject)null); } /** *

See QMovie::QMovie(QString,QByteArray,QObject*)

*/ public QMovie(java.lang.String fileName, io.qt.core.QByteArray format, io.qt.core.QObject parent){ super((QPrivateConstructor)null); initialize_native(this, fileName, format, parent); } private native static void initialize_native(QMovie instance, java.lang.String fileName, io.qt.core.QByteArray format, io.qt.core.QObject parent); /** *

See QMovie::backgroundColor()const

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

The movie's cache mode

*

See QMovie::bindableCacheMode()

*/ @io.qt.QtPropertyBindable(name="cacheMode") @io.qt.QtUninvokable public final io.qt.core.QBindable bindableCacheMode(){ return bindableCacheMode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QBindable bindableCacheMode_native(long __this__nativeId); /** *

The movie's speed

*

See QMovie::bindableSpeed()

*/ @io.qt.QtPropertyBindable(name="speed") @io.qt.QtUninvokable public final io.qt.core.QIntBindable bindableSpeed(){ return bindableSpeed_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QIntBindable bindableSpeed_native(long __this__nativeId); /** *

See QMovie::currentFrameNumber()const

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

See QMovie::currentImage()const

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

See QMovie::currentPixmap()const

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

See QMovie::device()const

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

See QMovie::fileName()const

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

See QMovie::format()const

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

See QMovie::frameCount()const

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

See QMovie::frameRect()const

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

See QMovie::isValid()const

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

See QMovie::jumpToFrame(int)

*/ @io.qt.QtUninvokable public final boolean jumpToFrame(int frameNumber){ return jumpToFrame_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), frameNumber); } @io.qt.QtUninvokable private native boolean jumpToFrame_native_int(long __this__nativeId, int frameNumber); /** *

See QMovie::jumpToNextFrame()

*/ public final boolean jumpToNextFrame(){ return jumpToNextFrame_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native boolean jumpToNextFrame_native(long __this__nativeId); /** *

See QMovie::lastError()const

*/ @io.qt.QtUninvokable public final io.qt.gui.QImageReader.ImageReaderError lastError(){ return io.qt.gui.QImageReader.ImageReaderError.resolve(lastError_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int lastError_native_constfct(long __this__nativeId); /** *

See QMovie::lastErrorString()const

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

See QMovie::loopCount()const

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

See QMovie::nextFrameDelay()const

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

See QMovie::scaledSize()

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

See QMovie::setBackgroundColor(QColor)

*/ @io.qt.QtUninvokable public final void setBackgroundColor(io.qt.gui.QColor color){ setBackgroundColor_native_cref_QColor(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(color)); } @io.qt.QtUninvokable private native void setBackgroundColor_native_cref_QColor(long __this__nativeId, long color); /** *

See QMovie::setCacheMode(QMovie::CacheMode)

*/ @io.qt.QtPropertyWriter(name="cacheMode") @io.qt.QtUninvokable public final void setCacheMode(io.qt.gui.QMovie.CacheMode mode){ setCacheMode_native_QMovie_CacheMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value()); } @io.qt.QtUninvokable private native void setCacheMode_native_QMovie_CacheMode(long __this__nativeId, int mode); /** *

See QMovie::setDevice(QIODevice*)

*/ @io.qt.QtUninvokable public final void setDevice(io.qt.core.QIODevice device){ setDevice_native_QIODevice_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(device)); __rcDevice = device; } @io.qt.QtUninvokable private native void setDevice_native_QIODevice_ptr(long __this__nativeId, long device); /** *

See QMovie::setFileName(QString)

*/ @io.qt.QtUninvokable public final void setFileName(java.lang.String fileName){ setFileName_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), fileName); } @io.qt.QtUninvokable private native void setFileName_native_cref_QString(long __this__nativeId, java.lang.String fileName); /** *

See QMovie::setFormat(QByteArray)

*/ @io.qt.QtUninvokable public final void setFormat(io.qt.core.QByteArray format){ setFormat_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(format)); } @io.qt.QtUninvokable private native void setFormat_native_cref_QByteArray(long __this__nativeId, long format); /** *

See QMovie::setPaused(bool)

*/ public final void setPaused(boolean paused){ setPaused_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), paused); } private native void setPaused_native_bool(long __this__nativeId, boolean paused); /** *

See QMovie::setScaledSize(QSize)

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

See QMovie::setSpeed(int)

*/ @io.qt.QtPropertyWriter(name="speed") public final void setSpeed(int percentSpeed){ setSpeed_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), percentSpeed); } private native void setSpeed_native_int(long __this__nativeId, int percentSpeed); /** *

See QMovie::speed()const

*/ @io.qt.QtPropertyReader(name="speed") @io.qt.QtUninvokable public final int speed(){ return speed_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int speed_native_constfct(long __this__nativeId); /** *

See QMovie::start()

*/ public final void start(){ start_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void start_native(long __this__nativeId); /** *

See QMovie::state()const

*/ @io.qt.QtUninvokable public final io.qt.gui.QMovie.MovieState state(){ return io.qt.gui.QMovie.MovieState.resolve(state_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int state_native_constfct(long __this__nativeId); /** *

See QMovie::stop()

*/ public final void stop(){ stop_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native void stop_native(long __this__nativeId); /** *

See QMovie::supportedFormats()

*/ public native static io.qt.core.QList supportedFormats(); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QMovie(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. */ @io.qt.NativeAccess protected QMovie(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @io.qt.QtUninvokable private static native void initialize_native(QMovie instance, QDeclarativeConstructor constructor); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy