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.
50 lines
1.5 KiB
50 lines
1.5 KiB
//Auto-generated by kalyptus. DO NOT EDIT.
|
|
package org.kde.koala;
|
|
|
|
import org.kde.qt.Qt;
|
|
import org.kde.qt.QColor;
|
|
import org.kde.qt.QtSupport;
|
|
import org.kde.qt.QColor;
|
|
|
|
/**
|
|
|
|
A color class that preserves both RGB and HSV values.
|
|
This is
|
|
unlike QColor which only preserves RGB values and recalculates HSV
|
|
values. The QColor behavior leads to an accumulation of rounding
|
|
errors when working in the HSV color space.
|
|
@author Waldo Bastian <bastian@kde.org>
|
|
|
|
@short A color class that preserves both RGB and HSV values.
|
|
|
|
*/
|
|
public class KColor extends QColor {
|
|
protected KColor(Class dummy){super((Class) null);}
|
|
public KColor() {
|
|
super((Class) null);
|
|
newKColor();
|
|
}
|
|
private native void newKColor();
|
|
public KColor(KColor col) {
|
|
super((Class) null);
|
|
newKColor(col);
|
|
}
|
|
private native void newKColor(KColor col);
|
|
public KColor(QColor col) {
|
|
super((Class) null);
|
|
newKColor(col);
|
|
}
|
|
private native void newKColor(QColor col);
|
|
public native boolean op_equals(KColor col);
|
|
public native void setHsv(int _h, int _s, int _v);
|
|
public native void setRgb(int _r, int _g, int _b);
|
|
public native void rgb(int[] _r, int[] _g, int[] _b);
|
|
public native void hsv(int[] _h, int[] _s, int[] _v);
|
|
/** Deletes the wrapped C++ instance */
|
|
protected native void finalize() throws InternalError;
|
|
/** Delete the wrapped C++ instance ahead of finalize() */
|
|
public native void dispose();
|
|
/** Has the wrapped C++ instance been deleted? */
|
|
public native boolean isDisposed();
|
|
}
|