#include <QFontAdapter.h>
Static Public Member Functions | |
static void | initialize (JNIEnv *env, jclass cls) |
Initializes QFontAdapter class. | |
static QFontAdapter * | toQFont (JNIEnv *env, jobject font) |
Returns QFontAdapter instance. | |
static QFontAdapter * | toQFont (jobject font) |
Returns QFontAdapter instance. | |
static jobject | toJFont (JNIEnv *env, jclass fontClass, const QFont &font) |
Creates new QSwing font instance. | |
static jobject | toJFont (const QFont &font) |
Creates new QSwing font instance. | |
static jlong | newInstance (JNIEnv *env, jobject obj, jstring name, jint style, jint size) |
Returns new instance of QFontAdapter class. | |
static jlong | newFontMetricsInstance (JNIEnv *env, jobject obj, jlong fontPonter) |
Returns new instance of QFontMetrics class. | |
static jstring | getDefaultFontName (JNIEnv *env, jclass cls) |
Returns the name of default font. | |
Protected Member Functions | |
QFontAdapter (jstring name, jint style, jint size) | |
Constructs new QFontAdapter object. | |
QFontAdapter (const QFont &font) | |
Constructs new QFontAdapter object. |
QFontAdapter::QFontAdapter | ( | jstring | name, | |
jint | style, | |||
jint | size | |||
) | [protected] |
Constructs new QFontAdapter object.
name | the font name | |
style | the font style | |
size | the font size |
QFontAdapter::QFontAdapter | ( | const QFont & | font | ) | [protected] |
void QFontAdapter::initialize | ( | JNIEnv * | env, | |
jclass | cls | |||
) | [static] |
Initializes QFontAdapter class.
env | the JNIEnv pointer | |
cls | the QSwing font class |
FatalError | if failed |
QFontAdapter * QFontAdapter::toQFont | ( | JNIEnv * | env, | |
jobject | font | |||
) | [static] |
Returns QFontAdapter instance.
env | the JNIEnv pointer | |
font | the QSwing font object |
QFontAdapter * QFontAdapter::toQFont | ( | jobject | font | ) | [static] |
jobject QFontAdapter::toJFont | ( | JNIEnv * | env, | |
jclass | fontClass, | |||
const QFont & | font | |||
) | [static] |
Creates new QSwing font instance.
env | the JNIEnv pointer | |
fontClass | the QSwing font class | |
font | the QFont reference |
OutOfMemoryError | java exception |
jobject QFontAdapter::toJFont | ( | const QFont & | font | ) | [static] |
Creates new QSwing font instance.
font | the QFont reference |
OutOfMemoryError | java exception |
jlong QFontAdapter::newInstance | ( | JNIEnv * | env, | |
jobject | obj, | |||
jstring | name, | |||
jint | style, | |||
jint | size | |||
) | [static] |
Returns new instance of QFontAdapter class.
env | the JNIEnv pointer | |
obj | the QSwing font class | |
name | the font name | |
style | the font style | |
size | the font size |
jlong QFontAdapter::newFontMetricsInstance | ( | JNIEnv * | env, | |
jobject | obj, | |||
jlong | fontPonter | |||
) | [static] |
Returns new instance of QFontMetrics class.
env | the JNIEnv pointer | |
obj | the QSwing font object | |
fontPonter | the font pointer |
jstring QFontAdapter::getDefaultFontName | ( | JNIEnv * | env, | |
jclass | cls | |||
) | [static] |
Returns the name of default font.
env | the JNIEnv pointer | |
cls | the QSwing font class |