io.qt.multimedia.widgets.QGraphicsVideoItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtjambi-multimediawidgets Show documentation
Show all versions of qtjambi-multimediawidgets Show documentation
Widget classes for audio, video, radio and camera functionality.
package io.qt.multimedia.widgets;
import io.qt.*;
/**
* Java wrapper for Qt class QGraphicsVideoItem
*/
public class QGraphicsVideoItem extends io.qt.widgets.QGraphicsObject
implements io.qt.multimedia.QMediaBindableInterface
{
static {
QtJambi_LibraryUtilities.initialize();
}
@QtPropertyMember(enabled=false)
private Object __rcMediaObject = null;
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QGraphicsVideoItem.class);
@QtPropertyNotify(name="nativeSize")
public final @NonNull Signal1 nativeSizeChanged = new Signal1<>();
/**
* Overloaded constructor for {@link #QGraphicsVideoItem(io.qt.widgets.QGraphicsItem)}
* with parent = null
.
*/
public QGraphicsVideoItem() {
this((io.qt.widgets.QGraphicsItem)null);
}
public QGraphicsVideoItem(io.qt.widgets.@Nullable QGraphicsItem parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QGraphicsVideoItem instance, io.qt.widgets.QGraphicsItem parent);
/**
* Kotlin property getter. In Java use {@link #aspectRatioMode()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.Qt.@NonNull AspectRatioMode getAspectRatioMode() {
return aspectRatioMode();
}
@QtPropertyReader(name="aspectRatioMode")
@QtUninvokable
public final io.qt.core.Qt.@NonNull AspectRatioMode aspectRatioMode(){
return io.qt.core.Qt.AspectRatioMode.resolve(aspectRatioMode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int aspectRatioMode_native_constfct(long __this__nativeId);
/**
* Kotlin property getter. In Java use {@link #nativeSize()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QSizeF getNativeSize() {
return nativeSize();
}
@QtPropertyReader(name="nativeSize")
@QtUninvokable
public final io.qt.core.@NonNull QSizeF nativeSize(){
return nativeSize_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QSizeF nativeSize_native_constfct(long __this__nativeId);
/**
* Kotlin property getter. In Java use {@link #offset()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QPointF getOffset() {
return offset();
}
@QtPropertyReader(name="offset")
@QtUninvokable
public final io.qt.core.@NonNull QPointF offset(){
return offset_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QPointF offset_native_constfct(long __this__nativeId);
@QtPropertyWriter(name="aspectRatioMode")
@QtUninvokable
public final void setAspectRatioMode(io.qt.core.Qt.@NonNull AspectRatioMode mode){
setAspectRatioMode_native_Qt_AspectRatioMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@QtUninvokable
private native void setAspectRatioMode_native_Qt_AspectRatioMode(long __this__nativeId, int mode);
@QtPropertyWriter(name="offset")
@QtUninvokable
public final void setOffset(io.qt.core.@NonNull QPointF offset){
setOffset_native_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(offset));
}
@QtUninvokable
private native void setOffset_native_cref_QPointF(long __this__nativeId, long offset);
@QtPropertyWriter(name="size")
@QtUninvokable
public final void setSize(io.qt.core.@NonNull QSizeF size){
setSize_native_cref_QSizeF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(size));
}
@QtUninvokable
private native void setSize_native_cref_QSizeF(long __this__nativeId, long size);
/**
* Kotlin property getter. In Java use {@link #size()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.@NonNull QSizeF getSize() {
return size();
}
@QtPropertyReader(name="size")
@QtUninvokable
public final io.qt.core.@NonNull QSizeF size(){
return size_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QSizeF size_native_constfct(long __this__nativeId);
/**
* Kotlin property getter. In Java use {@link #videoSurface()} instead.
*/
@QtPropertyReader(enabled=false)
@SuppressWarnings({"exports"})
@QtUninvokable
public final io.qt.multimedia.@Nullable QAbstractVideoSurface getVideoSurface() {
return videoSurface();
}
@QtPropertyReader(name="videoSurface")
@QtPropertyConstant
@SuppressWarnings({"exports"})
@QtUninvokable
public final io.qt.multimedia.@Nullable QAbstractVideoSurface videoSurface(){
return videoSurface_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.multimedia.QAbstractVideoSurface videoSurface_native_constfct(long __this__nativeId);
@QtUninvokable
public io.qt.core.@NonNull QRectF boundingRect(){
return boundingRect_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static io.qt.core.QRectF boundingRect_native_constfct(long __this__nativeId);
@QtUninvokable
protected java.lang.Object itemChange(io.qt.widgets.QGraphicsItem.@NonNull GraphicsItemChange change, java.lang.Object value){
return itemChange_native_QGraphicsItem_GraphicsItemChange_cref_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), change.value(), value);
}
private native static java.lang.Object itemChange_native_QGraphicsItem_GraphicsItemChange_cref_QVariant(long __this__nativeId, int change, java.lang.Object value);
/**
* Kotlin property getter. In Java use {@link #mediaObject()} instead.
*/
@QtPropertyReader(enabled=false)
@SuppressWarnings({"exports"})
@QtUninvokable
public final io.qt.multimedia.@Nullable QMediaObject getMediaObject() {
return mediaObject();
}
@QtPropertyReader(name="mediaObject")
@SuppressWarnings({"exports"})
@QtUninvokable
public io.qt.multimedia.@Nullable QMediaObject mediaObject(){
return mediaObject_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static io.qt.multimedia.QMediaObject mediaObject_native_constfct(long __this__nativeId);
@QtUninvokable
public void paint(io.qt.gui.@Nullable QPainter painter, io.qt.widgets.@Nullable QStyleOptionGraphicsItem option, io.qt.widgets.@Nullable QWidget widget){
paint_native_QPainter_ptr_const_QStyleOptionGraphicsItem_ptr_QWidget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(painter), QtJambi_LibraryUtilities.internal.checkedNativeId(option), QtJambi_LibraryUtilities.internal.checkedNativeId(widget));
}
private native static void paint_native_QPainter_ptr_const_QStyleOptionGraphicsItem_ptr_QWidget_ptr(long __this__nativeId, long painter, long option, long widget);
@QtPropertyWriter(name="mediaObject")
@QtUninvokable
protected boolean setMediaObject(io.qt.multimedia.@Nullable QMediaObject object){
boolean __qt_return_value = setMediaObject_native_QMediaObject_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(object));
__rcMediaObject = object;
return __qt_return_value;
}
private native static boolean setMediaObject_native_QMediaObject_ptr(long __this__nativeId, long object);
@QtUninvokable
protected void timerEvent(io.qt.core.@Nullable QTimerEvent event){
timerEvent_native_QTimerEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
@QtUninvokable
private native void timerEvent_native_QTimerEvent_ptr(long __this__nativeId, long event);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@NativeAccess
protected QGraphicsVideoItem(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
*/
@NativeAccess
protected QGraphicsVideoItem(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QGraphicsVideoItem instance, QDeclarativeConstructor constructor);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy