#include <QColorAdapter.h>
Public Member Functions | |
QColorAdapter (jobject color) | |
Constructs new QColorAdapter object. | |
QColorAdapter (jint argb) | |
Constructs new QColorAdapter object. | |
Static Public Member Functions | |
static void | initialize (JNIEnv *env, jclass cls) |
Initializes QColorAdapter class. | |
static jobject | toJColor (JNIEnv *env, jclass colorClass, const QColor &color) |
Creates new QSwing color instance. | |
static jobject | toJColor (const QColor &color) |
Creates new QSwing color instance. |
@(#)QColorAdapter.h 0.2.0 / 2007-08-28
Copyright (c) 2007, ETF and contributors. All rights reserved.
This software is licensed under the LGPL, version 2.1, license. A copy of the license is included in the file LICENSE-LGPL.txt.
QColorAdapter::QColorAdapter | ( | jobject | color | ) |
QColorAdapter::QColorAdapter | ( | jint | argb | ) |
void QColorAdapter::initialize | ( | JNIEnv * | env, | |
jclass | cls | |||
) | [static] |
Initializes QColorAdapter class.
env | the JNIEnv pointer | |
cls | the QSwing color class |
FatalError | if failed |
jobject QColorAdapter::toJColor | ( | JNIEnv * | env, | |
jclass | colorClass, | |||
const QColor & | color | |||
) | [static] |
Creates new QSwing color instance.
env | the JNIEnv pointer | |
colorClass | the QSwing color class | |
color | the QColor reference |
OutOfMemoryError | java exception |
jobject QColorAdapter::toJColor | ( | const QColor & | color | ) | [static] |
Creates new QSwing color instance.
color | the QColor reference |
OutOfMemoryError | java exception |