io.qt.qt3d.extras.QText2DEntity Maven / Gradle / Ivy
Show all versions of qtjambi-qt3dextras Show documentation
package io.qt.qt3d.extras;
import io.qt.*;
/**
* Allows creation of a 2D text in 3D space
* Java wrapper for Qt class Qt3DExtras::QText2DEntity
*/
public class QText2DEntity extends io.qt.qt3d.core.QEntity
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QText2DEntity.class);
/**
* See Qt3DExtras::QText2DEntity:: colorChanged(QColor)
*/
@QtPropertyNotify(name="color")
public final @NonNull Signal1 colorChanged = new Signal1<>();
/**
* See Qt3DExtras::QText2DEntity:: fontChanged(QFont)
*/
@QtPropertyNotify(name="font")
public final @NonNull Signal1 fontChanged = new Signal1<>();
/**
* See Qt3DExtras::QText2DEntity:: heightChanged(float)
*/
@QtPropertyNotify(name="height")
public final @NonNull Signal1 heightChanged = new Signal1<>();
/**
* See Qt3DExtras::QText2DEntity:: textChanged(QString)
*/
@QtPropertyNotify(name="text")
public final @NonNull Signal1 textChanged = new Signal1<>();
/**
* See Qt3DExtras::QText2DEntity:: widthChanged(float)
*/
@QtPropertyNotify(name="width")
public final @NonNull Signal1 widthChanged = new Signal1<>();
/**
* See Qt3DExtras::QText2DEntity:: QText2DEntity(Qt3DCore::QNode*)
* @param parent
*/
@SuppressWarnings({"exports"})
public QText2DEntity(io.qt.qt3d.core.@Nullable QNode parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QText2DEntity instance, io.qt.qt3d.core.QNode parent);
/**
* See Qt3DExtras::QText2DEntity:: alignment()const
* @return
*/
@QtPropertyReader(name="alignment")
@QtUninvokable
public final io.qt.core.Qt.@NonNull Alignment alignment(){
return new io.qt.core.Qt.Alignment(alignment_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int alignment_native_constfct(long __this__nativeId);
/**
* See Qt3DExtras::QText2DEntity:: color()const
* @return
*/
@QtPropertyReader(name="color")
@QtUninvokable
public final io.qt.gui.@NonNull QColor color(){
return color_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QColor color_native_constfct(long __this__nativeId);
/**
* See Qt3DExtras::QText2DEntity:: font()const
* @return
*/
@QtPropertyReader(name="font")
@QtUninvokable
public final io.qt.gui.@NonNull QFont font(){
return font_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.gui.QFont font_native_constfct(long __this__nativeId);
/**
* See Qt3DExtras::QText2DEntity:: height()const
* @return
*/
@QtPropertyReader(name="height")
@QtUninvokable
public final float height(){
return height_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native float height_native_constfct(long __this__nativeId);
/**
* See Qt3DExtras::QText2DEntity:: setAlignment(Qt::Alignment)
* @param alignment
*/
@QtPropertyWriter(name="alignment")
@QtUninvokable
public final void setAlignment(io.qt.core.Qt.@NonNull Alignment alignment){
setAlignment_native_Qt_Alignment(QtJambi_LibraryUtilities.internal.nativeId(this), alignment.value());
}
@QtUninvokable
private native void setAlignment_native_Qt_Alignment(long __this__nativeId, int alignment);
/**
* See Qt3DExtras::QText2DEntity:: setColor(QColor)
* @param color
*/
@QtPropertyWriter(name="color")
@QtUninvokable
public final void setColor(io.qt.gui.@NonNull QColor color){
setColor_native_cref_QColor(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(color));
}
@QtUninvokable
private native void setColor_native_cref_QColor(long __this__nativeId, long color);
/**
* See Qt3DExtras::QText2DEntity:: setFont(QFont)
* @param font
*/
@QtPropertyWriter(name="font")
@QtUninvokable
public final void setFont(io.qt.gui.@NonNull QFont font){
setFont_native_cref_QFont(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(font));
}
@QtUninvokable
private native void setFont_native_cref_QFont(long __this__nativeId, long font);
/**
* See Qt3DExtras::QText2DEntity:: setHeight(float)
* @param height
*/
@QtPropertyWriter(name="height")
@QtUninvokable
public final void setHeight(float height){
setHeight_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), height);
}
@QtUninvokable
private native void setHeight_native_float(long __this__nativeId, float height);
/**
* See Qt3DExtras::QText2DEntity:: setText(QString)
* @param text
*/
@QtPropertyWriter(name="text")
@QtUninvokable
public final void setText(java.lang.@NonNull String text){
setText_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), text);
}
@QtUninvokable
private native void setText_native_cref_QString(long __this__nativeId, java.lang.String text);
/**
* See Qt3DExtras::QText2DEntity:: setWidth(float)
* @param width
*/
@QtPropertyWriter(name="width")
@QtUninvokable
public final void setWidth(float width){
setWidth_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), width);
}
@QtUninvokable
private native void setWidth_native_float(long __this__nativeId, float width);
/**
* See Qt3DExtras::QText2DEntity:: text()const
* @return
*/
@QtPropertyReader(name="text")
@QtUninvokable
public final java.lang.@NonNull String text(){
return text_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String text_native_constfct(long __this__nativeId);
/**
* See Qt3DExtras::QText2DEntity:: width()const
* @return
*/
@QtPropertyReader(name="width")
@QtUninvokable
public final float width(){
return width_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native float width_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QText2DEntity(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QText2DEntity(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QText2DEntity instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QText2DEntity(io.qt.qt3d.core.QNode)}
* with parent = null
.
*/
public QText2DEntity() {
this((io.qt.qt3d.core.QNode)null);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #alignment()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.core.Qt.@NonNull Alignment getAlignment() {
return alignment();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #color()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.gui.@NonNull QColor getColor() {
return color();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #font()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final io.qt.gui.@NonNull QFont getFont() {
return font();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #height()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final float getHeight() {
return height();
}
/**
* Overloaded function for {@link #setAlignment(io.qt.core.Qt.Alignment)}.
*/
@QtUninvokable
public final void setAlignment(io.qt.core.Qt.@NonNull AlignmentFlag @NonNull... alignment) {
setAlignment(new io.qt.core.Qt.Alignment(alignment));
}
/**
* Overloaded function for {@link #setColor(io.qt.gui.QColor)}.
*/
@QtUninvokable
public final void setColor(io.qt.core.Qt.@NonNull GlobalColor color) {
setColor(new io.qt.gui.QColor(color));
}
/**
* Overloaded function for {@link #setColor(io.qt.gui.QColor)}.
*/
@QtUninvokable
public final void setColor(io.qt.gui.@NonNull QRgba64 color) {
setColor(new io.qt.gui.QColor(color));
}
/**
* Overloaded function for {@link #setColor(io.qt.gui.QColor)}.
*/
@QtUninvokable
public final void setColor(java.lang.@NonNull String color) {
setColor(new io.qt.gui.QColor(color));
}
/**
* Overloaded function for {@link #setFont(io.qt.gui.QFont)}.
*/
@QtUninvokable
public final void setFont(java.lang.@NonNull String font) {
setFont(new io.qt.gui.QFont(font));
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #text()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final java.lang.@NonNull String getText() {
return text();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #width()} instead.
*/
@QtPropertyReader(enabled=false)
@QtUninvokable
public final float getWidth() {
return width();
}
}