diff options
Diffstat (limited to 'tdejava/koala/org/trinitydesktop/koala/KColor.java')
-rw-r--r-- | tdejava/koala/org/trinitydesktop/koala/KColor.java | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/tdejava/koala/org/trinitydesktop/koala/KColor.java b/tdejava/koala/org/trinitydesktop/koala/KColor.java new file mode 100644 index 00000000..60a2d578 --- /dev/null +++ b/tdejava/koala/org/trinitydesktop/koala/KColor.java @@ -0,0 +1,49 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.trinitydesktop.koala; + +import org.trinitydesktop.qt.Qt; +import org.trinitydesktop.qt.TQColor; +import org.trinitydesktop.qt.QtSupport; +import org.trinitydesktop.qt.TQColor; + +/** + + A color class that preserves both RGB and HSV values. + This is + unlike TQColor which only preserves RGB values and recalculates HSV + values. The TQColor 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 TQColor { + 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(TQColor col) { + super((Class) null); + newKColor(col); + } + private native void newKColor(TQColor 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(); +} |