You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebindings/qtjava/javalib/qtjava/TQGLContext.cpp

290 lines
9.2 KiB

//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqgl.h>
#include <tqfont.h>
#include <tqcolor.h>
#include <qtjava/QtSupport.h>
#include <qtjava/TQGLContext.h>
class TQGLContextJBridge : public TQGLContext
{
public:
TQGLContextJBridge(const TQGLFormat& arg1,TQPaintDevice* arg2) : TQGLContext(arg1,arg2) {};
TQGLContextJBridge(const TQGLFormat& arg1) : TQGLContext(arg1) {};
void public_reset() {
TQGLContext::reset();
return;
}
void public_makeCurrent() {
TQGLContext::makeCurrent();
return;
}
void public_swapBuffers() {
TQGLContext::swapBuffers();
return;
}
bool protected_chooseContext(const TQGLContext* arg1) {
return (bool) TQGLContext::chooseContext(arg1);
}
bool protected_chooseContext() {
return (bool) TQGLContext::chooseContext();
}
void protected_doneCurrent() {
TQGLContext::doneCurrent();
return;
}
bool protected_deviceIsPixmap() {
return (bool) TQGLContext::deviceIsPixmap();
}
bool protected_windowCreated() {
return (bool) TQGLContext::windowCreated();
}
void protected_setWindowCreated(bool arg1) {
TQGLContext::setWindowCreated(arg1);
return;
}
bool protected_initialized() {
return (bool) TQGLContext::initialized();
}
void protected_setInitialized(bool arg1) {
TQGLContext::setInitialized(arg1);
return;
}
void protected_generateFontDisplayLists(const TQFont& arg1,int arg2) {
TQGLContext::generateFontDisplayLists(arg1,arg2);
return;
}
uint protected_colorIndex(const TQColor& arg1) {
return (uint) TQGLContext::colorIndex(arg1);
}
void protected_setValid(bool arg1) {
TQGLContext::setValid(arg1);
return;
}
void protected_setDevice(TQPaintDevice* arg1) {
TQGLContext::setDevice(arg1);
return;
}
~TQGLContextJBridge() {QtSupport::qtKeyDeleted(this);}
};
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QGLContext_chooseContext__(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((TQGLContextJBridge*) QtSupport::getQt(env, obj))->protected_chooseContext();
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QGLContext_chooseContext__Lorg_trinitydesktop_qt_QGLContext_2(JNIEnv* env, jobject obj, jobject shareContext)
{
jboolean xret = (jboolean) ((TQGLContextJBridge*) QtSupport::getQt(env, obj))->protected_chooseContext((const TQGLContext*) QtSupport::getQt(env, shareContext));
return xret;
}
JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QGLContext_colorIndex(JNIEnv* env, jobject obj, jobject c)
{
jint xret = (jint) ((TQGLContextJBridge*) QtSupport::getQt(env, obj))->protected_colorIndex((const TQColor&)*(const TQColor*) QtSupport::getQt(env, c));
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QGLContext_create__(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((TQGLContext*) QtSupport::getQt(env, obj))->create();
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QGLContext_create__Lorg_trinitydesktop_qt_QGLContext_2(JNIEnv* env, jobject obj, jobject shareContext)
{
jboolean xret = (jboolean) ((TQGLContext*) QtSupport::getQt(env, obj))->create((const TQGLContext*) QtSupport::getQt(env, shareContext));
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QGLContext_currentContext(JNIEnv* env, jclass cls)
{
(void) cls;
jobject xret = QtSupport::objectForQtKey(env, (void*)TQGLContextJBridge::currentContext(), "org.trinitydesktop.qt.TQGLContext");
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QGLContext_deviceIsPixmap(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((TQGLContextJBridge*) QtSupport::getQt(env, obj))->protected_deviceIsPixmap();
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QGLContext_device(JNIEnv* env, jobject obj)
{
jobject xret = QtSupport::objectForQtKey(env, (void*)((TQGLContext*) QtSupport::getQt(env, obj))->device(), "org.trinitydesktop.qt.TQPaintDeviceInterface");
return xret;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLContext_dispose(JNIEnv* env, jobject obj)
{
Java_org_trinitydesktop_qt_QGLContext_finalize(env, obj);
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLContext_doneCurrent(JNIEnv* env, jobject obj)
{
((TQGLContextJBridge*) QtSupport::getQt(env, obj))->protected_doneCurrent();
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLContext_finalize(JNIEnv* env, jobject obj)
{
if (QtSupport::allocatedInJavaWorld(env, obj)) {
delete (TQGLContext*)QtSupport::getQt(env, obj);
QtSupport::setQt(env, obj, 0);
}
return;
}
JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QGLContext_format(JNIEnv* env, jobject obj)
{
jobject xret = QtSupport::objectForQtKey(env, (void*)new TQGLFormat(((TQGLContext*) QtSupport::getQt(env, obj))->format()), "org.trinitydesktop.qt.TQGLFormat", TRUE);
return xret;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLContext_generateFontDisplayLists(JNIEnv* env, jobject obj, jobject fnt, jint listBase)
{
((TQGLContextJBridge*) QtSupport::getQt(env, obj))->protected_generateFontDisplayLists((const TQFont&)*(const TQFont*) QtSupport::getQt(env, fnt), (int) listBase);
return;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QGLContext_initialized(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((TQGLContextJBridge*) QtSupport::getQt(env, obj))->protected_initialized();
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QGLContext_isDisposed(JNIEnv* env, jobject obj)
{
return (QtSupport::getQt(env, obj) == 0);
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QGLContext_isSharing(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((TQGLContext*) QtSupport::getQt(env, obj))->isSharing();
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QGLContext_isValid(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((TQGLContext*) QtSupport::getQt(env, obj))->isValid();
return xret;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLContext_makeCurrent(JNIEnv* env, jobject obj)
{
((TQGLContextJBridge*) QtSupport::getQt(env, obj))->public_makeCurrent();
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLContext_newTQGLContext__Lorg_trinitydesktop_qt_QGLFormat_2(JNIEnv* env, jobject obj, jobject format)
{
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new TQGLContextJBridge((const TQGLFormat&)*(const TQGLFormat*) QtSupport::getQt(env, format)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLContext_newTQGLContext__Lorg_trinitydesktop_qt_QGLFormat_2Lorg_trinitydesktop_qt_QPaintDeviceInterface_2(JNIEnv* env, jobject obj, jobject format, jobject device)
{
if (QtSupport::getQt(env, obj) == 0) {
QtSupport::setQt(env, obj, new TQGLContextJBridge((const TQGLFormat&)*(const TQGLFormat*) QtSupport::getQt(env, format), (TQPaintDevice*) QtSupport::paintDevice(env, device)));
QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
}
return;
}
JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QGLContext_overlayTransparentColor(JNIEnv* env, jobject obj)
{
jobject xret = QtSupport::objectForQtKey(env, (void*)new TQColor(((TQGLContext*) QtSupport::getQt(env, obj))->overlayTransparentColor()), "org.trinitydesktop.qt.TQColor", TRUE);
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QGLContext_requestedFormat(JNIEnv* env, jobject obj)
{
jobject xret = QtSupport::objectForQtKey(env, (void*)new TQGLFormat(((TQGLContext*) QtSupport::getQt(env, obj))->requestedFormat()), "org.trinitydesktop.qt.TQGLFormat", TRUE);
return xret;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLContext_reset(JNIEnv* env, jobject obj)
{
((TQGLContextJBridge*) QtSupport::getQt(env, obj))->public_reset();
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLContext_setDevice(JNIEnv* env, jobject obj, jobject pDev)
{
((TQGLContextJBridge*) QtSupport::getQt(env, obj))->protected_setDevice((TQPaintDevice*) QtSupport::paintDevice(env, pDev));
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLContext_setFormat(JNIEnv* env, jobject obj, jobject format)
{
((TQGLContext*) QtSupport::getQt(env, obj))->setFormat((const TQGLFormat&)*(const TQGLFormat*) QtSupport::getQt(env, format));
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLContext_setInitialized(JNIEnv* env, jobject obj, jboolean on)
{
((TQGLContextJBridge*) QtSupport::getQt(env, obj))->protected_setInitialized((bool) on);
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLContext_setValid(JNIEnv* env, jobject obj, jboolean valid)
{
((TQGLContextJBridge*) QtSupport::getQt(env, obj))->protected_setValid((bool) valid);
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLContext_setWindowCreated(JNIEnv* env, jobject obj, jboolean on)
{
((TQGLContextJBridge*) QtSupport::getQt(env, obj))->protected_setWindowCreated((bool) on);
return;
}
JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QGLContext_swapBuffers(JNIEnv* env, jobject obj)
{
((TQGLContextJBridge*) QtSupport::getQt(env, obj))->public_swapBuffers();
return;
}
JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QGLContext_windowCreated(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((TQGLContextJBridge*) QtSupport::getQt(env, obj))->protected_windowCreated();
return xret;
}