#include <FontMetricsBridge.h>
Static Public Member Functions | |
static void | getMetrics (JNIEnv *env, jobject obj, QFontMetrics *fontMetrics) |
Fills the specified QSwing font metrics object. | |
static jint | stringWidth (JNIEnv *env, jobject obj, QFontMetrics *fontMetrics, jstring str) |
Returns width of the specified string. | |
static void | initialize (JNIEnv *env, jclass cls) |
Initializes FontMetricsBridge class. |
void FontMetricsBridge::getMetrics | ( | JNIEnv * | env, | |
jobject | obj, | |||
QFontMetrics * | fontMetrics | |||
) | [static] |
Fills the specified QSwing font metrics object.
env | the JNIEnv pointer | |
obj | the QSwing font metrics object. | |
fontMetrics | the Qt font metrics object |
jint FontMetricsBridge::stringWidth | ( | JNIEnv * | env, | |
jobject | obj, | |||
QFontMetrics * | fontMetrics, | |||
jstring | str | |||
) | [static] |
Returns width of the specified string.
env | the JNIEnv pointer | |
obj | the QSwing font metrics object | |
fontMetrics | the Qt font metrics object | |
str | the string |
void FontMetricsBridge::initialize | ( | JNIEnv * | env, | |
jclass | cls | |||
) | [static] |
Initializes FontMetricsBridge class.
env | the JNIEnv pointer | |
cls | the QSwing font metrics class |
FatalError | if failed |