GLJQComponentBridge Class Reference

GLJQComponent Bridge. More...

#include <GLJQComponentBridge.h>

Inheritance diagram for GLJQComponentBridge:

JQComponentBridge QObjectBridge

List of all members.

Public Member Functions

void updateGL (JNIEnv *env)
 Updates GL.
QGLWidget * qGLWidget () const
 Returns QGLWidget adaptee.

Static Public Member Functions

static void initialize (JNIEnv *env, jclass cls)
 Initializes GLJQComponentBridge class.
static jlong newInstance (JNIEnv *env, jobject obj)
 Returns new instance of the bridge object.

Protected Member Functions

 GLJQComponentBridge (JNIEnv *env, jobject obj)
 Constructs new GLJQComponentBridge object.
void callInitializeGL ()
 Calls initializeGL method of the JavaQx GLJQComponent object.
void callResizeGL (int width, int height)
 Calls resizeGL method of the JavaQx GLJQComponent object.
void callPaintGL ()
 Calls paintGL method of the JavaQx GLJQComponent object.

Friends

class QGLWidgetAdapter


Detailed Description

GLJQComponent Bridge.

Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)
Version:
0.2.0

Constructor & Destructor Documentation

GLJQComponentBridge::GLJQComponentBridge ( JNIEnv *  env,
jobject  obj 
) [protected]

Constructs new GLJQComponentBridge object.

Parameters:
env the JNIEnv pointer
obj the GLJQComponent object


Member Function Documentation

void GLJQComponentBridge::updateGL ( JNIEnv *  env  ) 

Updates GL.

Parameters:
env the JNIEnv pointer

void GLJQComponentBridge::initialize ( JNIEnv *  env,
jclass  cls 
) [static]

Initializes GLJQComponentBridge class.

Parameters:
env the JNIEnv pointer
cls the GLJQComponent class
Exceptions:
FatalError if failed

Reimplemented from JQComponentBridge.

jlong GLJQComponentBridge::newInstance ( JNIEnv *  env,
jobject  obj 
) [static]

Returns new instance of the bridge object.

Parameters:
env the JNIEnv pointer
obj the QSwing object
Returns:
new instance of the bridge object

Reimplemented from JQComponentBridge.

QGLWidget * GLJQComponentBridge::qGLWidget (  )  const [inline]

Returns QGLWidget adaptee.

Returns:
QGLWidget adaptee

void GLJQComponentBridge::callResizeGL ( int  width,
int  height 
) [inline, protected]

Calls resizeGL method of the JavaQx GLJQComponent object.

Parameters:
width the width
height the height


Copyright © 2007 ETF and contributors. All Rights Reserved.