io.qt.script.QScriptable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtjambi-script Show documentation
Show all versions of qtjambi-script Show documentation
Classes for making Qt applications scriptable. Deprecated in favor of the QJS* classes in the Qt QML module.
The newest version!
package io.qt.script;
import io.qt.*;
/**
* Access to the Qt Script environment from Qt C++ member functions
* Java wrapper for Qt class QScriptable
* @since This class was introduced in Qt 4.3.
*/
public interface QScriptable extends QtObjectInterface
{
/**
* @hidden
* Implementor class for interface {@link io.qt.script.QScriptable}
*/
public static class Impl extends QtObject
implements io.qt.script.QScriptable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QScriptable:: QScriptable()
*/
public Impl(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QScriptable instance);
/**
* See QScriptable:: argument(int)const
* @param index
* @return
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue argument(int index){
return argument_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
private native static io.qt.script.QScriptValue argument_native_int_constfct(long __this__nativeId, int index);
/**
* See QScriptable:: argumentCount()const
* @return
*/
@QtUninvokable
public final int argumentCount(){
return argumentCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static int argumentCount_native_constfct(long __this__nativeId);
/**
* See QScriptable:: context()const
* @return
*/
@QtUninvokable
public final io.qt.script.@Nullable QScriptContext context(){
return context_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static io.qt.script.QScriptContext context_native_constfct(long __this__nativeId);
/**
* See QScriptable:: engine()const
* @return
*/
@QtUninvokable
public final io.qt.script.@Nullable QScriptEngine engine(){
return engine_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static io.qt.script.QScriptEngine engine_native_constfct(long __this__nativeId);
/**
* See QScriptable:: thisObject()const
* @return
*/
@QtUninvokable
public final io.qt.script.@NonNull QScriptValue thisObject(){
return thisObject_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native static io.qt.script.QScriptValue thisObject_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected Impl(QPrivateConstructor p) { super(p); }
}
/**
* See QScriptable:: argument(int)const
* @param index
* @return
*/
@QtDeclaredFinal
@QtUninvokable
public default io.qt.script.@NonNull QScriptValue argument(int index){
return Impl.argument_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
/**
* See QScriptable:: argumentCount()const
* @return
*/
@QtDeclaredFinal
@QtUninvokable
public default int argumentCount(){
return Impl.argumentCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
/**
* See QScriptable:: context()const
* @return
*/
@QtDeclaredFinal
@QtUninvokable
public default io.qt.script.@Nullable QScriptContext context(){
return Impl.context_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
/**
*
* @return
*/
@QtDeclaredFinal
@QtUninvokable
public default io.qt.script.@Nullable QScriptEngine engine(){
return Impl.engine_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
/**
*
* @return
*/
@QtDeclaredFinal
@QtUninvokable
public default io.qt.script.@NonNull QScriptValue thisObject(){
return Impl.thisObject_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
}